sonarqube - Is there Sonar properties to add custom dictionary in the Fxcop -
currently executing fxcop rules part of sonar scan. we’ve got couple of wordings need add custom dictionary fxcop don’t raised fxcop violations.
i have committed codeanalysisdictionary.xml in repository developer can changer whenever required , versioned.
i know can use /dictionary: argument using fxcopcmd.exe.
is there way can achieve similar result using sonar properties.
i using below mentioned sonar properties.
sonar.fxcop.mode= sonar.fxcop.installdirectory=c:\\program files (x86)\\microsoft fxcop 10.0 sonar.fxcop.assemblydependencydirectories=c:\\lib***
any little here appreciated.
thanks, santhosh
it seems there has been feature request @ sonar jira state set "closed" "won't fix". https://jira.codehaus.org/browse/sonarcs-350
on other hand, if add "customdictionary.xml" file solution root folder, works automatically.
sample customdictionary.xml
<dictionary> <words> <recognized> <word>"productname"</word> <word>"companyname"</word> </recognized> </words> </dictionary>
thomas
Comments
Post a Comment