sonarqube - How do I add the deprecated Resharper plugin to sonar, manually? -
the resharper plugin 2.0 sonar marked deprecated, untill new pops up, use it. or @ least testdrive it.
the plugin still available on github page https://github.com/sonarqubecommunity/sonar-resharper , downloaded jar , dropped extensions\plugins folder, picked valid plugin.
but resharper.xml rules result never picked up. doing wrong? not supported "xcopy" deploy jar plugins?
i else in solutions analyzed , imported sonar, including code coverage. using resharper console tool, generate report, , solution file , report, tell sonar use, there, @ correct location.
i can see sonar-project.properties generated msbuild sonar runner knows resharper files known.
sonar.verbose=true sonar.cs.vscoveragexml.reportspaths=d:\\builds\\1\\tsv.net\\msmqmonitor\\testresults\\visualstudio.coveragexml sonar.resharper.cs.reportpath=d:\\builds\\1\\tsv.net\\msmqmonitor\\testresults\\resharper.xml sonar.resharper.solutionfile=d:\\builds\\1\\tsv.net\\msmqmonitor\\sources\\msmqmonitor.sln sonar.host.url=http://tfs03te:9000 sonar.visualstudio.enable=false
and sonarqubeanalysisconfig.xml guessing msbuild sonar runner using contains this:
<localsettings> <property name="sonar.verbose">true</property> <property name="sonar.cs.vscoveragexml.reportspaths">d:\builds\1\tsv.net\msmqmonitor\testresults\visualstudio.coveragexml</property> <property name="sonar.resharper.cs.reportpath">d:\builds\1\tsv.net\msmqmonitor\testresults\resharper.xml</property> <property name="sonar.resharper.solutionfile">d:\builds\1\tsv.net\msmqmonitor\sources\msmqmonitor.sln</property> </localsettings> <analyzersettings> <rulesetfilepath>d:\builds\1\tsv.net\msmqmonitor\.sonarqube\conf\sonarquberoslyn-cs.ruleset</rulesetfilepath> <analyzerassemblypaths> <path>c:\users\lrnx\appdata\local\temp\2\.sonarqube\.static\csharp_1.13.0\sonaranalyzer.zip\sonaranalyzer.csharp.dll</path> <path>c:\users\lrnx\appdata\local\temp\2\.sonarqube\.static\csharp_1.13.0\sonaranalyzer.zip\sonaranalyzer.dll</path> <path>c:\users\lrnx\appdata\local\temp\2\.sonarqube\.static\csharp_1.13.0\sonaranalyzer.zip\sonaranalyzer.zip</path> </analyzerassemblypaths> <additionalfilepaths> <path>d:\builds\1\tsv.net\msmqmonitor\.sonarqube\conf\sonarlint.xml</path> </additionalfilepaths> </analyzersettings>
edit: checked quality profile settings, , resharper rules not detected (i deployed jar file far).
you need configure quality profile include resharper rules want use.
Comments
Post a Comment