rspec/rules/S1669/abap/rule.adoc

37 lines
731 B
Plaintext
Raw Normal View History

2020-06-30 12:47:33 +02:00
Using keywords as variable names may yield incomprehensible code, and should be avoided.
== Noncompliant Code Example
2022-02-04 17:28:24 +01:00
[source,abap]
2020-06-30 12:47:33 +02:00
----
DATA: wa_struct TYPE struct,
name TYPE string,
dob TYPE string,
aliases TYPE string, " ALIASES is a keyword
----
== Compliant Solution
2022-02-04 17:28:24 +01:00
[source,abap]
2020-06-30 12:47:33 +02:00
----
DATA: wa_struct TYPE struct,
name TYPE string,
dob TYPE string,
alt_names TYPE string,
----
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[]