-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2639 from antarus/feature/add-sonar-doc
Add sonar documentation
- Loading branch information
Showing
4 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/resources/generator/server/sonar/sonar.md.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Usage | ||
|
||
Before you can analyse your project, you must launch sonar with the following command | ||
|
||
**with docker-compose** | ||
```bash | ||
docker-compose -f {{srcMainDocker}}/sonar.yml up -d | ||
``` | ||
|
||
**with docker compose plugin** | ||
```bash | ||
docker compose -f {{srcMainDocker}}/sonar.yml up -d | ||
``` | ||
|
||
After that you can launch the analysis of your project with | ||
```bash | ||
./mvnw clean verify sonar:sonar | ||
``` | ||
|
||
You can see the result at [http://localhost:9001/](http://localhost:9001/) | ||
|
||
[official documentation](https://www.sonarqube.org/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters