Skip to content

Commit

Permalink
Fix incosistency in README
Browse files Browse the repository at this point in the history
  • Loading branch information
enzo-pellegrini committed Apr 24, 2024
1 parent 3e2fd79 commit 4d7a19b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ It is very easy to manually analyze a C, C++ and Objective-C project with SonarQ

. Create a `sonar-project.properties` file to store your configuration
.. Add a projectKey of your project
.. Add a Build Wrapper output directory
.. https://docs.sonarqube.org/latest/user-guide/user-token/[Generate a unique token] and set it as "sonar.login" (`SONARQUBE_TOKEN` in this example project)
.. Set `sonar.host.url` to your SonarQube server URL
. Download and unzip the Build Wrapper for Windows from {SonarQube URL}/static/cpp/build-wrapper-win-x86.zip
. Add the Build Wrapper to your `%PATH%`
. Download and unzip the https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/[SonarScanner] for Windows
. Add the bin directory of the SonarScanner to your `%PATH%`
. Wrap your clean build command with the Build Wrapper. E.g.: `build-wrapper-win-x86-64.exe --out-dir bw-output MSBuild.exe /t:Rebuild /nodeReuse:false` (with `bw-output` being the same directory that the one set in `sonar-project.properties`)
. Run `sonar-scanner`
. Wrap your clean build command with the Build Wrapper. E.g.: `build-wrapper-win-x86-64.exe --out-dir bw-output MSBuild.exe /t:Rebuild /nodeReuse:false`
. Run `sonar-scanner` specifying `-Dsonar.cfamily.build-wrapper-output=bw-output` (with `bw-output` being the same directory as the one passed to Build Wrapper as `--out-dir`)

You can take a look at the link:sonar-project.properties[sonar-project.properties] and link:build-analyze.ps1[build-analyze.ps1] to see it in practice. Please be aware that the SonarQube server URL and the `sonar.login` are not completed in this example.

Expand Down

0 comments on commit 4d7a19b

Please sign in to comment.