Skip to content

Commit

Permalink
Merge pull request #809 from I2PC/ms_sonar
Browse files Browse the repository at this point in the history
Update sonar-project.properties
  • Loading branch information
albertmena authored Aug 29, 2023
2 parents 4861785 + 8246e7c commit 31243dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scanBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=i2pc -Dsonar.login=$SONAR_TOKEN -Dsonar.projectKey=XmippCore
sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dsonar.organization=i2pc -Dsonar.projectKey=I2PC_xmipp
14 changes: 8 additions & 6 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
sonar.projectKey=Xmipp
sonar.projectName=Xmipp
sonar.projectVersion=3.0
sonar.projectKey=I2PC_xmipp
sonar.organization=i2pc

#sonar.log.level=DEBUG
# This is the name and version displayed in the SonarCloud UI.
sonar.projectVersion=3.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=./src/
# don't use .gitignore for auto exclusion, as it doesn't work properly and exclude almost everything

# Don't use .gitignore for auto exclusion, as it doesn't work properly and exclude almost everything
sonar.scm.exclusions.disabled=true

# NOTE - be careful with excusion rules. If you include formerly excluded folder, all files that include
# headers from it will be analyzed again! https://community.sonarsource.com/t/sonarscanner-cache-not-working-properly/29451
sonar.inclusions=**/xmipp/**, **/xmippViz/**
sonar.exclusions=**/external/**, **/programs/**, **/tests/**, **/legacy/**

# see https://docs.travis-ci.com/user/reference/overview/#virtualisation-environment-vs-operating-system

sonar.java.binaries=./src/xmippViz/java/build/xmipp
sonar.java.libraries=./src/xmippViz/java/lib/*.jar
sonar.cfamily.build-wrapper-output=bw-outputs

0 comments on commit 31243dc

Please sign in to comment.