Open LadySolveig opened 1 day ago
is it expected to get this error at the end of running phpcs?
and this error at the end of running csfixer
No, absolutely not an expected result. I have tried to replicate your issue but unfortunately I can't recreate it at the moment.
I have seen you run it directly on Windows. Since I usually use Linux, I have now installed php 8.3 and composer directly on Windows.
But for me it runs without errors here too.
composer run phpcs
composer run csfixer
Is your IDE or your Git client possibly doing something with the line endings?
Pull Request for Issue # .
Summary of Changes
Add commands
composer run phpcs
composer run csfixer
to composer.json for running cs check same way as it is configured in our automated testing setup, to make it easy for contributors to run it locally.Add excludes for
cache
andlogs
directory to php-cs-fixer configuration as we have the same exlcudes for phpcs. Improvement for our nice contributors.Testing Instructions
Open a terminal (and step into the cloned joomla developement folder)
composer i
composer run phpcs
composer run csfixer
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Link to documentations
Please select:
[ ] Documentation link for docs.joomla.org:
[X] No documentation changes for docs.joomla.org needed
[X] Pull Request link for manual.joomla.org: https://github.com/joomla/Manual/pull/337
[ ] No documentation changes for manual.joomla.org needed