Sonar Tool - JAVA code analysis

Preview:

Citation preview

Prashant Gupta

Introduction to Sonar

This Presentation is About

oCode Analysis, not Run-Time monitoring

oThis Presentation is NOT about Performance Analysis Tools

•Profiling

•Jconsole or other Dynamic Memory Monitoring

•Debugging Tools

Code Review Tools

Advantages of Code Review Tools

Aid in comparing before and after changes

Source Code repository integration.

FindBugs,PMD,CheckStyle,Jdepend,Javancss..etc

SONAR

o A platform to manage code quality

o Free, open source, web-based portal

o Backed by

o Aggregates well-known tools

•Static analysis (PMD, findbugs, Checkstyle)

•Duplicate code (Squid, CPD)

•Code coverage (Cobertura, JaCoCo)

Why?

Code quality analysis helps you to make your code:

less error-prone

more reliable

more readable

more welcoming to new contributors

SONAR Portal

SONAR– Basic statistics

SONAR Example –

Front Dashboard

SONAR Application

Dashboard

SONAR Violations

Drilldown

SONAR Hotspots

SONAR Drilldown

continue ...

Recommended