-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify rule S100: add language JCL (#3723)
* Add jcl to rule S100 * Provide JCL details * Address review comment --------- Co-authored-by: rudy-regazzoni-sonarsource <rudy-regazzoni-sonarsource@users.noreply.github.com> Co-authored-by: Rudy Regazzoni <110470341+rudy-regazzoni-sonarsource@users.noreply.github.com>
- Loading branch information
1 parent
150702c
commit a2241c3
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"title": "Procedure names should comply with a naming convention" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
== Why is this an issue? | ||
|
||
Shared naming conventions allow teams to collaborate efficiently. | ||
|
||
This rule raises an issue when a procedure name does not match a provided regular expression. | ||
|
||
For example, with the default provided regular expression ``++^[A-Z][A-Z0-9]*$++``, the procedure: | ||
|
||
[source,jcl] | ||
---- | ||
//* Noncompliant | ||
//$PROC1 PROC | ||
---- | ||
|
||
should be renamed to | ||
|
||
[source,jcl] | ||
---- | ||
//PROC1 PROC | ||
---- | ||
|
||
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[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
=== Message | ||
|
||
Rename [method|function|subroutine] "XXXX" to match the regular expression ${format}. | ||
Rename [method|function|subroutine|procedure] "XXXX" to match the regular expression ${format}. | ||
|