rspec/rules/S1549/abap/rule.adoc
2022-02-04 16:28:24 +00:00

46 lines
618 B
Plaintext

Every macro should be commented to explain its goal and how it works. This comment can be located just before or after the macro definition.
== Noncompliant Code Example
[source,abap]
----
DEFINE my_macro.
...
END-OF-DEFINITION.
----
== Compliant Solution
[source,abap]
----
* here is
* my comment
DEFINE my_macro.
...
END-OF-DEFINITION.
----
or
[source,abap]
----
DEFINE my_macro.
* here is
* my comment
...
END-OF-DEFINITION.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
endif::env-github,rspecator-view[]