Skip to content

Commit

Permalink
commitlint.config: fix rule config severity
Browse files Browse the repository at this point in the history
Using Error status for severity of body-leading-blank rule.
  • Loading branch information
tehraninasab committed Feb 7, 2023
1 parent c6b9f6f commit 2bd08fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let headerMaxLineLength = 50;
module.exports = {
parserPreset: "conventional-changelog-conventionalcommits",
rules: {
"body-leading-blank": [RuleConfigSeverity.Warning, "always"],
"body-leading-blank": [RuleConfigSeverity.Error, "always"],
"body-soft-max-line-length": [
RuleConfigSeverity.Error,
"always",
Expand Down Expand Up @@ -46,7 +46,6 @@ module.exports = {
// * Reject some stupid obvious words: change, update, modify (if first word after colon, error; otherwise warning).
// * Think of how to reject this shitty commit message: https://github.com/nblockchain/NOnion/pull/34/commits/9ffcb373a1147ed1c729e8aca4ffd30467255594
// * Title should not have dot at the end.
// * Second line of commit msg should always be blank.
// * Workflow: detect if wip commit in a branch not named "wip/*" or whose name contains "squashed".
// * Detect if commit hash mention in commit msg actually exists in repo.
// * Detect area(sub-area) in the title that doesn't include area part (e.g., writing (bar) instead of foo(bar))
Expand Down

0 comments on commit 2bd08fa

Please sign in to comment.