-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with sonar.language property #46
Comments
Hi, You can specify the language by adding the option 'language' like this: karmaSonar: {
options: {
language: 'put the language here'
},
yourTarget: {}
} Or use the sonar default language by excluding it like this: karmaSonar: {
options: {
excludedProperties: ['sonar.language']
},
yourTarget: {}
} To see with which parameters sonar would have run you can use: karmaSonar: {
options: {
dryRun: true
},
yourTarget: {}
} |
Hi mdasberg, This is my configuration karmaSonar: { my requirement is to analyse the js,css and html file in a single run I tried all the above mentioned options ,with no success. |
Hi mdasberg, This is my configuration karmaSonar: { jdbcUrl : 'JDBC URL', my requirement is to analyse the js,css and html file in a single run I tried all the above mentioned options ,with no success. On Thu, Feb 4, 2016 at 6:17 PM, Mischa Dasberg [email protected]
With Regards, Balaji.V +91 - 9700221565 / 8792995420 |
When providing null as language, it should fail, as there is no plugin installed with identifier for language null. When I run with the following configuration: karmaSonar: {
options: {
language: 'web'
}
...
} I get the following output:
Which is what I expect, as I don't have a plugin installed in my sonar instance to handle language 'web' What is the output when you use language: 'web'? |
I use"null" as mentioned in the documentation, We are using sonarqube 4.5.6 If i place web as a language, it is not recognizing any file formats. Output: 13:55:37.328 INFO - 0 files indexed |
can you try the exclude option? karmaSonar: {
options: {
excludedProperties: ['sonar.language']
},
yourTarget: {}
} I found the issue, will create a new release |
Hi mdasberg, If i assign "null" to language, it is indexing the all the files but it is not doing any analysis. Even though i assign "null', it is analyzing only js files and loading only js profile from sonarqube. if assign "web" to language, it is not indexing the files and i am getting following output 04:15:34.744 INFO - Load module settings |
Hi mdasberg, Now it is working after a code modification in sonar.js file copy: function (callback) {
and one more modification is as below files.forEach(function (file) {
|
you want to include css and html files from the test dir? |
@BalajiVM should be fixed in version 0.2.22 |
Multi-language is not supporting with this package and web language is not recognizing. Please help us by providing the solution for this.
12:18:44.722 INFO - Language is forced to null
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 12.288s
Final Memory: 18M/543M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: You must install a plugin that supports the language 'null'
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
Warning: The following error occured while trying to upload to sonar: Error Used --force, continuing.
The text was updated successfully, but these errors were encountered: