Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis...
Transcript of Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis...
![Page 1: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/1.jpg)
2017-12-06
Mantas Gedrimas
![Page 2: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/2.jpg)
What’s SonarQube?
• Static code analysis tool
• Open-source
• Commercial for some languages
• Creators – SonarSource (Switzerland)
2017-12-06 VU, MIF
![Page 3: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/3.jpg)
Supported Languages
• Free (open-source):
– JavaScript, C#, Java, PHP, Python, HTML…
• Commercial:
– C/C++, COBOL, PL/SQL, VB.NET, Objective-C,
Swift…
2017-12-06 VU, MIF
![Page 4: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/4.jpg)
Supported Languages
• Several languages can be used at the same time
2017-12-06 VU, MIF
![Page 5: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/5.jpg)
Overall Health
2017-12-06 VU, MIF
![Page 6: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/6.jpg)
Focus on the Leak
2017-12-06 VU, MIF
![Page 7: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/7.jpg)
Enforce Quality Gate
2017-12-06 VU, MIF
![Page 8: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/8.jpg)
Analyze pull requests
2017-12-06 VU, MIF
![Page 9: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/9.jpg)
Branch Analysis
2017-12-06 VU, MIF
![Page 10: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/10.jpg)
Dig into issues
2017-12-06 VU, MIF
![Page 11: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/11.jpg)
Highlight hot spots
2017-12-06 VU, MIF
![Page 12: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/12.jpg)
Visualise the history of a project
2017-12-06 VU, MIF
![Page 13: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/13.jpg)
Detect Bugs
2017-12-06 VU, MIF
![Page 14: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/14.jpg)
Code Smells
2017-12-06 VU, MIF
![Page 15: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/15.jpg)
Security Vulnerability
2017-12-06 VU, MIF
![Page 16: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/16.jpg)
Activate The Rules You Need
2017-12-06 VU, MIF
![Page 17: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/17.jpg)
Explore All Execution Paths
2017-12-06 VU, MIF
![Page 18: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/18.jpg)
Build Systems
2017-12-06 VU, MIF
![Page 19: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/19.jpg)
CI Engines
2017-12-06 VU, MIF
![Page 20: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/20.jpg)
Pass/Fail Notification
2017-12-06 VU, MIF
![Page 21: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/21.jpg)
Metrics
• LOC
• Functions
• Classes
• Files
• Directories
• ...
2017-12-06 VU, MIF
![Page 22: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/22.jpg)
Metrics
• Cyclomatic complexity
• Comments
• Coverage
• …
2017-12-06 VU, MIF
![Page 23: Mantas Gedrimas - klevas.mif.vu.ltadamonis/tikv/1718r/pr/sonarqube.pdf · SonarQube analysis reported 1 issues to 11 minor Watch the comments in this conversatic that were not in](https://reader033.fdocuments.net/reader033/viewer/2022052423/5f08cbfe7e708231d423c445/html5/thumbnails/23.jpg)
Questions?
2017-12-06 VU, MIF