Class LabelConfigValidator

  • All Implemented Interfaces:
    CommitValidationListener

    public class LabelConfigValidator
    extends Object
    implements CommitValidationListener
    Validates modifications to label configurations in the project.config file that is stored in refs/meta/config.

    Rejects setting/changing deprecated fields that are no longer supported (fields copyAnyScore, copyMinScore, copyMaxScore, copyAllScoresIfNoChange, copyAllScoresIfNoCodeChange, copyAllScoresOnMergeFirstParentUpdate, copyAllScoresOnTrivialRebase, copyAllScoresIfListOfFilesDidNotChange, copyValue).

    Updates that unset the deprecated fields or that don't touch them are allowed.