Skip to content

Commit f84e453

Browse files
committed
Sync ignore configurations of infrastructure components with "template"
The tools used for the development, maintenance, and project management of this repository must be configured to ignore irrelevant files. Standardized configurations intended to be applicable to any Arduino tooling project are maintained in a centralized collection of such "template" assets: https://github.com/arduino/tooling-project-assets Some development has occurred on the upstream configurations since the time the assets were established in this repository. This project's assets are hereby brought up to date with the latest upstream versions.
1 parent a04cede commit f84e453

7 files changed

+41
-6
lines changed

.codespellrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[codespell]
44
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
55
ignore-words-list = ,
6-
skip = ./.git,./go.mod,./go.sum,./package-lock.json,./poetry.lock,./yarn.lock
6+
skip = ./.git,./.licenses,__pycache__,node_modules,./go.mod,./go.sum,./package-lock.json,./poetry.lock,./yarn.lock
77
builtin = clear,informal,en-GB_to_en-US
88
check-filenames =
99
check-hidden =

.ecrc

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"Exclude": [
3+
"^\\.git[/\\\\]",
4+
"^\\.licenses[/\\\\]",
5+
"__pycache__[/\\\\]",
6+
"node_modules[/\\\\]",
37
"^LICENSE\\.txt$",
48
"^poetry\\.lock$"
59
]

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules/

.markdownlintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown/.markdownlintignore
2+
.licenses/
3+
__pycache__/
4+
node_modules/

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.licenses/
2+
__pycache__/
3+
node_modules/

.yamllint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,5 @@ yaml-files:
7272

7373
ignore: |
7474
/.git/
75+
__pycache__/
76+
node_modules/

Taskfile.yml

+26-5
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,14 @@ tasks:
8787
# Using -regex instead of -name to avoid Task's behavior of globbing even when quoted on Windows
8888
# The odd method for escaping . in the regex is required for windows compatibility because mvdan.cc/sh gives
8989
# \ characters special treatment on Windows in an attempt to support them as path separators.
90-
for file in $(find . -regex ".*[.]md"); do
90+
for file in $(
91+
find . \
92+
-type d -name '.git' -prune -o \
93+
-type d -name '.licenses' -prune -o \
94+
-type d -name '__pycache__' -prune -o \
95+
-type d -name 'node_modules' -prune -o \
96+
-regex ".*[.]md" -print
97+
); do
9198
markdown-link-check \
9299
--quiet \
93100
--config "./.markdown-link-check.json" \
@@ -98,7 +105,14 @@ tasks:
98105
else
99106
npx --package=markdown-link-check --call='
100107
STATUS=0
101-
for file in $(find . -regex ".*[.]md"); do
108+
for file in $(
109+
find . \
110+
-type d -name '.git' -prune -o \
111+
-type d -name '.licenses' -prune -o \
112+
-type d -name '__pycache__' -prune -o \
113+
-type d -name 'node_modules' -prune -o \
114+
-regex ".*[.]md" -print
115+
); do
102116
markdown-link-check \
103117
--quiet \
104118
--config "./.markdown-link-check.json" \
@@ -147,12 +161,16 @@ tasks:
147161
# The odd method for escaping . in the regex is required for windows compatibility because mvdan.cc/sh gives
148162
# \ characters special treatment on Windows in an attempt to support them as path separators.
149163
find . \
150-
-path ".git" -prune -or \
164+
-type d -name '.git' -prune -or \
165+
-type d -name '.licenses' -prune -or \
166+
-type d -name '__pycache__' -prune -or \
167+
-type d -name 'node_modules' -prune -or \
151168
\( \
152169
-regextype posix-extended \
153170
-regex '.*[.](bash|sh)' -and \
154171
-type f \
155-
\)
172+
\) \
173+
-print
156174
)
157175
158176
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-shell-task/Taskfile.yml
@@ -173,7 +191,10 @@ tasks:
173191
# The odd approach to escaping `.` in the regex is required for windows compatibility because mvdan.cc/sh
174192
# gives `\` characters special treatment on Windows in an attempt to support them as path separators.
175193
find . \
176-
-path ".git" -prune -or \
194+
-type d -name '.git' -prune -or \
195+
-type d -name '.licenses' -prune -or \
196+
-type d -name '__pycache__' -prune -or \
197+
-type d -name 'node_modules' -prune -or \
177198
\( \
178199
-regextype posix-extended \
179200
-regex '.*[.](bash|sh)' -and \

0 commit comments

Comments
 (0)