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?