Skip to content

dmoklaf/lll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Godoc license Go Report Card

lll

Line length linter, used to enforce line length in files. Support for only checking go files.

Installation

$ go get github.com/walle/lll/...

Usage

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 exit

Example 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.

Testing

Use the go test tool.

$ go test -cover

Contributing

All contributions are welcome! See CONTRIBUTING for more info.

License

The code is under the MIT license. See LICENSE for more information.

About

Line length linter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%