sonarqube 4.5 has misidentified a cpp module as c - how can I fix it -
i created multi-module project single sonar-project.properties. of project in c 1 module c++. left sonar.language property blank , ran sonar-runner analysis.
the project , modules created in database , looked ok when did preview on same code had large number of new issues on c++ project.
on closer inspection found module in sonarqube wrong - consisted of header files (.h) , of issues use of c style comments. seems module identified c module .cpp files ignored. however, in preview language identified correctly , issues found in .cpp files not know sonarqube.
i cannot find place in ui change language of module nor can figure out way force after fact in sonar-project.profiles. first, sonar.language apparently deprecated, , second, using module.sonar.language=cpp caused error:
caused by: sonar.profile set 'default_c' didn't match profile language. please check configuration.
default_c use projects not 1 i'm working on. have different profiles set different languages via ui, if cannot analysis see correct language doesn't me much.
any 1 have idea how can force language of module after fact?
hmm. considered deleting if had found answer on stackoverflow have eased pain little.
brute force works. set language , profile want moudle , ignore complaints such things being deprecated. chosing language won't force right profile if have set explicit profile language in ui - state in sonar-project.properties file. in case: module.sonar.language=cpp module.sonar.profile=my_cpp_profile
throw sonar-runner @ , beat backend shape.
Comments
Post a Comment