KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
twiglint
★ 9
Open GitHub ↗
Twig templates linter
Download README (.md)
Explore Similar Repositories
pragai-aws
:
Chapter 2 on AWS for Pragmatic AI
smafile
:
Process smali files. 迁移gitee.com
fengyunkkx.github.io
:
FoxGeeker's Blog | 我的个人博客,通常发布一些与科技有关的教程、应用、评论,欢迎订阅 RSS:http://ifoxfactory.com/feed.xml
DiskYT
:
All about DiskYT project
mallard
:
The DuckDuckGo Bot of the Programming Discord Server.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
twiglint
?
Download (.md)
# TwigLint [WIP][ALPHA] Twig templates linter # Install ```bash npm install twiglint -g ``` # Usage ```bash Usage $ twiglint <filename> Options -s, --silent Show only errors -f, --format Use a specific output format - default: stylish [compact] -d, --debug Write debug file, and prepend every check with filename -h, --help This help ``` # Rules to be included For now rules are hardwired, there will be configurable config, and external plugins in the future - [x] Warn if there is no only in include function (no-only) - [x] Variables declared, but not used (no-unused-vars) - [x] Variables used without declaration, or docblock (no-undeclared) - [x] Do not use closing bracket on selfclosing tags (`\/>` => `>`) (no-closed-self-closing-tags) - [x] Prefer camelcase variable naming (prefer-camel-case-vars) - [x] Do not use spaceless tag (no-spaceless) - [x] Wrong tab padding on logic brackets (tags-padding) - [ ] use staticUrl functions for resources - [ ] Spelling # Roadmap - [x] Write tests for plugins - [x] Maximum usage of the parser - [x] Visual reporter with the ability to jump to the needed line (compact) - [x] Plugins as seperate modules - [x] cli testing - [ ] Write pluggable logic for external plugin - [ ] Allow to use local config - [ ] Sublime/VSCode/PhpStorm extentions # Docblock formatting {# @param {string} imageLink #} {# @param {string} view_change_uri #} {# @param {int} user_location_id #} or {# @param {string} imageLink @param {string} view_change_uri @param {int} user_location_id #} # License MIT