Code Quality Module Practical Task Necessary Tools Java Development Kit 11+ Apache Maven 3.6.0+ Git 2.24+ Docker ##Task (1 star)
- Run Sonarqube docker container
- Instruction: https://docs.sonarqube.org/latest/
- Login to Sonarqube web interface
- default password: admin
- Configure a new project with token
- Analyse your pet project with SonarQube. Use generated token for it (you can get project from previous modules)
- If there are any issues, correct it
- Prepare .doc report with screenshot for every step (2-3 stars)
- Configure a new project with token
- Create a new maven project with a few (10+) issues, e.x. :
- Don't use method reference
- Use switch operator. Define 'default' in the top of operator
- etc.
- Analyse your project
- Try to skip all issues with @SuppressWarnings
- Prepare .doc report with screenshot for every step (4 stars)
- Remove @SuppressWarnings for project from previous section
- Create a new Sonar java profile (copy it from default java profile)
- Deactivate rules for issues from previous section
- Link new profile to your project
- Analyse your project
- Prepare .doc report with screenshot for every step (5 stars)
- Create a new Quality Gate with:
- Duplicated code (> 10)
- Issues (> 20)
- Code smells (> 40)
- Bugs (> 35)
- Unit test succsess (< 40)
- Link it to your project
- Analyse your project
- Prepare .doc report with screenshot for every step References • Clean Code • Agile Software Development: Code Quality • 11 Best Practices and Tools to Improve the Java Code Quality • S.O.L.I.D