sonarqube


Ambiguity in sonar when parsing .h files incase both c++ (community) and objectivec plugin are deployed


Recently we had a requirement to get static violation's for objective C language.We deployed the sonar-objective-c-plugin-0.4.0 plugin and generated a sample oclint xml with all the violation's.Now while trying to upload that xml we are encountering below error :
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 26.149s
INFO: Final Memory: 26M/1357M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
Language of file 'hybrid/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.h' can not be decided as the file matches patterns of both sonar.lang.patterns.c++ : **/*.cxx,**/*.cpp,**/*.cc,**/*.c,**/*.hxx,**/*.hpp,**/*.hh,**/*.h and sonar.lang.patterns.objc : **/*.h,**/*.m
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
bash-4.1$
Note : Since we want multi language analysis to happen we are not setting sonar.language property.
Please guide how to cater this need ?
Is there a way to disable / enable these plugin's during analysis ?
Refer ed below page :
http://javadocs.sonarsource.org/4.5/apidocs/src-html/org/sonar/api/CoreProperties.html
and utilized the following property : sonar.excludePlugins

Related Links

Jacoco.exec not being picked up
How can a Sonar widget show a project level property?
SonarQube Incremental mode gives different results on different machines with same code
Sonar Issue - Version update
Is there a Sonar API to get line level coverage for a given resource?
error in execute sonar-runner command in windows 7
How & Where to Compute Views on Sonar
Error occur when upgrading to Sonar to 4.2
SonarQube WebApi Access File Source Code
sonar-runner fails every time
Sonar Eclipse plugin: Failed to download batch_bootstrap/db
Imppossible to restore configuration with backup
How to configure SonarQube search for Names/Keys that do NOT contains strings
sonar code coverage is not displaying
Remove all issue checks from tests in SonarQube, except pattern matchers
How to use Sonar Runner on selected files?

Categories

HOME
localization
paraview
gpu
angular2-material
interface
graphics
r-googlesheets
pdfbox
okhttp
activecollab
angular-dart
magnetic-cards
http-post
modbus-tcp
standards
intershop
mathprog
fileserver
jersey-1.0
sse
imageresizer
pchart
froala
intersystems-cache
bringtofront
sqlpackage
winpe
google-earth
finagle
r-grid
wacom
instantiation
getpixel
html-encode
numpy-broadcasting
searchkit
sql-server-ce
mcustomscrollbar
trigonometry
android-softkeyboard
flask-restful
linter
clarifai
tf
opengl-4
cpu-cache
trigger.io
sandcastle
vcloud-director-rest-api
docpad
segment-io
nikeplus-api
drawstring
ng-grid
riot
query-by-example
uiactionsheet
grass
jbase
libvlc
dynamics-nav-2016
sapi
toran-proxy
roadkill-wiki
text-search
zscript
user-permissions
cryptographichashfunction
android-vibration
browserify-shim
sql-scripts
appserver
matrix-inverse
inputmismatchexception
unit-of-work
neos-server
ui-select2
stacky
mysql-error-2013
chart-director
http-status-code-410
bjyauthorize
veracity
kqueue
screen-size
catransform3d
multiplatform
cgbitmapcontextcreate
socketserver
ajax-polling
addchild
pos-for-.net
sifr
pagemethods
google-wave
scrubyt
fail-fast-fail-early

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile