twigcs icon indicating copy to clipboard operation
twigcs copied to clipboard

Support request: How to disable verification of a code fragment?

Open Artusamak opened this issue 2 years ago • 2 comments

Hello, thank you for your lib, it's very useful. :partying_face:

I'm in need to version a file that has invalid code when checked against the validator. I want to verify this file and not let it block the next person that will update it. Is there a way to disable the validation for a code fragment within the file like PHPCS does with // @codingStandardsIgnoreStart and // @codingStandardsIgnoreEnd that you can add as delimiter.

I'm aware of the --no-verify at the commit moment but as mentionned above, the next file update will trigger the failure.

Thank you for your time! :pray:

Artusamak avatar Apr 26 '22 16:04 Artusamak

Hello, thank you for your kind words!

Sadly we don't have this feature right now. This would be a nice addition.

OwlyCode avatar Apr 28 '22 20:04 OwlyCode

Oh! Well i guess i'll send flowers and motivation to the kind contributor that will work on it when it happens. :blush:

Thank you for your reply.

Artusamak avatar Apr 29 '22 07:04 Artusamak