Skip to content

Commit 9ccefad

Browse files
yamllint: Explicitly specify files to be linted to avoid expanding the ignored files. (y-scope#394)
1 parent 4fe4f0c commit 9ccefad

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.yamllint.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@ yaml-files:
66
- "*.yaml"
77
- "*.yml"
88

9-
ignore: |
10-
.lint-venv/
11-
build/
12-
components/core/build/
13-
components/core/cmake-build-debug/
14-
components/core/cmake-build-release/
15-
components/core/submodules/
16-
components/core/third-party/
17-
components/webui/node_modules/
18-
components/webui/linter/node_modules/
19-
209
rules:
2110
anchors:
2211
forbid-duplicated-anchors: true

lint-tasks.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,15 @@ tasks:
9898
cmds:
9999
- |-
100100
. "{{.G_LINT_VENV_DIR}}/bin/activate"
101-
yamllint --strict .
101+
yamllint --strict \
102+
.github \
103+
.yamllint.yml \
104+
components/core/.clang-format \
105+
components/core/config \
106+
components/package-template/src/etc \
107+
docs \
108+
lint-tasks.yml \
109+
Taskfile.yml
102110
103111
cpp:
104112
internal: true

0 commit comments

Comments
 (0)