clutchski/coffeelint — pull request #165 by AsaAyers (2013-10-07 01:24:16+00:00)
Title: 0.6.0 Custom rules fixes #154

An update to gh-pages is in a different pull request. This PR is mostly about getting the attention of anyone interested in reviewing or commenting before I merge this.

Will this affect my existing config?
----

No, everything here is backward compatible. It contains all of the same rules and passes the same tests.

What's new?
----

* In your config file you can set a `module` the same way you would set a `level`
* `coffeelint.registerRule(RuleConstructor)` for loading rules when you aren't using the command line.
* The command line has a new `--rules` parameter that can specify a NodeJS module to load a custom rule.
* CoffeeLint uses Browserify at build-time, but introduces NO new runtime dependencies.

Simple example of loading a custom rule from your config file:

{
"fibonacci_indentation": {
"module": "coffeelint-fibonacci"
}
}