[ refactor ] patternViolations don't need to store the state
Merge remote-tracking branch 'origin/maint-2.4.2'