rspec/rules/S1192/abap/rule.adoc

46 lines
671 B
Plaintext
Raw Normal View History

2023-10-11 11:41:24 +02:00
include::../rule.adoc[]
2023-10-11 11:41:24 +02:00
=== Code examples
2020-06-30 12:47:33 +02:00
2023-10-11 11:41:24 +02:00
==== Noncompliant code example
2020-06-30 12:47:33 +02:00
With the default threshold of 3:
2023-10-11 11:41:24 +02:00
[source,abap,diff-id=1,diff-type=noncompliant]
2020-06-30 12:47:33 +02:00
----
WRITE: / 'Firstname'.
*...
WRITE: / 'Firstname'.
*...
WRITE: / 'Firstname'.
----
2023-10-11 11:41:24 +02:00
==== Compliant solution
2020-06-30 12:47:33 +02:00
2023-10-11 11:41:24 +02:00
[source,abap,diff-id=1,diff-type=compliant]
2020-06-30 12:47:33 +02:00
----
CONSTANTS: fname TYPE c LENGTH 9 VALUE 'Firstname',
WRITE: / fname.
*...
WRITE: / fname.
*...
WRITE: / fname.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../parameters.adoc[]
include::../highlighting.adoc[]
'''
endif::env-github,rspecator-view[]