issues Search Results · repo:asm89/twig-lint language:PHP
Filter by
28 results
(85 ms)28 results
inasm89/twig-lint (press backspace or delete to remove)I m not sure if/how many people are still using this linter, but it needs some love.
One thing I wonder is what to do about supported twig versions. It seems Twig 1.x, 2.x and 3.x are all supported
nowadays? ...
needsinfo
asm89
- 2
- Opened on Aug 26, 2021
- #46
When I install v1.0.2 via Composer the installed code claims to be v1.0.1:
$ twig-lint --version
Twig lint v1.0.1
I tried a few different variants of invoking Composer, but none of those installed a ...
krzysztof-sikorski
- 1
- Opened on Mar 13, 2020
- #44
@lauriii looked at possibly using twig-lint to detect deprecated API use, see
https://github.com/lauriii/twig-lint/commit/ce92148c3ed053f4cf4444e01269974b051ec269 -- which is obviously very raw, but
we ...
enhancement
goba
- 1
- Opened on Aug 28, 2019
- #43
Using ?? in a Twig templated is flagged as invalid with the following warning:
Unexpected token punctuation of value ?
It is a default Twig operator (https://twig.symfony.com/doc/2.x/templates.html#other-operators) ...
bug
thijskaspers
- 2
- Opened on Dec 11, 2018
- #42
This package is part of Acquia s BLT framework, but it seems to fail when using the Drupal contributed module
twig_tweak. How can I get twig-lint to recognize twig_tweak functions?
brooke-heaton
- 2
- Opened on May 11, 2018
- #41
It seems like this should pass, but fails. The template works and looks fine when viewing pages though.
Twig Code:
{% set n = content.field_content_blocks[ #items ]|length %}
{% set classes = [
...
bug
sodacrackers
- Opened on Apr 4, 2018
- #40
There is an Atom linter Provider that has twig-lint as prerequisite, so I gave it a try.
But my templates do not report any linter warnings (or Errors), even if i try to do some ugly code.
Calling twig-lint ...
OwnerOfThisIsle
- 3
- Opened on Dec 19, 2017
- #39
When the tag is a script template, the linter ruins it, you can test with any underscore template, can we ignore this
specific tags somehow?
n-for-all
- 1
- Opened on Oct 7, 2017
- #34
Hi,
here is an unexpected lint error :
{% if foo.attribute is same as(false) %}
the foo attribute really is the false PHP value
{% endif %}
Error :
1 {% if foo.attribute is same as(false) ...
needsinfo
neilime
- 3
- Opened on Feb 6, 2017
- #33
It would be great if lint could check for proper indentation in a twig file. Even better would be the ability to
configure what it s looking for via an argument or config file. For example, tabs/spaces ...
enhancement
dpagini
- Opened on Jan 27, 2017
- #32

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.