Open Jamesking56 opened 2 months ago
You might need to escape the character twice to make sure it is escaped in both yaml and next in your git cli command.
An alternative solution is to use: https://github.com/phpro/grumphp/blob/v2.x/doc/tasks/phpparser.md
Or phpstan with https://github.com/ekino/phpstan-banned-code.
Both use PHP's AST to figure out if it's allowed or not which is less error prone on input like dump[space]( Whilst the blacklist task only checks for a regex match.
(It has been reported in https://github.com/phpro/grumphp/issues/1139 as well.)
2.6.0
My configuration
Steps to reproduce:
Result:
This config matches the config in the docs here: https://github.com/phpro/grumphp/blob/v2.x/doc/tasks/git_blacklist.md