rspec/rules/S1672/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

33 lines
587 B
Plaintext

== Why is this an issue?
Internal tables can be sorted without specifying the specific fields on which to sort. However, doing so is inefficient because when a sort key is not specified, the entire row is used in the sort, which can be markedly inefficient.
=== Noncompliant code example
[source,abap]
----
SORT ITAB.
----
=== Compliant solution
[source,abap]
----
SORT ITAB BY LAND WEIGHT.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Provide the missing sort fields
endif::env-github,rspecator-view[]