Add check for illegal Widnows names

Fixes #589
This commit is contained in:
Eric L Frederich 2021-04-22 08:51:03 -04:00 committed by Anthony Sottile
parent b73acb198e
commit 865409743e
3 changed files with 54 additions and 0 deletions

View file

@ -40,6 +40,11 @@
language: python
types: [text, executable]
stages: [commit, push, manual]
- id: check-illegal-windows-names
name: check illegal windows names
entry: Illegal windows filenames detected
language: fail
files: '(?i)(^|/)(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])(\.|/|$)'
- id: check-json
name: check json
description: checks json files for parseable syntax.