YouweGit / testing-suite

Collection of PHP code testing packages.
MIT License
11 stars 9 forks source link

Set match_word to true for git_blacklist #15

Closed peterjaap closed 1 year ago

peterjaap commented 1 year ago

To avoid triggering on add() while dd() is blacklisted. Also added exit(

See;

This option allows you to choose how the keywords is found.

For instance let's say you have a keyword looking like "dd(" by default this task would also find any text before or after the keyword meaning this: function add($someTask) would still be considered invalid. This configuration option allows you to get around that issue.

Anve94 commented 1 year ago

Hi @peterjaap, thanks for raising this. Seems like we had the same idea here. I also opened #16 with the same changes. I'll incorporate your exit change on the git blacklist config there too. I'll close this one and will get #16 tagged and released soon

peterjaap commented 1 year ago

Thanks!