Sonar is a web based code quality analysis tool for Maven based Java projects. It covers a wide area of code quality check points which include: Architecture & Design, Complexity, Duplication, Coding Rules, Potential Bugs, Unit Test etc.
Make sure java is inatlled.
If not install uisng following command.
sudo apt-get install default-jre
1. Download and unzip the SonarQube distribution (let's say in "/etc/sonarqube")
2. Start the SonarQube server:
/etc/sonarqube/bin/[OS]/sonar.sh console
3. Download and unzip the SonarQube Scanner (let's say in "/etc/sonar-scanner")
4. Analyze a project:
Go to projects root directory and run follwing command.
/etc/sonar-scanner/bin/sonar-scanner -Dsonar.projectKey=DSP -Dsonar.sources=. -Dsonar.scm.disabled=true
6. Browse the results at http://localhost:9000 (default System administrator credentials are admin/admin)
Make sure java is inatlled.
If not install uisng following command.
sudo apt-get install default-jre
1. Download and unzip the SonarQube distribution (let's say in "/etc/sonarqube")
2. Start the SonarQube server:
/etc/sonarqube/bin/[OS]/sonar.sh console
3. Download and unzip the SonarQube Scanner (let's say in "/etc/sonar-scanner")
4. Analyze a project:
Go to projects root directory and run follwing command.
/etc/sonar-scanner/bin/sonar-scanner -Dsonar.projectKey=DSP -Dsonar.sources=. -Dsonar.scm.disabled=true
6. Browse the results at http://localhost:9000 (default System administrator credentials are admin/admin)
Static code checker is very helpful in finding the error and testing completion. the blog consists of precise yet useful information.
ReplyDeletestatic code checker
Thank you Sophia
Delete
ReplyDeleteThanks for sharing this information with us and it was a nice blog.
DevOps Training
DevOps Online Training
ReplyDeleteThese articles are exactly what I need. It is very nice of you to share your understanding. I have learned interesting things on clod development. I have a liking for your posts. Please, upload more and more posts.
DevOps Training in Chennai
DevOps Online Training in Chennai
DevOps Training in Bangalore
DevOps Training in Hyderabad
DevOps Training in Coimbatore
DevOps Training
DevOps Online Training
This idea is mind blowing. I think everyone should know such information like you have described on this post. Thank you for sharing this explanation. Thank you for sharing wonderful information with us to get some idea about it.
ReplyDeleteoracle training in chennai
oracle training institute in chennai
oracle training in bangalore
oracle training in hyderabad
oracle training
oracle online training
hadoop training in chennai
hadoop training in bangalore