-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.yamllint.yml
More file actions
54 lines (44 loc) · 1.38 KB
/
.yamllint.yml
File metadata and controls
54 lines (44 loc) · 1.38 KB
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
# YAMLlint configuration optimized for GitHub Actions workflows
extends: relaxed
rules:
# Line length - GitHub Actions can have long lines for action references
line-length:
max: 150 # More reasonable for GitHub Actions with long action names
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
# Document start - not required for GitHub Actions
document-start: disable
# Document end - not required for GitHub Actions
document-end: disable
# Trailing spaces - should be errors
trailing-spaces: enable
# Comments - be more lenient
comments:
min-spaces-from-content: 1
require-starting-space: false
# Indentation - GitHub Actions standard
indentation:
spaces: 2
indent-sequences: true
check-multi-line-strings: false
# Brackets - more lenient for GitHub Actions matrices
brackets:
min-spaces-inside: 0
max-spaces-inside: 1
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0
# Braces - more lenient for expressions
braces:
min-spaces-inside: 0
max-spaces-inside: 1
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0
# Empty lines - reasonable for readability
empty-lines:
max: 2
max-start: 0
max-end: 1
# Truthy values - GitHub Actions uses many boolean-like strings
truthy:
allowed-values: ['true', 'false', 'on', 'off', 'yes', 'no']
check-keys: false