in src/main/java/com/googlesource/gerrit/plugins/validators/CommitMessageLengthValidation.java [50:58]
public CommitMessageLengthValidation(@GerritServerConfig Config gerritConfig) {
this.config = gerritConfig;
this.maxSubjectLength = nonNegativeInt(MAX_SUBJECT_LENGTH_KEY, DEFAULT_MAX_SUBJECT_LENGTH);
this.maxLineLength = nonNegativeInt(MAX_LINE_LENGTH_KEY, DEFAULT_MAX_LINE_LENGTH);
this.rejectTooLong =
config.getBoolean(COMMIT_MESSAGE_SECTION, REJECT_TOO_LONG_KEY, DEFAULT_REJECT_TOO_LONG);
this.longLinesThreshold =
nonNegativeInt(LONG_LINES_THRESHOLD_KEY, DEFAULT_LONG_LINES_THRESHOLD);
}