rspec/rules/S979/rule.adoc

17 lines
436 B
Plaintext
Raw Normal View History

== Why is this an issue?
Where the developer uses new versions of standard library macros or objects (e.g. to enhance functionality or add checks of input values), the modified macro or object shall have a new name.
2021-02-02 15:02:10 +01:00
This is to avoid any confusion as to whether a standard macro or object, or a modified version of them, is being used.
=== Noncompliant code example
2022-02-04 17:28:24 +01:00
[source,text]
----
#define NULL ( a > b ) // Noncompliant
----