Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

pre-commit hooks #127

Open
brucellino opened this issue Dec 8, 2022 · 0 comments
Open

pre-commit hooks #127

brucellino opened this issue Dec 8, 2022 · 0 comments

Comments

@brucellino
Copy link

I would like to propose a rule which checks for the existing of a pre-commit configuration file. The content of the file will vary from repo to repo, but the presence of such a file indicates that pre-commit hooks are managed in the repo.

Further extension of the rule could be that there must be a stage in the pipeline which executes these checks, in case the committer has not enabled them in their clone of the repo.

Similar to #105, this can also ensure that a commit message syntax is enforced via commitlint

The rule needs to, at a minimum, assert the presence and correctness of .pre-commit-config.y[a]ml

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant