0

I'd like to configure checkstyle to have 2 levels of validation for certain rules. For example, for the "Maximum Line Length" rule, I'd like to have a severity of warn if the line length exceeds 120 characters, but escalate to a severity of error if the line length exceeds 160 characters.

How can this be done?

Snekse
  • 15,474
  • 10
  • 62
  • 77

1 Answers1

1

Found the answer at the same time Sean commented. Just add a 2nd declaration. Forgot you could do that. In Eclipse, using eclipse-cs, you can just Add...-> a module several times and configure each of them separately.

Snekse
  • 15,474
  • 10
  • 62
  • 77