Add language JCL as a supported language (#3604)
This commit is contained in:
parent
708f427562
commit
718931dce3
@ -149,6 +149,7 @@ const languageToJiraProject = new Map(Object.entries({
|
||||
'CFAMILY': 'CPP',
|
||||
'DOCKER': 'SONARIAC',
|
||||
'JAVA': 'SONARJAVA',
|
||||
'JCL': 'SONARJCL',
|
||||
'COBOL': 'SONARCOBOL',
|
||||
'FLEX': 'SONARFLEX',
|
||||
'HTML': 'SONARHTML',
|
||||
@ -190,6 +191,7 @@ const languageToGithubProject = new Map(Object.entries({
|
||||
'COBOL': 'sonar-cobol',
|
||||
'VB6': 'sonar-vb',
|
||||
'JAVA': 'sonar-java',
|
||||
'JCL': 'sonar-jcl',
|
||||
'PLI': 'sonar-pli',
|
||||
'CFAMILY': 'sonar-cpp',
|
||||
'CSS': 'sonar-css',
|
||||
|
@ -20,6 +20,7 @@ const languageToSonarpedia = new Map<string, string[]>(Object.entries({
|
||||
'go': ['GO'],
|
||||
'java': ['JAVA'],
|
||||
'javascript': ['JAVASCRIPT', 'JS', 'TYPESCRIPT'],
|
||||
'jcl': ['JCL'],
|
||||
'php': ['PHP'],
|
||||
'pli': ['PLI'],
|
||||
'plsql': ['PLSQL'],
|
||||
|
@ -22,6 +22,7 @@ LANG_TO_LABEL = {'abap': 'abap',
|
||||
'html': 'html',
|
||||
'java': 'java',
|
||||
'javascript': 'jsts',
|
||||
'jcl': 'jcl',
|
||||
'kotlin': 'kotlin',
|
||||
'php': 'php',
|
||||
'pli': 'pli',
|
||||
@ -55,6 +56,7 @@ LANG_TO_SOURCE = {
|
||||
'go': 'go',
|
||||
'html': 'html',
|
||||
'java': 'java',
|
||||
'jcl': 'jcl',
|
||||
'javascript': 'javascript',
|
||||
'json': 'json',
|
||||
'kotlin': 'kotlin',
|
||||
|
4
rules/S2260/jcl/metadata.json
Normal file
4
rules/S2260/jcl/metadata.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"title": "JCL parser failure",
|
||||
"scope": "Main"
|
||||
}
|
19
rules/S2260/jcl/rule.adoc
Normal file
19
rules/S2260/jcl/rule.adoc
Normal file
@ -0,0 +1,19 @@
|
||||
== Why is this an issue?
|
||||
|
||||
When the JCL parser fails, it is possible to record the failure as a violation on the file. This way, not only it is possible to track the number of files that do not parse but also to easily find out why they do not parse.
|
||||
|
||||
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[]
|
@ -1 +1 @@
|
||||
`abap`, `apex`, `azureresourcemanager`, `cfamily`, `cobol`, `csharp`, `css`, `docker`, `flex`, `go`, `html`, `java`, `javascript`, `kotlin`, `php`, `pli`, `plsql`, `python`, `rpg`, `ruby`, `rust`, `scala`, `secrets`, `solidity`, `swift`, `text`, `tsql`, `vb6`, `vbnet`, `cloudformation`, `terraform`, `kubernetes`, or `xml`
|
||||
`abap`, `apex`, `azureresourcemanager`, `cfamily`, `cobol`, `csharp`, `css`, `docker`, `flex`, `go`, `html`, `java`, `javascript`, `jcl`, `kotlin`, `php`, `pli`, `plsql`, `python`, `rpg`, `ruby`, `rust`, `scala`, `secrets`, `solidity`, `swift`, `text`, `tsql`, `vb6`, `vbnet`, `cloudformation`, `terraform`, `kubernetes`, or `xml`
|
||||
|
Loading…
x
Reference in New Issue
Block a user