rspec/rules/S1481/abap/rule.adoc

47 lines
727 B
Plaintext
Raw Normal View History

include::../rationale.adoc[]
include::../how-to-fix-it.adoc[]
2020-06-30 12:47:33 +02:00
=== Code examples
2020-06-30 12:47:33 +02:00
==== Noncompliant code example
[source,abap,diff-id=1,diff-type=noncompliant]
2020-06-30 12:47:33 +02:00
----
FUNCTION f.
DATA: LOCAL_1 LIKE BAR.
DATA: LOCAL_2 LIKE BAR. "Noncompliant - LOCAL_2 is unused
2020-06-30 12:47:33 +02:00
SELECT * FROM LOCAL_1.
ENDFUNCTION.
----
==== Compliant solution
2020-06-30 12:47:33 +02:00
[source,abap,diff-id=1,diff-type=compliant]
2020-06-30 12:47:33 +02:00
----
FUNCTION f.
DATA: LOCAL_1 LIKE BAR.
SELECT * FROM LOCAL_1.
ENDFUNCTION.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]