Day1
What is SonarQube?
=====================
Quality Mgmt tool
tool
Save cost ---> 70% of bugs in software due to Code Quality
Save time --->
Imp Quality ---->
mgmt.
RULES
ISSUES IN CODE
Quality
Code Quality ------> FOCUS
Test Quality
===================================================================
PLAN -> Dev -> Code A -> Build -> PACK -> Archive -> Dep > AT -> CodeCoverage
From SonarSource
Dev in JAVA -- PLAT IND + JRE
Release
Community - FREE
Dev - PAID
Enterprise - PAID
https://www.sonarsource.com/products/sonarqube/downloads/
Release - 10.6
Code Quality?
---------------------------------------
Peer Code Review - HUMAN would review Human Code.
Static Code Review
CODE would review Human Code.
1 CODE would review 1 Coding Scnario
100 CODE would review 100 Coding Scnario
Rule would review Code
1000 Rule would review Code
TOOL would review Code
SCA TOOL would review Code
https://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis
How Sonarqube works?
===================
SonarSqube Server DONE
Rules
Web --- 9000
DB - ANY RDBMS -- except MySQL (h2)
Code
git repo clone to local
https://github.com/devopsschool-demo-labs-projects/java-sonarqube-helloworld-src
Scanner
jar/cmd
<blockquote class="wp-embedded-content" data-secret="RmlYItC225"><a href="https://www.devopsschool.com/blog/complete-guide-of-java-installation-in-linux/">Java Installation Guide in Linux & Windows</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; visibility: hidden;" title="“Java Installation Guide in Linux & Windows” — DevOpsSchool.com" src="https://www.devopsschool.com/blog/complete-guide-of-java-installation-in-linux/embed/#?secret=SFTDwu3nkb#?secret=RmlYItC225" data-secret="RmlYItC225" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<blockquote class="wp-embedded-content" data-secret="biAG5yEnnJ"><a href="https://www.devopsschool.com/blog/sonarqube-tutorails-installation-configuration/">Sonarqube Tutorails: Installation & Configuration</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; visibility: hidden;" title="“Sonarqube Tutorails: Installation & Configuration” — DevOpsSchool.com" src="https://www.devopsschool.com/blog/sonarqube-tutorails-installation-configuration/embed/#?secret=lOjUIq4Rxo#?secret=biAG5yEnnJ" data-secret="biAG5yEnnJ" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
Code language: HTML, XML (xml)