-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
59 lines (53 loc) · 1.49 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
exclude: (^android/|^build/|^coverage/|^ios/|^linux/|^macos/|^web/|^windows/)
fail_fast: true
default_install_hook_types:
- pre-commit
- commit-msg
default_stages:
- pre-commit
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.5.0"
hooks:
- id: check-added-large-files
args: ['--maxkb=1024']
- id: check-case-conflict
- id: pretty-format-json
args: ["--autofix", "--indent=4", "--no-sort-keys"]
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-xml
- id: destroyed-symlinks
- id: detect-private-key
- id: trailing-whitespace
- id: double-quote-string-fixer
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.30.0
hooks:
- id: commitizen
- repo: local
hooks:
- id: dart format
name: dart format
language: system
entry: dart format --set-exit-if-changed
files: \.dart$
- id: flutter analyze
name: flutter analyze
language: system
entry: flutter analyze --fatal-infos --fatal-warnings
files: \.dart$
- id: flutter test
name: flutter test
language: system
entry: flutter test --coverage
pass_filenames: false
- id: test coverage
name: test coverage
language: system
entry: dart run test_cov_console -l
pass_filenames: false
verbose: true