| name | validating-gitattributes-file |
| description | Validate .gitattributes files in projects using lean-package-validator; use when checking export-ignore completeness, ordering, or stale entries. |
| version | 1.0.0 |
| tags | ["git","gitattributes","lean-package-validator","php"] |
Validate .gitattributes with lean-package-validator
From the repository root:
- Run
./vendor/bin/lean-package-validator validate to check the current .gitattributes file.
- Add
--diff to see the expected content when validation fails.
- Add
--enforce-strict-order or --enforce-alignment only if strict comparison is required.
- Add
--report-stale-export-ignores (with --diff) to surface export-ignores that no longer exist.
If validation fails, use the updating skill to bring .gitattributes in sync.