Add language AzureResourceManager as a supported language (#1827)
This commit is contained in:
parent
87ae044584
commit
31f3a23b45
@ -145,6 +145,7 @@ type UsedStyles = ReturnType<typeof useStyles>;
|
||||
const languageToJiraProject = new Map(Object.entries({
|
||||
'PYTHON': 'SONARPY',
|
||||
'ABAP': 'SONARABAP',
|
||||
'AZURERESOURCEMANAGER': 'SONARIAC',
|
||||
'CFAMILY': 'CPP',
|
||||
'DOCKER': 'SONARIAC',
|
||||
'JAVA': 'SONARJAVA',
|
||||
@ -173,6 +174,7 @@ const languageToJiraProject = new Map(Object.entries({
|
||||
|
||||
const languageToGithubProject = new Map(Object.entries({
|
||||
'ABAP': 'sonar-abap',
|
||||
'AZURERESOURCEMANAGER': 'sonar-iac',
|
||||
'CSHARP': 'sonar-dotnet',
|
||||
'DOCKER': 'sonar-iac',
|
||||
'VBNET': 'sonar-dotnet',
|
||||
|
@ -7,6 +7,7 @@ type RuleCoverage = Record<string, Record<string, Version>>;
|
||||
const languageToSonarpedia = new Map<string, string[]>(Object.entries({
|
||||
'abap': ['ABAP'],
|
||||
'apex': ['APEX'],
|
||||
'azureresourcemanager': ['AZURERESOURCEMANAGER'],
|
||||
'cfamily': ['CPP', 'C', 'OBJC'],
|
||||
'cobol': ['COBOL'],
|
||||
'csharp': ['CSH'],
|
||||
|
@ -12,6 +12,7 @@ import os
|
||||
SUPPORTED_LANGUAGES_FILENAME = '../supported_languages.adoc'
|
||||
LANG_TO_LABEL = {'abap': 'abap',
|
||||
'apex': 'slang',
|
||||
'azureresourcemanager': 'iac',
|
||||
'cfamily': 'cfamily',
|
||||
'cobol': 'cobol',
|
||||
'csharp': 'dotnet',
|
||||
@ -73,6 +74,7 @@ LANG_TO_SOURCE = {
|
||||
'vb': 'vb',
|
||||
# these languages are not supported by highlight.js as the moment:
|
||||
'apex': 'apex',
|
||||
'azureresourcemanager': 'azureresourcemanager',
|
||||
'cloudformation': 'cloudformation',
|
||||
'cobol': 'cobol',
|
||||
'flex': 'flex',
|
||||
|
3
rules/S2260/azureresourcemanager/metadata.json
Normal file
3
rules/S2260/azureresourcemanager/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"title": "AzureResourceManager parsing failure"
|
||||
}
|
16
rules/S2260/azureresourcemanager/rule.adoc
Normal file
16
rules/S2260/azureresourcemanager/rule.adoc
Normal file
@ -0,0 +1,16 @@
|
||||
When the AzureResourceManager 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`, `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`, `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