Closed hkirsman closed 1 year ago
We were able to make this work with Mario without making customizations to the above file. But because we can't seem to enable multiple rules, we'd need to have 1 that combines the 2. So at the moment we only would have WunderDrupal enabled.
I thought we could write the docs for this in wiki https://github.com/wunderio/code-quality/wiki/Testing-first-article---how-to-set-up-coding-standards-scanning-for-PHPStorm---Lando ?
@vermario
It seems it's possible to make PhpStorm run coding standards real time from Lando: https://github.com/HBFCrew/lando-docs-examples/blob/master/Drupal-PHPStorm-Lando-Setting-Code-Sniffer-Debugging.md#drupal-coding-standards-coder-codesniffer
There's some configuring in PhpStorm.
And also some adjustments need to be made to Code Quality.
Here's an example rule that seems to work ( vendor/wunderio/code-quality/rulesets/WunderDrupal/ruleset.xml ). If this works with GrumPHP then we can commit it.
Also it seems it's not possible to add more than 1 rule at a time, then we'd need to create 1 rule that combines WunderDrupal + WunderSecurity.
Todo: