Skip to content

Commit fbbe039

Browse files
authored
Update yamllint (#916)
* Include upstream yamllint config. * Fix linting consistency issues. Signed-off-by: SuperQ <[email protected]>
1 parent 6b655cd commit fbbe039

File tree

3 files changed

+38
-10
lines changed

3 files changed

+38
-10
lines changed

.yamllint

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
braces:
6+
max-spaces-inside: 1
7+
level: error
8+
brackets:
9+
max-spaces-inside: 1
10+
level: error
11+
commas: disable
12+
comments: disable
13+
comments-indentation: disable
14+
document-start: disable
15+
indentation:
16+
spaces: consistent
17+
indent-sequences: consistent
18+
key-duplicates:
19+
ignore: |
20+
config/testdata/section_key_dup.bad.yml
21+
line-length: disable
22+
truthy:
23+
ignore: |
24+
.github/workflows/codeql-analysis.yml
25+
.github/workflows/funcbench.yml
26+
.github/workflows/fuzzing.yml
27+
.github/workflows/prombench.yml
28+
.github/workflows/golangci-lint.yml

config/testdata/blackbox-good.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ modules:
7575
headers:
7676
Origin: example.com
7777
fail_if_header_not_matches:
78-
- header: Access-Control-Allow-Origin
79-
regexp: '(\*|example\.com)'
80-
allow_missing: false
78+
- header: Access-Control-Allow-Origin
79+
regexp: '(\*|example\.com)'
80+
allow_missing: false

example.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,22 +120,22 @@ modules:
120120
query_name: "www.prometheus.io"
121121
query_type: "A"
122122
valid_rcodes:
123-
- NOERROR
123+
- NOERROR
124124
validate_answer_rrs:
125125
fail_if_matches_regexp:
126-
- ".*127.0.0.1"
126+
- ".*127.0.0.1"
127127
fail_if_all_match_regexp:
128-
- ".*127.0.0.1"
128+
- ".*127.0.0.1"
129129
fail_if_not_matches_regexp:
130-
- "www.prometheus.io.\t300\tIN\tA\t127.0.0.1"
130+
- "www.prometheus.io.\t300\tIN\tA\t127.0.0.1"
131131
fail_if_none_matches_regexp:
132-
- "127.0.0.1"
132+
- "127.0.0.1"
133133
validate_authority_rrs:
134134
fail_if_matches_regexp:
135-
- ".*127.0.0.1"
135+
- ".*127.0.0.1"
136136
validate_additional_rrs:
137137
fail_if_matches_regexp:
138-
- ".*127.0.0.1"
138+
- ".*127.0.0.1"
139139
dns_soa:
140140
prober: dns
141141
dns:

0 commit comments

Comments
 (0)