Skip to content

[Question] Header sentence-case error #26

@steniooliv

Description

@steniooliv

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions