git submodule update --init --recursive
To build the plugin while embedding a local build of the analyzer you can either:
run .\scripts\build\dev-build.ps1 -restore -build -test -buildJava
The flags -restore -build -test
need to be run only when you have changed the analyzer. Otherwise you can run only -buildJava
or run the following commands:
msbuild /t:rebuild .\sonaranalyzer-dotnet\SonarAnalyzer.sln
.\sonaranalyzer-dotnet\src\SonarAnalyzer.RuleDescriptorGenerator\bin\Debug\net46\SonarAnalyzer.RuleDescriptorGenerator.exe cs
mvn clean install -P local-analyzer -D analyzer.configuration=Debug
To build the plugin while relying on a released analyzer run mvn clean install -P download-analyzer -D analyzer.version=<VERSION>
When working with Eclipse or IntelliJ please follow the sonar guidelines
As for any maven project, the command mvn clean install
automatically runs the unit tests.
Before running ITs, you need to setup the NUGET_PATH environment variable to point to the nuget.exe executable.
To run the ITs, from your command prompt, you can either:
its
folder and run mvn clean install
.\scripts\build\dev-build.ps1 -itsJava
Please see Contributing Code for details on contributing changes back to the code.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。