Missing language support
pnag90 opened this issue · 2 comments
pnag90 commented
Affected Resource(s)
- sonarqube_qualityprofile_project_association
Terraform Configuration Files
resource "sonarqube_qualityprofile_project_association" "demo" {
project = "my_project"
quality_profile = "my_profile"
language = "grvy"
}
Expected Behavior
Should accept all Sonar supported languages (g.e: groovy)
Link of supported languages: https://next.sonarqube.com/sonarqube/web_api/api/languages/list
Actual Behavior
Showing error: "expected language to be one of [cloudformation cs css flex go java js jsp kotlin php py ruby scala terraform ts vbnet web xml], got grvy"
Steps to Reproduce
- Set a language like
groovy
terraform apply
pnag90 commented
Response for languages REST API call:
{
"languages": [
{
"key": "abap",
"name": "ABAP"
},
{
"key": "apex",
"name": "Apex"
},
{
"key": "c",
"name": "C"
},
{
"key": "cs",
"name": "C#"
},
{
"key": "cpp",
"name": "C++"
},
{
"key": "cobol",
"name": "COBOL"
},
{
"key": "css",
"name": "CSS"
},
{
"key": "cxx",
"name": "CXX"
},
{
"key": "cloudformation",
"name": "CloudFormation"
},
{
"key": "docker",
"name": "Docker"
},
{
"key": "flex",
"name": "Flex"
},
{
"key": "go",
"name": "Go"
},
{
"key": "grvy",
"name": "Groovy"
},
{
"key": "web",
"name": "HTML"
},
{
"key": "json",
"name": "JSON"
},
{
"key": "jsp",
"name": "JSP"
},
{
"key": "java",
"name": "Java"
},
{
"key": "js",
"name": "JavaScript"
},
{
"key": "kotlin",
"name": "Kotlin"
},
{
"key": "kubernetes",
"name": "Kubernetes"
},
{
"key": "neutral",
"name": "Neutral"
},
{
"key": "objc",
"name": "Objective-C"
},
{
"key": "php",
"name": "PHP"
},
{
"key": "pli",
"name": "PL/I"
},
{
"key": "plsql",
"name": "PL/SQL"
},
{
"key": "ps",
"name": "Powershell"
},
{
"key": "py",
"name": "Python"
},
{
"key": "rpg",
"name": "RPG"
},
{
"key": "ruby",
"name": "Ruby"
},
{
"key": "scala",
"name": "Scala"
},
{
"key": "secrets",
"name": "Secrets"
},
{
"key": "swift",
"name": "Swift"
},
{
"key": "tsql",
"name": "T-SQL"
},
{
"key": "terraform",
"name": "Terraform"
},
{
"key": "text",
"name": "Text"
},
{
"key": "ts",
"name": "TypeScript"
},
{
"key": "vbnet",
"name": "VB.NET"
},
{
"key": "vb",
"name": "Vb"
},
{
"key": "xml",
"name": "XML"
},
{
"key": "yaml",
"name": "YAML"
}
]
}