rspec/rules/S1548/abap/rule.adoc

37 lines
566 B
Plaintext
Raw Permalink Normal View History

== Why is this an issue?
Every function should be commented to explain its goal and how it works. This non-empty comment must be located before the function definition.
2020-06-30 12:47:33 +02:00
=== Noncompliant code example
2020-06-30 12:47:33 +02:00
2022-02-04 17:28:24 +01:00
[source,abap]
2020-06-30 12:47:33 +02:00
----
FUNCTION my_function.
...
ENDFUNCTION.
----
=== Compliant solution
2020-06-30 12:47:33 +02:00
2022-02-04 17:28:24 +01:00
[source,abap]
2020-06-30 12:47:33 +02:00
----
* here is
* my comment
FUNCTION my_function.
...
ENDFUNCTION.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Document this function 'XXX'.
endif::env-github,rspecator-view[]