Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vale pre-commit hook #758

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

guillaume-d
Copy link

@guillaume-d guillaume-d commented Jun 18, 2021

Vale can check both spelling and style in (hyper)text as well as in source files.

This depends on #757 which should be merged first! I will rebase this (or merge from master?) after that.

Alas this ad-hoc implementation does not readily support differentiating between warnings and errors. Well, it could, but a project-independent way to reference a file (in this case a Go template) from .overcommit.yml would be needed, see errata-ai/vale#350.

Limited support is probably still better than nothing! 😉 Also the template for warnings is now out here (see above link), so it could at least be linked to as part of this hook configuration/documentation.

The documentation is indeed just a placeholder for now. Documentation for non-ad-hoc points to their implementation, so what should be done for ad-hoc ones?

Maybe having some manual installation instructions for ad-hoc hooks would be fine too? It is clearly not ideal for users, but after all the individual tools' installations is (also for simplicity reasons) not done automatically either.

@guillaume-d guillaume-d marked this pull request as draft June 18, 2021 07:36
@guillaume-d guillaume-d force-pushed the guillaume-d/bug/750-add-Vale-pre-commit-hook branch from 7565ef2 to c9b308a Compare October 11, 2021 18:45
@guillaume-d
Copy link
Author

This depends on #757 which should be merged first! I will rebase this (or merge from master?) after that.

Rebased to adapt to latest configuration format changes.

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

Successfully merging this pull request may close these issues.

1 participant