-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Man, sorry but i kown that i'm stupid.
First, i don't know how diference between header and subject, my commit need to be:
Adiciona pacotes para padronização dos commits
Adiciona os pacotes Husky e Commitlint para automatizar a validação de
commits. Configura hooks de pré-commit e commit-msg para garantir que
todas as mensagens sigam o padrão definido, melhorando a consistência
e a legibilidade do histórico do projeto.
The first line, is header or subject?
Second, i try apply this rule, same rule is applied in a javascript project and works normally.
include: "package:commitlint_cli/commitlint.yaml"
rules:
header-max-length:
- 2
- "always"
- 50
header-min-length:
- 2
- "always"
- 10
header-case:
- 2
- "always"
- "sentence-case"
header-full-stop:
- 2
- "never"
- "."
type-empty:
- 0
- "always"
subject-empty:
- 0
- "always"
body-leading-blank:
- 2
- "always"
body-max-line-length:
- 2
- "always"
- 72
footer-leading-blank:
- 2
- "always"
when i run, throw this errors:
✖ header case must be sentence-case header-case
✖ body must begin with blank line body-leading-blank
Metadata
Metadata
Assignees
Labels
No labels