0

Using SonarQube's Quality Gates, is there a possibility to count the number of TODO comments in the code so that I can make the Jenkins build fail when there are too many TODOs?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Sandra
  • 3,560
  • 5
  • 24
  • 31

1 Answers1

2

You should activate the rule S1135 ("TODO tags should be handled") of the Java plugin: http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1135. It will raise issues on every occurrence of TODO comments.

Simon Brandhof
  • 5,137
  • 1
  • 21
  • 28