which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension): I am using SonarQube Server
how is SonarQube deployed: zip, Docker, Helm
what are you trying to achieve: Avoid scanning some files that are not relevant in my repo
what have you tried so far to achieve this: I have been navigating my project in SonarQube but found nothing yet. I was able to do this on my SonarQube for IDE, but not in the server config.
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
you can exlude some path or files from analysis by setting properties for the scanner. See this section in the docs.
How you set these parameters depend on which scanner you are using. An example for the prepare task in Azure DevOps pipielines would be:
- task: SonarQubePrepare@7
displayName: 'Prepare analysis on SonarQube'
condition: ne(variables['Build.Reason'], 'Schedule')
inputs:
SonarQube: Sonarqube
projectKey: MyProjectKey
projectVersion: '$(Build.BuildNumber)'
extraProperties: |
# Additional properties that will be passed to the scanner,
# Put one key=value per line, example:
sonar.links.scm=https://<link to my repo>
sonar.exclusions=external/**,source/NumericsEvaluation/**