GitXplorerGitXplorer
a

twig-lint

public
118 stars
32 forks
13 issues

Commits

List of commits on branch master.
Unverified
87828cc11b7e9bb8e7ca0c92428bf9ed64be1761

Remove mentions of phar from README. Recommend dev dependency.

aasm89 committed 3 years ago
Unverified
e5a829aa883f54f8ec50a68e441358809b4e7bbf

Prepare for 1.0.3 release

aasm89 committed 3 years ago
Unverified
a9e2dd56ae3960002b11cc4739ea74888c837347

Add test for failing lint

aasm89 committed 3 years ago
Verified
c0e18fb136d967417526b4214d080065e7d8f378

Merge pull request #45 from bronzehedwick/patch-1

aasm89 committed 3 years ago
Unverified
6cd5d29800b53c944f44b960490a38768529338f

Upgrade to phpunit 9.5+

aasm89 committed 3 years ago
Verified
69ad9afb242e8c88b90d9451841a888895581edb

Merge pull request #37 from Nyholm/patch-1

aasm89 committed 3 years ago

README

The README file for this repository.

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 for Vim).

Build Status

Installation / Usage

As a dev dependency (recommended)

Add the following to your composer.json:

{
    "require-dev": {
        "asm89/twig-lint": "*"
    }
}

Run ./bin/twig-lint lint <file>.

As standalone executable

Install as a global composer dependency:

composer global require "asm89/twig-lint" "@stable"

Run ~/.composer/vendor/bin/twig-lint lint <file>.

Vim and Syntastic configuration

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.

Authors

Alexander iam.asm89@gmail.com
Marc Weistroff marc.weistroff@sensiolabs.com (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).