Modify rule S1172: add language JCL (#3732)
* Add jcl to rule S1172 * Add rule description --------- Co-authored-by: sallaigy <sallaigy@users.noreply.github.com> Co-authored-by: Gyula Sallai <gyula.sallai@sonarsource.com>
This commit is contained in:
parent
b2d7a104ab
commit
02e886d7dd
2
rules/S1172/jcl/metadata.json
Normal file
2
rules/S1172/jcl/metadata.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
46
rules/S1172/jcl/rule.adoc
Normal file
46
rules/S1172/jcl/rule.adoc
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
== Why is this an issue?
|
||||||
|
|
||||||
|
include::../description.adoc[]
|
||||||
|
|
||||||
|
== How to fix it
|
||||||
|
|
||||||
|
include::../how-to-fix-it.adoc[]
|
||||||
|
|
||||||
|
=== Code examples
|
||||||
|
|
||||||
|
[source,jcl,diff-id=1,diff-type=noncompliant]
|
||||||
|
----
|
||||||
|
//MYPROC PROC NAME1=SYS1,NAME2=SYS2,NAME3=SYS3 <--- Noncompliant
|
||||||
|
//STEP1 EXEC PGM=DOTHING
|
||||||
|
//THEFILE DD DSN=&N1..INFILE,DISP=SHR
|
||||||
|
// DD DSN=&N2..INFILE,DISP=SHR
|
||||||
|
// PEND
|
||||||
|
----
|
||||||
|
|
||||||
|
==== Compliant solution
|
||||||
|
|
||||||
|
[source,jcl,diff-id=1,diff-type=compliant]
|
||||||
|
----
|
||||||
|
//MYPROC PROC NAME1=SYS1,NAME2=SYS2
|
||||||
|
//STEP1 EXEC PGM=DOTHING
|
||||||
|
//THEFILE DD DSN=&N1..INFILE,DISP=SHR
|
||||||
|
// DD DSN=&N2..INFILE,DISP=SHR
|
||||||
|
// PEND
|
||||||
|
----
|
||||||
|
|
||||||
|
ifdef::env-github,rspecator-view[]
|
||||||
|
|
||||||
|
'''
|
||||||
|
== Implementation Specification
|
||||||
|
(visible only on this page)
|
||||||
|
|
||||||
|
include::../message.adoc[]
|
||||||
|
|
||||||
|
'''
|
||||||
|
== Comments And Links
|
||||||
|
(visible only on this page)
|
||||||
|
|
||||||
|
include::../comments-and-links.adoc[]
|
||||||
|
|
||||||
|
endif::env-github,rspecator-view[]
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user