Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asm89/twig-lint
Standalone twig linter.
https://github.com/asm89/twig-lint
Last synced: about 7 hours ago
JSON representation
Standalone twig linter.
- Host: GitHub
- URL: https://github.com/asm89/twig-lint
- Owner: asm89
- License: mit
- Created: 2013-01-22T12:05:48.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-11-19T12:49:23.000Z (almost 3 years ago)
- Last Synced: 2024-10-14T06:25:40.588Z (about 1 month ago)
- Language: PHP
- Size: 36.1 KB
- Stars: 118
- Watchers: 6
- Forks: 32
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
twig-lint - Standalone twig linter
==================================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](https://github.com/scrooloose/syntastic) for Vim).
[![Build Status](https://secure.travis-ci.org/asm89/twig-lint.png?branch=master)](http://travis-ci.org/asm89/twig-lint)
Installation / Usage
--------------------### As a dev dependency (recommended)
Add the following to your `composer.json`:
```json
{
"require-dev": {
"asm89/twig-lint": "*"
}
}
```Run `./bin/twig-lint lint `.
### As standalone executable
Install as a global composer dependency:
```bash
composer global require "asm89/twig-lint" "@stable"
```Run `~/.composer/vendor/bin/twig-lint lint `.
### Vim and Syntastic configuration
For the standalone executable, add the following to your `~/.vimrc` file:
```vim
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.Authors
-------Alexander
Marc Weistroff (creator of the original `twig:lint` command in the symfony framework)License
-------- twig-lint is licensed under the MIT License - see the LICENSE file for details
- I am providing code in this repository to you under an open source license. Because this is my personal repository, the license you receive to my code is from me and not from my employer (Facebook).