You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commitlint's recommended rules include subject-case checking that the subject is not sentence-case, start-case, pascal-case, upper-case. However this rule is easy to bypass by adding a leading whitespace in the subject. From the user perspective it's almost impossible to see if there are one or two whitespaces:
feat: MY SUBJECT // two whitespaces between feat: and MY, bypassing subject-case
and it discards the benefits of the subject-case rule.
Please consider adding an extra rule that enforces that subject must not start with a whitespace.
The text was updated successfully, but these errors were encountered:
x87
changed the title
Enforcing a single whitespace before colon and commit subject
Enforcing a single whitespace between colon and commit subject
May 18, 2020
@escapedcat
I mean found the problem of consent. But I have now found a solution
The default parser of commitlint is that there must be a space after the type, and then the subject will be read
Hey there!
Commitlint's recommended rules include subject-case checking that the subject is not sentence-case, start-case, pascal-case, upper-case. However this rule is easy to bypass by adding a leading whitespace in the subject. From the user perspective it's almost impossible to see if there are one or two whitespaces:
feat: MY SUBJECT
// two whitespaces betweenfeat:
andMY
, bypassing subject-caseand it discards the benefits of the
subject-case
rule.Please consider adding an extra rule that enforces that subject must not start with a whitespace.
The text was updated successfully, but these errors were encountered: