deprecated-packages / symplify

[DISCONTINUED] Check split packages in their own repositories :)
MIT License
619 stars 188 forks source link

Use config-standard without ECS for PhpStorm integration #4521

Closed nesl247 closed 1 year ago

nesl247 commented 1 year ago

PhpStorm has native integration with php-cs-fixer, as it can replace the built in coding style fixers (https://www.jetbrains.com/phpstorm/whatsnew/#php-tools-integration - see Use external formatters for PHP ). However, that means that ECS cannot be used to load these rules, and we must use php-cs-fixer directly.

It would be great if there was documentation, or an easy way to make use of config-standard without having to rely upon ECS, given that the documentation states it isn't required, but it's easiest to use it with ECS.

TomasVotruba commented 1 year ago

ECS is not nativelly supported by PhpStorm. That would have to handled in the IDE directly.

On the other hand, using these tools withing IDE requires redundant manual work. See: https://tomasvotruba.com/blog/2019/06/24/do-you-use-php-codesniffer-and-php-cs-fixer-phpstorm-plugin-you-are-slow-and-expensive/

Better let CI handle this :)