With the default .gitignore file https://github.com/dxw/wordpress-plugin-template/blob/main/.gitignore#L72 we exclude *xml* paths. This is quite broad and I'm not sure it's needed?
Unfortunately this makes accidentally not including the required psalm.xml file rather easy to miss if it's then inside another git repository (work around git add ./psalm.xml -f ). Without doing this, a mismatch between CI and local is easy to miss resulting in psalm erroring:
Config not found for path /home/runner/work/your-project-here/wp-content/plugins/your-plugin-here
Error: Process completed with exit code 1.
With the default
.gitignorefile https://github.com/dxw/wordpress-plugin-template/blob/main/.gitignore#L72 we exclude*xml*paths. This is quite broad and I'm not sure it's needed?Unfortunately this makes accidentally not including the required psalm.xml file rather easy to miss if it's then inside another git repository (work around
git add ./psalm.xml -f). Without doing this, a mismatch between CI and local is easy to miss resulting in psalm erroring: