rspec/rules/S1300/cobol/rule.adoc

47 lines
1.0 KiB
Plaintext
Raw Normal View History

== Why is this an issue?
2021-04-28 16:49:39 +02:00
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[]