twig-lint is a lint tool for your twig files.
It can be useful to integrate in your ci setup or as the basis of editor plugins (e.g. syntastic for Vim).
As a dev dependency (recommended)Add the following to your composer.json
:
{ "require-dev": { "asm89/twig-lint": "*" } }
Run ./bin/twig-lint lint <file>
.
Install as a global composer dependency:
composer global require "asm89/twig-lint" "@stable"
Run ~/.composer/vendor/bin/twig-lint lint <file>
.
For the standalone executable, add the following to your ~/.vimrc
file:
let g:syntastic_twig_twiglint_exec = 'php' let g:syntastic_twig_twiglint_exe = 'php /path/to/twig-lint'
For the composer dependency, twig-lint must be in your $PATH
, no further configuration is needed.
Alexander iam.asm89@gmail.com
Marc Weistroff marc.weistroff@sensiolabs.com (creator of the original twig:lint
command in the symfony framework)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4