mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Only ignoring these in the pre-commit check is not enough as that only affects CI. Instead, by adding these directories to the `.prettierignore` file, they are also ignored when prettier is invoked to format files.
57 lines
1.8 KiB
YAML
57 lines
1.8 KiB
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: codespell
|
|
name: "python: codespell"
|
|
args: [--config=.github/codespellrc]
|
|
entry: codespell
|
|
language: system
|
|
pass_filenames: false
|
|
- id: prettier
|
|
name: Prettier
|
|
entry: prettier --check --ignore-unknown .
|
|
language: system
|
|
pass_filenames: false
|
|
|
|
# Standard pre-commit hooks
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
hooks:
|
|
- id: mixed-line-ending
|
|
args: ["--fix=lf"]
|
|
description: Forces to replace line ending by the UNIX 'lf' character.
|
|
exclude: "(^website/public/images/|^kotlin/android/gradlew.bat|^rust/windows-client/wintun/|^elixir/apps/web/priv/static/)"
|
|
- id: check-yaml
|
|
- id: check-merge-conflict
|
|
- id: end-of-file-fixer
|
|
exclude: (^website/public/images/|^elixir/apps/web/priv/static/|^swift/apple/FirezoneNetworkExtension/Connlib/Generated/)
|
|
- id: trailing-whitespace
|
|
exclude: (^website/public/images/|^swift/apple/FirezoneNetworkExtension/Connlib/Generated/)
|
|
- id: check-merge-conflict
|
|
- id: no-commit-to-branch
|
|
args:
|
|
- -b
|
|
- master
|
|
- --pattern
|
|
- '^(?!((chore|feat|feature|bug|fix|build|ci|docs|style|refactor|perf|test|revert)\/[@a-zA-Z0-9\-\.\/]+)$).*'
|
|
|
|
# Third party pre-commit hooks
|
|
- repo: https://github.com/koalaman/shellcheck-precommit
|
|
rev: v0.10.0
|
|
hooks:
|
|
- id: shellcheck
|
|
args: ["--severity=warning"]
|
|
exclude: ^.*/gradlew$
|
|
- repo: https://github.com/pecigonzalo/pre-commit-shfmt
|
|
rev: v2.2.0
|
|
hooks:
|
|
- id: shell-fmt
|
|
args:
|
|
- -i
|
|
- "4"
|
|
- repo: https://github.com/DevinR528/cargo-sort
|
|
rev: v2.0.1
|
|
hooks:
|
|
- id: cargo-sort
|
|
args: ["--check", "--workspace", "rust/"]
|