Skip to content

Commit bd0113e

Browse files
committed
[STYLE] add yml linter option
1 parent 07e8617 commit bd0113e

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# ignore this just for now - when Pypi package release feature added at Github, this workflow will be used.
12
name: release package to github
23
on:
34
pull_request:

.vscode/settings.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"yaml.schemas": {
3+
"https://json.schemastore.org/github-workflow.json": [
4+
".github/workflows/*.yml",
5+
".github/workflows/*.yaml"
6+
],
7+
"https://json.schemastore.org/dependabot-2.0.json": [
8+
".github/dependabot.yml",
9+
".github/dependabot.yaml"
10+
]
11+
},
12+
"yaml.customTags": [
13+
"!And",
14+
"!Base64",
15+
"!Cidr",
16+
"!Equals",
17+
"!FindInMap",
18+
"!GetAtt",
19+
"!GetAZs",
20+
"!If",
21+
"!ImportValue",
22+
"!Join",
23+
"!Not",
24+
"!Or",
25+
"!Ref",
26+
"!Select",
27+
"!Split",
28+
"!Sub",
29+
"!Transform"
30+
],
31+
"[yaml]": {
32+
"editor.insertSpaces": true,
33+
"editor.tabSize": 2,
34+
"editor.autoIndent": "advanced"
35+
},
36+
"yaml.validate": true,
37+
"yaml.format.enable": true,
38+
"yaml.completion": true,
39+
"yaml.hover": true,
40+
"yaml.schemaStore.enable": false
41+
}

.yamllint

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
extends: default
2+
3+
rules:
4+
line-length:
5+
max: 120
6+
level: warning
7+
8+
truthy:
9+
allowed-values: ['true', 'false']
10+
check-keys: false
11+
12+
comments:
13+
min-spaces-from-content: 1
14+
15+
empty-values:
16+
forbid-in-block-mappings: false
17+
forbid-in-flow-mappings: false
18+
19+
ignore: |
20+
.github/dependabot.yml
21+
.github/release-drafter.yml

0 commit comments

Comments
 (0)