How can you ensure the quality of your
code continuously?
- Your bug rate
- compliance of coding rules
- complexity
- duplications
- comments
- coupling and cohesion level
- code coverage
- automated acceptance test
- performance &stress test
Using
continuous inspection tools like Sonar you run pre-defined rules and if not
enough for you, plus your custom rules against your source files. Then it
collects violations of the rules, quality metrics and then lists them on the dashboard
historically. Measuring these while time goes on you actually measure your team’s
experience as well. These results also give you a chance to focus on
the risky components and may suggest some action plans to solve them.
Some
rules’ priority should be higher than others for your project. You can change
rules threshold as blocker, critical, major, minor, info etc whenever you want.
Here
is a screen shot from my test project:
Figure-1
Here you can assign a violation to someone via the assing button, or you can ignore it by marking False-positive, or you can take action by selecting a plan you've defined. If you use Jira issue tracking system then you can make it viewable to jira by using a sonar jira plugin as well. One of the most important thing, you can make rules active or inactive anytime you want and you can also change severity of them.
Figure-2


