This document summarizes Sonar, an open source platform for managing code quality. Sonar aggregates various tools to analyze code quality metrics like static analysis, duplicate code detection, and code coverage. It provides a web-based portal with visualizations of code quality statistics, violations, and technical debt over time. The document encourages trying out Sonar to improve code quality and discusses prioritizing areas to start like increasing test coverage or removing duplicate code.
Managing violations
• Foreach violation you can
– Comment
– Change its severity
– Declare it as a false-positive
– Assign it to someone
– Assign it to an action plan
Technical debt
• Termcoined by Ward Cunningham in 1992
• Work that needs done before a job is complete
• Unwritten tests
• Bad design and architecture
• Duplicated code
• …
• The higher you wait to fix, the more expensive it
becomes
20.
SQALE
• Based onISO 9126 Quality Model
• Computes a Technical Debt, measured in days
21.
Code quality
“A well-writtenprogram is a program where
the cost of implementing a feature is
constant throughout the program's lifetime.”
22.
What now?
• Whatto start with?
– Improving test coverage?
– Removing duplicate code?
– Checking violations?
– …
• Where to start?
– Most critical projects?
– Most « buggy » projects?
– Voluntary teams?
– …
Try it and tell me!