Code SonarQube 2019(3)Scanner Configuration
CodeSonarQube2019(3)ScannerConfiguration
Wecandirectlyrunthecommandasfollow:
>sonar-scanner-Dsonar.projectKey=services.user-Dsonar.sources=./userApi/src,./dataMigration/src-Dsonar.host.url=http://ubuntu-master:9000-Dsonar.login=6bd3291c57cd00a6324b27f26735d02b5bc6ef86
Wecanalsoputafilethere
>catsonar-project.properties
sonar.projectKey=services.user
sonar.host.url=http://ubuntu-master:9000
sonar.login=6bd3291c57cd00a6324b27f26735d02b5bc6ef86
sonar.sources=./userApi/src,./dataMigration/src
sonar.tests=./userApi/test,./dataMigration/test
sonar.language=TypeScript
Thenrunthiscommandwillbefinethen
>sonar-scanner
References:
https://blog.csdn.net/clamaa/article/details/70045970