forked from NVIDIA/aicr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.yamllint.yaml
More file actions
104 lines (89 loc) · 2.44 KB
/
.yamllint.yaml
File metadata and controls
104 lines (89 loc) · 2.44 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
yaml-files:
- '*.yaml'
- '*.yml'
ignore: |
# Build and vendor directories
vendor/
dist/
node_modules/
# Generated snapshot output files (machine-generated, not hand-written)
snapshot.yaml
# Examples (generated/reference files with varying styles)
examples/
# Helm templates (contain Go template syntax, not valid YAML)
recipes/components/*/manifests/
# KWOK templates (contain shell variable syntax, not valid YAML)
kwok/templates/
# Git directory
.git/
rules:
# Formatting
braces:
min-spaces-inside: 0
max-spaces-inside: 1
brackets:
min-spaces-inside: 0
max-spaces-inside: 0
colons:
max-spaces-before: 0
max-spaces-after: 1
commas:
max-spaces-before: 0
min-spaces-after: 1
max-spaces-after: 1
hyphens:
max-spaces-after: 1
# Indentation
indentation:
spaces: 2
indent-sequences: whatever # Allow flexible sequence indentation (GitHub Actions uses various styles)
check-multi-line-strings: false
# Line rules
line-length:
max: 200
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
new-line-at-end-of-file: disable # Many existing files lack trailing newline
new-lines:
type: unix
trailing-spaces: enable
# Comments
comments:
require-starting-space: true
ignore-shebangs: true
min-spaces-from-content: 1
comments-indentation: enable
# Document structure
document-start: disable
document-end: disable
# Values
empty-lines:
max: 2
max-start: 0
max-end: 0
empty-values:
forbid-in-block-mappings: true
forbid-in-flow-mappings: true
truthy: disable # GitHub issue templates use Yes/No as string values
# Keys
key-duplicates: enable
key-ordering: disable
# Other
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: false
quoted-strings: disable