Modify rule S2260: Add Docker as new language (RULEAPI-773) (#1391)
This commit is contained in:
parent
48e622bb03
commit
8059dc77b1
@ -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',
|
||||
|
@ -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'],
|
||||
|
@ -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',
|
||||
|
3
rules/S2260/docker/metadata.json
Normal file
3
rules/S2260/docker/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"title": "Dockerfile parsing failure"
|
||||
}
|
16
rules/S2260/docker/rule.adoc
Normal file
16
rules/S2260/docker/rule.adoc
Normal 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[]
|
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user