NateEag/diff-check
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
About ===== This git pre-commit hook blocks commits that contain style errors. It only complains about errors added by the diff - if someone else committed crap code in the past, it does not penalize you for leaving it alone. This attribute makes it useful for enforcing a style guideline on ugly legacy code that did not previously have one (which is why it was written). It is language- and style-agnostic. Its config file requires a command to run the style check, so you can use whatever style checker and configuration is best for your project. This is still under development, and the interface may change, so it is not yet documented. Read The Source if you would use it. I'd like to adapt it to verify diffs and support multiple ways to generate them, so that it isn't useful only as a git pre-commit hook. Baby steps.
About
A git pre-commit hook for style-checking the diff.
Resources
Stars
Watchers
Forks
Packages 0
No packages published