Closed nesl247 closed 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 :)
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.