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

44 lines
892 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

== Why is this an issue?
TO BE TRANSLATED :
Lobjectif est de laisser la détermination taille des blocs physiques de fichier au niveau des JCL plutôt que de limposer par programme. Cela permet doptimiser cette taille sans avoir à recompiler/livrer le programme
Que doit-on contrôler?
La présence de BLOC CONTAINS 0 RECORDS (ou BLOC 0, BLOC CONTAINS 0, etc)
=== Noncompliant code example
[source,cobol]
----
FD MONFICHIER
RECORD CONTAINS 10 CHARACTERS.
01 ENR-LU PIC X(10).
----
=== Compliant solution
[source,cobol]
----
FD MONFICHIER
BLOC 0.
01 ENR-LU PIC X(10).
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
=== on 27 May 2014, 09:27:36 Freddy Mallet wrote:
Rule specific to the BNP context. We should provide an XPath rule to get the same context.
endif::env-github,rspecator-view[]