-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.yamllint
More file actions
87 lines (70 loc) · 2 KB
/
Copy path.yamllint
File metadata and controls
87 lines (70 loc) · 2 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
# YAML Linting Configuration for Tour Operator Plugin
# Validates GitHub Actions workflows and other YAML files
extends: default
rules:
# Line Length - Allow longer lines for readability
line-length:
max: 120
level: warning
# Indentation - Standard 2 spaces
indentation:
spaces: 2
indent-sequences: true
# Comments - Require space after # but be lenient
comments:
min-spaces-from-content: 2
require-starting-space: true
ignore-shebangs: true
# Document Start - Optional for GitHub Actions
document-start:
present: false
# Truthy values - Allow yes/no/on/off (common in GitHub Actions)
truthy:
allowed-values: ['true', 'false', 'yes', 'no', 'on', 'off']
check-keys: false
# New lines - Be lenient with trailing newlines
new-line-at-end-of-file: enable
new-lines:
type: unix
# Empty values - Allow for GitHub Actions syntax
empty-values:
forbid-in-block-mappings: false
forbid-in-flow-mappings: true
# Brackets and braces - Standard formatting
brackets:
min-spaces-inside: 0
max-spaces-inside: 0
braces:
min-spaces-inside: 0
max-spaces-inside: 1
# Colons - Standard spacing
colons:
max-spaces-before: 0
max-spaces-after: 1
# Commas - Standard spacing
commas:
max-spaces-before: 0
min-spaces-after: 1
max-spaces-after: 1
# Hyphens - Consistent list formatting
hyphens:
max-spaces-after: 1
# Key duplicates - Never allow
key-duplicates: enable
# Octal values - Forbid implicit octal
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: false
# Quoted strings - Be flexible (GitHub Actions uses various quoting styles)
quoted-strings:
quote-type: any
required: false
# Files to ignore
ignore: |
node_modules/
vendor/
build/
.git/
.github/ISSUE_TEMPLATE/
languages/