Created
December 5, 2023 19:06
-
-
Save nx10/62736f785f2748f030c4ed110fbd2f25 to your computer and use it in GitHub Desktop.
[pre-commit hook] Prefer YAML file extension .yaml over .yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - repo: local | |
| hooks: | |
| - id: yaml-file-extension | |
| name: Prefer .yaml over .yml. | |
| entry: YAML files must have .yaml extension. | |
| language: fail | |
| files: \.yml$ |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is all you need. Will just check if there are any files ending in
.ymland fail.References:
.yaml