cowl - column width linter

cowl helps you keep your source code / text in a terminal-friendly 80-column width.

EXAMPLES

$ cowl examples/
examples/hello.bf:3:++++++++[>++++[>++>+++>+++>+<<"\n$ cat examples/hello.bf | cowl\nstdin:3:++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.\n\n$ wc -c examples/hello.bf\n     158 examples/hello.bf\n\n$ cowl -w 160 examples/hello.bf\n$\n\n$ cowl -i '*.bf' examples/\n$\n\n$ cowl -h\nUsage: cowl [options] [<files>|-]\n    -i, --ignore pattern             Ignore file patterns (fnmatch)\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">+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

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 scanning, like jshint .
  • Optional ignore patterns, like .gitignore
  • Configuration via per-project and per-user dotfiles
  • Install via a standard programming language package manager

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