JonasKs / disallow-file-endings

Pre-commit hook to help me stop naming files *.yml half of the time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disallow file endings

Pre-commit hook that lets you specify banned file endings.

I keep naming half my yaml files *.yaml and the other *.yml and it's causing me too much pain.

Could also be used for creating repository standards for other file types.

How to use it

Just add this to your .pre-commit-config.yaml (not .yml!)

- repo: https://github.com/sondrelg/disallow-file-endings
  rev: ''
  hooks:
    - id: disallow-file-extensions
      args:
        - --extensions=.yml

About

Pre-commit hook to help me stop naming files *.yml half of the time


Languages

Language:Rust 100.0%