Add language JCL as a supported language (#3604)

This commit is contained in:
Rudy Regazzoni 2024-02-07 10:10:43 +01:00 committed by GitHub
parent 708f427562
commit 718931dce3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 29 additions and 1 deletions

View File

@ -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',

View File

@ -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'],

View File

@ -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',

View File

@ -0,0 +1,4 @@
{
"title": "JCL parser failure",
"scope": "Main"
}

19
rules/S2260/jcl/rule.adoc Normal file
View 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[]

View File

@ -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`