Code SonarQube 2019(3)Scanner Configuration

阅读更多
Code SonarQube 2019(3)Scanner Configuration

We can directly run the command as follow:
> sonar-scanner   -Dsonar.projectKey=services.user   -Dsonar.sources=./userApi/src,./dataMigration/src   -Dsonar.host.url=http://ubuntu-master:9000   -Dsonar.login=6bd3291c57cd00a6324b27f26735d02b5bc6ef86

We can also put a file there
> cat sonar-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

Then run this command will be fine then
> sonar-scanner


References:
https://blog.csdn.net/clamaa/article/details/70045970



你可能感兴趣的:(Code SonarQube 2019(3)Scanner Configuration)