Skip to content

Commit

Permalink
[CALCITE-6801] Linter should disallow tags such as 'Chore' in commit …
Browse files Browse the repository at this point in the history
…messages
  • Loading branch information
caicancai committed Jan 30, 2025
1 parent a5c096a commit 0fb4430
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/test/java/org/apache/calcite/test/LintTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ private static void checkMessage(String subject, String body,
if (subject2.matches("[a-z].*")) {
consumer.accept("Message must start with upper-case letter");
}
if (subject2.matches("^Chore.*\\b")) {
consumer.accept("Message cannot start with the Chore keyword");
}

// Check for keywords that should be capitalized
for (Map.Entry<String, String> entry : TERMINOLOGY_MAP.entrySet()) {
Expand Down

0 comments on commit 0fb4430

Please sign in to comment.