-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.yaml
63 lines (60 loc) · 1.92 KB
/
default.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
profiles:
default:
path-format: '.+'
rules:
lines: &lines
path-format: '.+'
modifiers: [ ]
filters:
- kind: any
blank: &blank
path-format: '.+'
modifiers: &m-trim-spaces
- kind: trim-spaces
filters:
- kind: blank
go:
path-format: '.+\.go$'
rules: &r-go
lines: *lines
blank: *blank
comments:
path-format: '.+'
modifiers: *m-trim-spaces
filters:
- &f-comment
kind: union
filter-a: &f-multiline-comment
kind: multiline
start-filter:
kind: contains
line: '/*'
end-filter:
kind: contains
line: '*/'
filter-b: &f-one-line-comment
kind: regexp
pattern: '^//'
code:
path-format: '.+'
modifiers: *m-trim-spaces
filters:
- kind: not
filter:
kind: blank
- kind: not
filter: *f-comment
go-extended:
path-format: '.+\.go$'
rules:
<<: *r-go
one-line-comments:
path-format: '.+'
modifiers: *m-trim-spaces
filters:
- *f-one-line-comment
multiline-comments:
path-format: '.+'
modifiers: *m-trim-spaces
filters:
- *f-multiline-comment