Skip to content

Commit 557b3f4

Browse files
committed
Enable warnings, but disable all failing rules.
1 parent a82ba38 commit 557b3f4

File tree

2 files changed

+47
-40
lines changed

2 files changed

+47
-40
lines changed

.yamllint

Lines changed: 46 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,64 @@
22
extends: default
33

44
rules:
5-
line-length:
6-
max: 160
7-
level: warning
8-
document-start:
9-
# present: true
10-
level: warning
11-
document-end:
12-
# present: false
13-
level: warning
5+
line-length: disable
6+
# max: 160
7+
# level: warning
8+
document-start: disable
9+
document-end: disable
1410
truthy:
1511
level: warning
1612
allowed-values:
1713
- 'true'
1814
- 'false'
19-
indentation:
20-
level: warning
21-
spaces: 2
22-
indent-sequences: consistent
23-
key-duplicates:
24-
level: warning
25-
forbid-duplicated-merge-keys: true
15+
- 'True'
16+
- 'False'
17+
- 'TRUE'
18+
- 'FALSE'
19+
- 'yes'
20+
- 'no'
21+
- 'Yes'
22+
- 'No'
23+
- 'YES'
24+
- 'NO'
25+
indentation: disable
26+
# level: warning
27+
# spaces: 2
28+
# indent-sequences: consistent
29+
key-duplicates: disable
30+
# level: warning
31+
# forbid-duplicated-merge-keys: true
2632
trailing-spaces: enable
27-
hyphens:
28-
max-spaces-after: 1
29-
level: warning
33+
hyphens: disable
34+
# max-spaces-after: 1
35+
# level: warning
3036
empty-lines:
3137
max: 2
3238
max-start: 0
3339
max-end: 0
3440
level: warning
35-
commas:
36-
max-spaces-before: 0
37-
min-spaces-after: 1
38-
max-spaces-after: 1
39-
level: warning
40-
colons:
41-
max-spaces-before: 0
42-
max-spaces-after: 1
43-
level: warning
44-
brackets:
45-
min-spaces-inside: 0
46-
max-spaces-inside: 0
47-
level: warning
41+
commas: disable
42+
# max-spaces-before: 0
43+
# min-spaces-after: 1
44+
# max-spaces-after: 1
45+
# level: warning
46+
colons: disable
47+
# max-spaces-before: 0
48+
# max-spaces-after: 1
49+
# level: warning
50+
brackets: disable
51+
# min-spaces-inside: 0
52+
# max-spaces-inside: 0
53+
# level: warning
4854
braces:
4955
min-spaces-inside: 0
5056
max-spaces-inside: 1
5157
level: warning
52-
octal-values:
53-
forbid-implicit-octal: true
54-
forbid-explicit-octal: true
55-
level: warning
56-
comments:
57-
min-spaces-from-content: 1
58-
level: warning
58+
octal-values: disable
59+
# forbid-implicit-octal: true
60+
# forbid-explicit-octal: true
61+
# level: warning
62+
comments: disable
63+
# min-spaces-from-content: 1
64+
# level: warning
65+
comments-indentation: disable

tests/checkers/rst-yamllint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from yamllint.linter import PROBLEM_LEVELS
2020

2121
REPORT_LEVELS: set[PROBLEM_LEVELS] = {
22-
# 'warning', # TODO: enable later
22+
"warning",
2323
"error",
2424
}
2525

0 commit comments

Comments
 (0)