Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SonarQube Gradle plugin for local code inspection 🔎
https://plugins.gradle.org/plugin/org.sonarqube https://github.com/SonarSource/sonar-scanner-gradle Explain how to run local code inspection with official Docker image (https://hub.docker.com/_/sonarqube). 🐳 Tested with Podman 🦭 (https://podman.io/): $ podman machine info Host: Arch: amd64 CurrentMachine: podman-machine-default DefaultMachine: "" EventsDir: /var/folders/vn/t_jql4vn7fzb9cr0qxcxdqlm0000gn/T/podman-run--1/podman MachineConfigDir: /Users/nicolas/.config/containers/podman/machine/qemu MachineImageDir: /Users/nicolas/.local/share/containers/podman/machine/qemu MachineState: Running NumberOfMachines: 1 OS: darwin VMType: qemu Version: APIVersion: 4.7.2 Built: 1698753557 BuiltTime: Tue Oct 31 12:59:17 2023 GitCommit: 750b4c3a7c31f6573350f0b3f1b787f26e0fe1e3 GoVersion: go1.21.4 Os: darwin OsArch: darwin/amd64 Version: 4.7.2 $ alias docker docker=podman $ docker run -d --name sonarqube -p 9000:9000 docker.io/sonarqube 4d85d236e383622044eeb86198e618d22f79637debdac16378ddf3998d15ff15 $ ./gradlew sonarqube --info -Dsonar.login=admin -Dsonar.password=admin ... > Task :sonarqube ... ANALYSIS SUCCESSFUL, you can find the results at: http://localhost:9000/dashboard?id=pullpitoK Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report More about the report processing at http://localhost:9000/api/ce/task?id=AYuyNmLfK0whm78Dl0fp Analysis total time: 1:45.562 s
- Loading branch information