Pending

User tests: Successful: Unsuccessful:

avatar LadySolveig
LadySolveig
21 Nov 2024

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 cacheand logsdirectory 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)

  • If not already done: type composer i
  • type composer run phpcs
  • type composer run csfixer

Actual result BEFORE applying this Pull Request

grafik

Expected result AFTER applying this Pull Request

grafik

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org: joomla/Manual#337

  • No documentation changes for manual.joomla.org needed

avatar LadySolveig LadySolveig - open - 21 Nov 2024
avatar LadySolveig LadySolveig - change - 21 Nov 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Nov 2024
Category External Library Composer Change
avatar LadySolveig LadySolveig - change - 21 Nov 2024
The description was changed
avatar LadySolveig LadySolveig - edited - 21 Nov 2024
avatar LadySolveig LadySolveig - change - 21 Nov 2024
The description was changed
avatar LadySolveig LadySolveig - edited - 21 Nov 2024
avatar brianteeman
brianteeman - comment - 21 Nov 2024

is it expected to get this error at the end of running phpcs?

image

and this error at the end of running csfixer

image

avatar LadySolveig
LadySolveig - comment - 22 Nov 2024

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
Screenshot 2024-11-22 084946
Screenshot 2024-11-22 084428

composer run csfixer
Screenshot 2024-11-22 084803

Is your IDE or your Git client possibly doing something with the line endings?

Add a Comment

Login with GitHub to post a comment