-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-hooks.yaml
43 lines (38 loc) · 1 KB
/
.pre-commit-hooks.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
- id: dart-format
name: Dart source code format
entry: dart format
language: system
args: ["--output=none", "--set-exit-if-changed"]
types: [dart]
- id: dart-analyze
name: Analyze Dart code
entry: dart analyze
language: system
args: ["--fatal-infos", "--fatal-warnings"]
files: (\.dart|pubspec\.yaml)$
- id: dart-fix
name: Apply automated fixes to Dart source code
entry: dart fix
language: system
args: ["--apply"]
types: [dart]
pass_filenames: false
- id: fvm-dart-format
name: Dart source code format with FVM
entry: fvm dart format
language: system
args: ["--output=none", "--set-exit-if-changed"]
types: [dart]
- id: fvm-dart-analyze
name: Analyze Dart code with FVM
entry: fvm dart analyze
language: system
args: ["--fatal-infos", "--fatal-warnings"]
files: (\.dart|pubspec\.yaml)$
- id: fvm-dart-fix
name: Apply automated fixes to Dart source code with FVM
entry: fvm dart fix
language: system
args: ["--apply"]
types: [dart]
pass_filenames: false