Add language AzureResourceManager as a supported language (#1827)

This commit is contained in:
Rudy Regazzoni 2023-05-04 11:55:34 +02:00 committed by GitHub
parent 87ae044584
commit 31f3a23b45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 1 deletions

View File

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

View File

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

View File

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

View File

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

View 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[]

View File

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