Uploaded image for project: 'Maven Checkstyle Plugin'
  1. Maven Checkstyle Plugin
  2. MCHECKSTYLE-341

Introduce an expectedViolation flag

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.17
    • None
    • checkstyle:check
    • None

    Description

      We are trying to fix our tech debt step by step using the maxAllowedViolation flag and reducing the number slowly.
      We have 400+ maven module in our project and developer never update this flag, So basically when someone is fixing checkstyle error without updating the flag, it leaves room for another developer to introduce new errors...

      I would like an expectedViolation flag just to force people who are fixing issues to also update the count... It could be called "expectedViolation". The difference with the maxAllowedViolation flag is that this one would also fail when the number of actual violation is less than the "expectedViolation" flag.

      I believe the maxAllowedViolation should have been an expectedViolation from the start. I don't believe anyone wants to leave room for violation, you just want, for an existing project, to explicitly specify the current number of violation and disallow through pull request the number to go up.

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              tibodelor Tibo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: