R335 – ESQL code has been commented out. It should be removed before code checkin (with threshold) (WMB)

ESQL code has been commented out. It should be removed before code checkin (with threshold) (WMB)

This is very variant to rule R169 – ESQL code has been commented out. It should be removed before code checkin (WMB)
Where R169 is triggered for a single commented line, rule R335 allows for multiple occurances of commented out code before it is triggered.

The default is “5″, this can be configured using the property:
sonar.mb.esql.commented.out.lines.threshold=5

For example
Commented out ESQL code