Skip to content

Commit a0f7a3c

Browse files
committed
ci(commitlint): fix config
1 parent 44365f8 commit a0f7a3c

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/super-linter.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565
VALIDATE_ALL_CODEBASE: true
6666
LINTER_RULES_PATH: .
6767
DEFAULT_BRANCH: main
68-
ENFORCE_COMMITLINT_CONFIGURATION_CHECK: true
69-
ENABLE_COMMITLINT_STRICT_MODE: true
7068
FILTER_REGEX_EXCLUDE: "(gradlew|gradlew\\.bat|gradle/.*|mvnw|mvnw\\.cmd|\\.m2/.*|\\.mvn/.*)$"
69+
ENFORCE_COMMITLINT_CONFIGURATION_CHECK: true
7170
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

commitlint.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ const Configuration = {
88
* Any rules defined here will override rules from parent.
99
*/
1010
rules: {
11-
"header-max-length": [1, "always", 100],
12-
"body-max-line-length": [1, "always", 100],
13-
"footer-max-length": [1, "always", 100],
11+
"body-leading-blank": [2, "always"], // warning -> error
12+
"body-max-line-length": [1, "always", 100], // error -> warning
13+
"footer-leading-blank": [2, "always"], // warning -> error
14+
"footer-max-length": [1, "always", 100], // error -> warning
15+
"header-max-length": [1, "always", 100], // error -> warning
1416
},
1517
};
1618

0 commit comments

Comments
 (0)