0a47387f48
Prettier resolves its default ignore files at the CWD only. It does not walk directories the way git does, so the nested .gitignore files under sdk/* are never opened, and everything installed or built below them reaches the `**/*.md` glob that `format` and `format:check` use. The effect is that `composer install` in sdk/php is enough to make `npm run format:check` fail on markdown this repository does not own — and installing those dependencies is what running the per-SDK test suites requires. CI stays green only because the lint job runs `npm ci` at the root and never materialises sdk/php/vendor, not because the glob is safe. The root .gitignore is read by default, which is why node_modules/ needs no entry here and why the problem is invisible until someone installs an SDK's dependencies locally.
23 lines
814 B
Plaintext
23 lines
814 B
Plaintext
# Prettier resolves its default ignore files at the CWD only — it does not walk directories the way
|
|
# git does, so the nested .gitignore files under sdk/* are never opened. Anything installed or built
|
|
# below them therefore reaches the `**/*.md` glob in `format` / `format:check`, and a plain
|
|
# `composer install` is enough to fail the check on markdown this repository does not own.
|
|
#
|
|
# Keep in step with those nested .gitignore files. The root .gitignore is read by default, so rules
|
|
# already there (node_modules/, dist/, coverage/) do not need repeating.
|
|
|
|
# sdk/php/.gitignore
|
|
sdk/php/vendor/
|
|
sdk/php/.phpunit.cache/
|
|
|
|
# sdk/python/.gitignore
|
|
sdk/python/.pytest_cache/
|
|
sdk/python/__pycache__/
|
|
sdk/python/build/
|
|
sdk/python/dist/
|
|
sdk/python/.venv/
|
|
sdk/python/*.egg-info/
|
|
|
|
# sdk/java/.gitignore
|
|
sdk/java/target/
|