Skip to content

Commit

Permalink
Merge pull request riscv#21 from kbroch-rivosinc/dev/kbroch/disallow-…
Browse files Browse the repository at this point in the history
…other-asciidoc-file-extensions

disallow other file extensions for asciidoc other than .adoc
  • Loading branch information
wmat authored Jan 19, 2024
2 parents a1198d0 + d307ec0 commit b37d0a3
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-json
- id: check-symlinks
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-json
- id: check-symlinks
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]

- repo: local
hooks:
- id: forbidden-file-extensions
name: forbidden-file-extensions
entry: disallow these file extensions
language: fail
# Disallow other asciidoc extensions except .adoc
files: .*\.(asciidoc|asc)$

0 comments on commit b37d0a3

Please sign in to comment.