rspec/rules/S1508/abap/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
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.
2023-05-25 14:18:12 +02:00

37 lines
1.2 KiB
Plaintext

== Why is this an issue?
ABAP provides the ability to manipulate programs dynamically during execution for instance with statements like ``++INSERT REPORT++`` and ``++GENERATE SUBROUTINE POOL++``. Most of those statements are for internal use within SAP Technology Development and incompatible changes are possible at any time without prior warning or notice.
This rule raises an issue when any of the following source code processing statements is used: ``++INSERT REPORT++``, ``++READ REPORT++``, ``++DELETE REPORT++``, ``++EDITOR-CALL FOR REPORT++``, ``++SYNTAX-CHECK FOR itab++``, ``++GENERATE REPORT/SUBROUTINE POOL++``, ``++LOAD REPORT++``, ``++SCAN++``, ``++INSERT TEXTPOOL++``, ``++READ TEXTPOOL++``, ``++DELETE TEXTPOOL++``, ``++EXPORT DYNPRO++``, ``++IMPORT DYNPRO++``, ``++DELETE DYNPRO++``, ``++SYNTAX-CHECK FOR DYNPRO++``, and ``++GENERATE DYNPRO++``.
=== Noncompliant code example
[source,abap]
----
GENERATE REPORT MY_PROG.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Remove this use of the source code processing "XXXX" statement.
'''
== Comments And Links
(visible only on this page)
=== deprecates: S1513
=== is duplicated by: S1509
endif::env-github,rspecator-view[]