Skip to content

Commit

Permalink
fix: add CWE to the whitelist for rule C019
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinDeJong-TomTom committed Jan 30, 2023
1 parent f96f5dc commit f05a51b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/bump/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cli/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/validate/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ class SubjectContainsIssueReference implements IConventionalCommitRule {
"The commit message's subject should not contain a ticket reference";

validate(message: ConventionalCommitMetadata, _: Configuration): void {
const ALLOWED = ["AES", "CVE", "PEP", "SHA", "UTF", "VT"];
const ALLOWED = ["AES", "CVE", "CWE", "PEP", "SHA", "UTF", "VT"];
const ISSUE_REGEX = new RegExp(
`(?!\\b(?:${ALLOWED.join("|")})\\b)\\b[A-Z]+-[0-9]+\\b(?!-)`
);
Expand Down

0 comments on commit f05a51b

Please sign in to comment.