cowl - column width linter
HOMEPAGE
https://github.com/mcandre/cowl
RUBYGEMS
https://rubygems.org/gems/cowl
ABOUT
Cowl is a command line program for identifying text lines that are considered too long, wider than the conventional column width 80 or so.
cowl is a shell wrapper around the traditional GNU grep backend, presenting a frontend similar to modern linters like Reek and JSHint.
- Recursive file search by default
- Optional ignore patterns
- Configuration via per-project and per-user dotfiles
- Install via a standard programming language package manager
EXAMPLE
$ cowl examples/
examples/hello.bf:3:++++++++[>++++[>++>+++>+++>+<<"\n$ cat examples/hello.bf | cowl\nstdin:3:++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.\n\n$ wc -L examples/hello.bf\n106 examples/hello.bf\n\n$ cowl -w 106 examples/\n$\n\n$ cowl -i .bf examples/\n$\n\n$ cowl -h\nUsage: cowl [options] [<files>|-]\n -i, --ignore pattern Ignore file names matching Ruby regex pattern\n -w, --max-width= Maximum column width, either an integer or \"unlimited\". Default: 80\n -h, --help Print usage info\n -v, --version Print version info\n">+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
REQUIREMENTS
E.g., Windows users can chocolatey install git.
Optional
- wc can help determine the longest line in a file
INSTALL
Install via RubyGems:
$ gem install cowl
CONFIGURE
See CONFIGURE.md for details.
LICENSE
FreeBSD
DEVELOPMENT
Testing
Keep the interface working:
$ cucumber
Linting
Keep the code tidy:
$ rake lint
Git Hooks
See hooks/.