2 Star 1 Fork 0

HaoYP / sonar-dotnet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
contributing-plugin.md 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
Andrei Epure 提交于 2019-04-02 16:02 . Update readme files (#2365)

Building, Testing and Debugging the SonarQube plugin

Working with the code

  1. Clone this repository
  2. Download sub-modules git submodule update --init --recursive
  3. Build the plugin
    • 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:

        1. msbuild /t:rebuild .\sonaranalyzer-dotnet\SonarAnalyzer.sln
        2. .\sonaranalyzer-dotnet\src\SonarAnalyzer.RuleDescriptorGenerator\bin\Debug\net46\SonarAnalyzer.RuleDescriptorGenerator.exe cs
        3. 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>

Developing with Eclipse or IntelliJ

When working with Eclipse or IntelliJ please follow the sonar guidelines

Running Tests

Unit Tests

As for any maven project, the command mvn clean install automatically runs the unit tests.

Integration 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:

  • go to the its folder and run mvn clean install
  • or run .\scripts\build\dev-build.ps1 -itsJava

Contributing

Please see Contributing Code for details on contributing changes back to the code.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/haoyp1985_admin/sonar-dotnet.git
git@gitee.com:haoyp1985_admin/sonar-dotnet.git
haoyp1985_admin
sonar-dotnet
sonar-dotnet
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891