Skip to content

Commit b1212ed

Browse files
committed
Specify exact path of dependency license metadata cache in ignore files
The "Check Dependencies" templates store a cache of metadata about the licenses of dependencies under the `.licenses` folder. The templates use the default location for this folder, under the root of the repository. Since this folder only contains generated files, it should be excluded from the validation checks performed by unrelated tools. Previously, the markdownlint and Prettier ignore configurations for this folder did not explicitly specify a location in the root of the repository, meaning that it would result in ignoring a folder of that name at any location in the project. In cases like this where a specific path is known, it is best to configure that exact path in order to avoid any chance of unexpected behavior.
1 parent 7ae7b6b commit b1212ed

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.markdownlintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown/.markdownlintignore
2-
.licenses/
2+
/.licenses/
33
__pycache__/
44
node_modules/
55
/other/clang-format-configuration/testdata/golden/samples/

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.licenses/
1+
/.licenses/
22
__pycache__/
33
node_modules/
44
/other/clang-format-configuration/testdata/golden/samples/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown/.markdownlintignore
2-
.licenses/
2+
/.licenses/
33
__pycache__/
44
node_modules/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.licenses/
1+
/.licenses/
22
__pycache__/
33
node_modules/
44
poetry.lock

0 commit comments

Comments
 (0)