Use updated PHP-CS-Fixer in standard location #16

Merged
MrPetovan merged 2 commits from toddy/friendica-docker-ci:php-cs-fixer into stable 2024-01-15 15:38:37 +01:00
Contributor

Hi,

this is step #2 in updating PHP-CS-Fixer to a recent version and installing it in a standard location (vendor/bin/php-cs-fixer instead of bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer).

See https://github.com/friendica/friendica/pull/13824 for details and https://github.com/friendica/friendica/pull/13824#issuecomment-1892042037 for the plan.

Regards,
Tobias

Hi, this is step #2 in updating PHP-CS-Fixer to a recent version and installing it in a standard location (`vendor/bin/php-cs-fixer` instead of `bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer`). See https://github.com/friendica/friendica/pull/13824 for details and https://github.com/friendica/friendica/pull/13824#issuecomment-1892042037 for the plan. Regards, Tobias
toddy added 1 commit 2024-01-15 14:17:17 +01:00
MrPetovan reviewed 2024-01-15 14:44:20 +01:00
@ -9,3 +9,3 @@
fi
./bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --diff --diff-format=udiff --dry-run --using-cache=no ${EXTRA_ARGS}
./vendor/bin/php-cs-fixer check -v --diff --using-cache=no ${EXTRA_ARGS}
Owner

The previous call used the --dry-run flag, I’m not sure we should remove it.

The previous call used the `--dry-run` flag, I’m not sure we should remove it.
Author
Contributor

I've changed the command from fix --dry-run to check, so I think it's safe to omit the --dry-run flag. If you prefer, I can add it again.

I've changed the command from `fix --dry-run` to `check`, so I think it's safe to omit the --dry-run flag. If you prefer, I can add it again.
Author
Contributor

I've now adopted the suggestion from the php-cs-fixer documentation for running it on CI.

I've now adopted the suggestion from the php-cs-fixer documentation for running it on CI.
toddy added 1 commit 2024-01-15 15:10:29 +01:00
MrPetovan approved these changes 2024-01-15 15:38:12 +01:00
MrPetovan merged commit b018eaa33f into stable 2024-01-15 15:38:37 +01:00
toddy deleted branch php-cs-fixer 2024-01-15 16:33:01 +01:00
Author
Contributor

Great, thanks. I think now the image at https://hub.docker.com/r/friendicaci/php-cs needs to be pushed again, so it can pick up the latest changes.

Great, thanks. I think now the image at https://hub.docker.com/r/friendicaci/php-cs needs to be pushed again, so it can pick up the latest changes.
Owner

Unfortunately I have no idea how to do that. hopefully @nupplaPhil -senpai notices us.

Unfortunately I have no idea how to do that. hopefully @nupplaPhil -senpai notices us.
MrPetovan added the
enhancement
label 2024-01-15 16:43:59 +01:00
Sign in to join this conversation.
No description provided.