forked from firezone/firezone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
64 lines (63 loc) · 1.91 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
repos:
- repo: local
hooks:
# Elixir config
- id: mix-compile
name: 'elixir: mix compile'
entry: mix compile --force --warnings-as-errors
language: system
pass_filenames: false
files: \.ex$
- id: mix-format
name: 'elixir: mix format'
entry: mix format --check-formatted
language: system
- id: mix-lint
name: 'elixir: mix credo'
entry: mix credo --strict
language: system
pass_filenames: false
files: \.exs*$
- id: mix-analysis
name: 'elixir: mix dialyzer'
entry: mix dialyzer --format dialyxir
language: system
pass_filenames: false
files: \.exs*$
- id: codespell
name: 'python: codespell'
entry: codespell
language: system
pass_filenames: false
- id: rubocop
name: 'ruby: rubocop'
entry: bundle exec rubocop
language: system
pass_filenames: false
files: \.rb$
- id: markdownlint
name: 'nodejs: markdownlint'
entry: ./docs/node_modules/markdownlint-cli/markdownlint.js
language: system
pass_filenames: true
files: docs/.*\.md$
# Standard pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: mixed-line-ending
args: ['--fix=lf']
description: Forces to replace line ending by the UNIX 'lf' character.
- id: check-yaml
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: "^omnibus/config/patches/"
- id: trailing-whitespace
exclude: "^omnibus/config/patches/"
- id: check-merge-conflict
- id: no-commit-to-branch
args:
- -b
- master
- --pattern
- '^(?!((website|chore|feat|feature|bug|fix|build|ci|docs|style|refactor|perf|test|revert)\/[@a-zA-Z0-9\-\.\/]+)$).*'