Class DefaultSubmitRule

java.lang.Object
com.google.gerrit.server.rules.DefaultSubmitRule
All Implemented Interfaces:
SubmitRule

public final class DefaultSubmitRule extends Object implements SubmitRule
Java implementation of Gerrit's default pre-submit rules behavior: check if the labels have the correct values, according to the LabelFunction they are attached to.

As this behavior is also implemented by the Prolog rules system, we skip it if at least one project in the hierarchy has a rules.pl file.