Ant sonarcheck

sonarqube: http://www.sonarqube.org

https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/6.7.0.0/en-US/5e14644fc24f409383cc6d92bdb81242.html?q=sonar

Ant sonarcheck Target Usage Examples

Here are some examples of what the ant sonarcheck target offers:

  • sonar.extensions: One sonar target that handles both single and multiple extensions specified in the property as a comma-separated list. If not specified, scans all extensions.

  • sonar.excludedExtensions:  Removes extensions from consideration.

  • Defaults project name and project key to the first extension mentioned in the sonar.extensions property but should typically be overridden from the command line by the caller.

  • Doesn't include gensrc directories in the scan.

  • By default, excludes jalo classes, generated constants and *Standalone classes but users can override from the command line if they want these scanned using the sonar.exclusions property.

  • By default, scans for all programming languages and markup languages supported by the SonarQube server being used but you can override at the command line using the sonar.language property.

  • Includes all the usual ‘source’ and ‘test’ directories for each extension being scanned.

  • Examples of usage:

    • Usual usage of scanning the handful of extensions that make up a module or project-specific implementation:
      ant sonarcheck -Dsonar.extensions commercefacades,commerceservices,acceleratorfacades,acceleratorservices -Dsonar.projectName "Commerce Layer" -Dsonar.projectKey commercelayer

       

    • Exclude some extensions from the list being scanned:
      ant sonarcheck -Dsonar.extensions commercefacades,commerceservices,acceleratorfacades,acceleratorservices -Dsonar.projectName "Commerce Service Layer" -Dsonar.projectKey comservicelayer -Dsonar.excludedExtensions acceleratorfacades,commercefacade

       

    • Scan a single extension defaulting project name and key to the extension name:
      ant sonarcheck -Dsonar.extensions catalog

       

    • Scan all extensions defaulting project name and key but including jalo classes, and others, that are normally omitted:
      ant sonarcheck -Dsonar.exclusions ""

       

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值