sourcegraph/sonar-project.properties
Will Dollman 1e37415963
Use Buildkite to run Sonarcloud (#54875)
## Test plan

Plan:

- Enable manual analysis in sonarcloud admin panel
- Rotate the SONAR_TOKEN in GSM
- Trigger empty commit to test the change in buildkite
- if  build passes, we could merge
- if 🔴 build fails due to sonarcloud, enable automatic analysis and
debug the issue.

Backup Plan:

After merging the changes,

- If 🟢 Build passes, do nothing and continue monitoring for failures or
stuck build
- If 🔴 Build fails, revert the changes, enable automatic analysis and
debug the issue.

PS:

- The sonarcloud analysis will be running on diff for every pull request
created in Github. For every merged request, branch analysis is
triggered which executes for ~8 to ~12 minutes (this is expected)
- The results are posted back by the sonarcloud as Github Checks once it
process the reports submitted by buildkite.

---------

Co-authored-by: Vincent Ruijter <vincent.ruijter@sourcegraph.com>
Co-authored-by: s.shivasurya <s.shivasurya@gmail.com>
Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
2023-07-21 12:16:03 -04:00

18 lines
633 B
Properties

sonar.projectKey=sourcegraph_sourcegraph
sonar.organization=sourcegraph
# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=sourcegraph
#sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
sonar.exclusions=*/**.java,*/**.kt,*/**.py,*/**.sql,**/__fixtures__/**,**/mock_*_test.go,**/*_test.go
sonar.c.file.suffixes=-
sonar.cpp.file.suffixes=-
sonar.objc.file.suffixes=-
sonar.sourceEncoding=UTF-8
sonar.cpd.exclusions=**/*_test.go