Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As with the seven deadly spiritual sins, you can find someone who will argue that each of the coding sins is the worst of the seven. We won't argue that any of the sins is the worst, but we do believe Bugs and Potential Bugs is the most urgent. That's because this sin represents things that are going wrong in your code today or that may go wrong tomorrow. An unconditional null pointer dereference is a prime example of a bug (hopefully the urgency is self-evident). Potential bugs are a bit more subtle, but no less important. 

Instances of this sin are tracked with the issues mechanism. Typically bugs and potential bugs will show up as Blocker or Critical issues, although that's fully configurableCoding Standards Breaches are also tracked as issues, although typically at lower severities. Instances of the other sins can optionally also be tracked using the issues mechanism (which offers some distinct advantages).

 

To monitor potential bugs, add the Issues and Technical Debt widget to your project dashboard if it's not there already:

Image RemovedImage Added

Use the differential views to monitor added new issues.

 

You can activate coding rules to detect potential bugs set your coding standards (active coding rules, severity, etc.) through the Quality Profiles administration page.

It is recommended to set the severity of potential bugs to Blocker or Critical.