
Inline adoc files when they are included exactly once. Also fix language tags because this inlining gives us better information on what language the code is written in.
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
== Why is this an issue?
|
|
|
|
This rule is a strict implementation of a MISRA (Motor Industry Software Reliability Association) rule. MISRA defines best practices for developing safety-critical software. You can learn more about this rule in the MISRA documents referenced below.
|
|
|
|
|
|
If you are not concerned with MISRA compliance or with safety-critical software, you might consider using rule S867 instead ; it targets the same kind of issue for general-purpose software.
|
|
|
|
|
|
== Resources
|
|
|
|
* MISRA {cpp} 2008, 5-0-13
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
=== Message
|
|
|
|
Use a condition which yields a "bool".
|
|
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
=== is related to: S867
|
|
|
|
=== relates to: S912
|
|
|
|
=== on 16 Oct 2014, 13:19:03 Ann Campbell wrote:
|
|
\[~samuel.mercier] please:
|
|
|
|
* fill in the appropriate reference field(s).
|
|
* provide a See section.
|
|
* use double curly braces around code in the description, e.g. NULL.
|
|
* use the standard section titles
|
|
* use our standard: "Noncompliant", rather than "Non-compliant".
|
|
|
|
=== on 17 Oct 2014, 15:38:44 Ann Campbell wrote:
|
|
FYI [~samuel.mercier] I've moved all the "compliant by exception" code into a code block in the Exceptions section.
|
|
|
|
=== on 22 Jan 2019, 11:41:12 Loïc Joly wrote:
|
|
See comment bellow RSPEC-883
|
|
|
|
endif::env-github,rspecator-view[]
|