- Catch bugs to prevent undefined behaviors
- Find security vulnerabilities
- Make sure your codebase is clean and maintainable
- It's Open Source
- Docker
- Docker Compose
- Make
On Linux you may need to set this:
sudo sysctl -w vm.max_map_count=262144
-
Copy these files to your project root
-
Build SonarQube
build-sq
- Run SonarQube
run-sq
- Access http://localhost:9000/ and login with default credentials:
login: admin
password: admin
-
Create and setup a project at the graphic interface.
-
Fill up the project information at
docker-compose.yml
environment variables
environment:
- SONAR_HOST_URL=http://sonarqube:9000
- SONAR_PROJECT_KEY=your_password
- SONAR_PROJECT_NAME=your_project_name
- SONAR_PROJECT_VERSION=0.1
- SONAR_PROJECT_SOURCE=/usr/src/
- SONAR_PROJECT_BASE_DIR=/usr/src/
- SONAR_SCM_PROVIDER=git
- SONAR_PROJECT_LANGUAGE=py
- SONAR_SOURCE_ENCODING=UTF-8
- Build Sonar Scanner
build-sq
- Run Sonar Scanner
run-sq
- Check the results at http://localhost:9000/