74
74
cmds :
75
75
- |
76
76
if ! which ec &>/dev/null; then
77
- echo "ec not found or not in PATH. Please install: https://github.com/editorconfig-checker/editorconfig-checker#installation"
77
+ echo "ec not found or not in PATH."
78
+ echo "Please install: https://github.com/editorconfig-checker/editorconfig-checker#installation"
78
79
exit 1
79
80
fi
80
81
- ec
@@ -85,7 +86,11 @@ tasks:
85
86
deps :
86
87
- task : npm:install-deps
87
88
cmds :
88
- - npx prettier --write .
89
+ - |
90
+ npx \
91
+ prettier \
92
+ --write \
93
+ .
89
94
90
95
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
91
96
general:cache-dep-licenses :
@@ -97,7 +102,8 @@ tasks:
97
102
echo "Licensed does not have Windows support."
98
103
echo "Please use Linux/macOS or download the dependencies cache from the GitHub Actions workflow artifact."
99
104
else
100
- echo "licensed not found or not in PATH. Please install: https://github.com/github/licensed#as-an-executable"
105
+ echo "licensed not found or not in PATH."
106
+ echo "Please install: https://github.com/github/licensed#as-an-executable"
101
107
fi
102
108
exit 1
103
109
fi
@@ -117,15 +123,20 @@ tasks:
117
123
deps :
118
124
- task : poetry:install-deps
119
125
cmds :
120
- - poetry run codespell
126
+ - |
127
+ poetry run \
128
+ codespell
121
129
122
130
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check-task/Taskfile.yml
123
131
general:correct-spelling :
124
132
desc : Correct commonly misspelled words where possible
125
133
deps :
126
134
- task : poetry:install-deps
127
135
cmds :
128
- - poetry run codespell --write-changes
136
+ - |
137
+ poetry run \
138
+ codespell \
139
+ --write-changes
129
140
130
141
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
131
142
go:fix :
@@ -227,15 +238,22 @@ tasks:
227
238
deps :
228
239
- task : npm:install-deps
229
240
cmds :
230
- - npx markdownlint-cli --fix "**/*.md"
241
+ - |
242
+ npx \
243
+ markdownlint-cli \
244
+ --fix \
245
+ "**/*.md"
231
246
232
247
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown-task/Taskfile.yml
233
248
markdown:lint :
234
249
desc : Check for problems in Markdown files
235
250
deps :
236
251
- task : npm:install-deps
237
252
cmds :
238
- - npx markdownlint-cli "**/*.md"
253
+ - |
254
+ npx \
255
+ markdownlint-cli \
256
+ "**/*.md"
239
257
240
258
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/npm-task/Taskfile.yml
241
259
npm:install-deps :
@@ -376,4 +394,9 @@ tasks:
376
394
deps :
377
395
- task : poetry:install-deps
378
396
cmds :
379
- - poetry run yamllint --format {{default "colored" .YAMLLINT_FORMAT}} .
397
+ - |
398
+ poetry run \
399
+ yamllint \
400
+ --format \
401
+ {{default "colored" .YAMLLINT_FORMAT}} \
402
+ .
0 commit comments