Modify rule S2260: Add Docker as new language (RULEAPI-773) (#1391)

This commit is contained in:
Nils Werner 2022-11-14 17:33:51 +01:00 committed by GitHub
parent 48e622bb03
commit 8059dc77b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 1 deletions

View File

@ -146,6 +146,7 @@ const languageToJiraProject = new Map(Object.entries({
'PYTHON': 'SONARPY',
'ABAP': 'SONARABAP',
'CFAMILY': 'CPP',
'DOCKER': 'SONARIAC',
'JAVA': 'SONARJAVA',
'COBOL': 'SONARCOBOL',
'FLEX': 'SONARFLEX',
@ -173,6 +174,7 @@ const languageToJiraProject = new Map(Object.entries({
const languageToGithubProject = new Map(Object.entries({
'ABAP': 'sonar-abap',
'CSHARP': 'sonar-dotnet',
'DOCKER': 'sonar-iac',
'VBNET': 'sonar-dotnet',
'JAVASCRIPT': 'SonarJS',
'TYPESCRIPT': 'SonarJS',

View File

@ -10,6 +10,7 @@ const languageToSonarpedia = new Map<string, string[]>(Object.entries({
'cfamily': ['CPP', 'C', 'OBJC'],
'cobol': ['COBOL'],
'csharp': ['CSH'],
'docker': ['DOCKER'],
'vbnet': ['VBNET'],
'css': ['CSS'],
'flex': ['FLEX'],

View File

@ -16,6 +16,7 @@ LANG_TO_LABEL = {'abap': 'abap',
'cobol': 'cobol',
'csharp': 'dotnet',
'css': 'css',
'docker': 'iac',
'flex': 'flex',
'go': 'slang',
'html': 'html',
@ -49,6 +50,7 @@ LANG_TO_SOURCE = {
'cfamily': 'cpp',
'csharp': 'csharp',
'css': 'css',
'docker': 'docker',
'go': 'go',
'html': 'html',
'java': 'java',

View File

@ -0,0 +1,3 @@
{
"title": "Dockerfile parsing failure"
}

View File

@ -0,0 +1,16 @@
When the Dockerfile parser fails, it is possible to record the failure as a violation on the file. This way, not only is it 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`, `cfamily`, `cobol`, `csharp`, `css`, `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`, `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`