Line length linter, used to enforce line length in files. Support for only checking go files.
$ go get github.com/walle/lll/...usage: lll [--maxlength MAXLENGTH] [--goonly] [--skiplist SKIPLIST] [--vendor]
[--files] [INPUT [INPUT ...]]
positional arguments:
input
options:
--maxlength MAXLENGTH, -l MAXLENGTH
max line length to check for [default: 80]
--goonly, -g only check .go files
--skiplist SKIPLIST, -s SKIPLIST
list of dirs to skip [default: .git vendor]
--vendor check files in vendor directory
--files read file names from stdin one at each line
--help, -h display this help and exitExample usage to check only go files for lines more than 100 characters.
lll -l 100 -g path/to/myproject.
You can also define the flags using environment variables, eg.
MAXLENGTH=100 GOONLY=true lll path/to/my/project.
Use the go test tool.
$ go test -coverAll contributions are welcome! See CONTRIBUTING for more info.
The code is under the MIT license. See LICENSE for more information.