rspec/rules/S1300/cobol/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

47 lines
1.0 KiB
Plaintext

== Why is this an issue?
A section that grows too large tends to aggregate too many responsibilities.
Such sections inevitably become harder to understand and therefore harder to maintain.
Above a specific threshold, it is strongly advised to refactor into smaller sections which focus on well-defined tasks. Those smaller sections will not only be easier to understand, but also probably easier to test.
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Section has {0, number} lines of code instead of {1, number} authorized.
=== Parameters
.maximumLinesThreshold
****
----
100
----
The maximum number of lines of code allowed in a section.
****
'''
== Comments And Links
(visible only on this page)
=== is related to: S1287
=== on 29 May 2015, 13:05:52 Ann Campbell wrote:
double-check me, [~pierre-yves.nicolas]
=== on 29 May 2015, 15:45:55 Pierre-Yves Nicolas wrote:
I changed the SQALE factor to 2min per line.
endif::env-github,rspecator-view[]