asm89 / twig-lint

Standalone twig linter.
MIT License
118 stars 32 forks source link

Custom operator flagged as invalid #2

Open natelenart opened 11 years ago

natelenart commented 11 years ago

I wrote a custom Twig operator in Symfony using a Twig Extension. Symfony recognizes it just fine -- my pages render and app/console twig:lint reports the file is ok. However, Syntastic flags the line as invalid since it triggers twig-lint outside of Symfony and does not know about my extension. Is there an easy way to teach twig-lint about my Symfony extensions?

asm89 commented 10 years ago

Currently there is no easy way. Maybe we can extend the linter to have some configuration to:

What do you think?

asm89 commented 3 years ago

The linter was extended to not complain about undefined functions and tests. I wonder if this is still an issue?