benbria/benbria-build — pull request #4 by calvinwiebe (2014-05-27 17:56:04+00:00)
Title: Expose the configuration of coffeelint paths to be set by project

The __coffeelint__ paths were hardcoded to the assumed directory structure. In loop we now need to start linting browserify coffee files I think. This PR keeps the default assumed directory structure paths, but exposes the ability to override and add paths via the `ninjaConfig.coffee`.

You can now do something like this in `ninjaConfig.coffee`

```coffee-script
{configureCoffeelint} = require 'benbria-build'
configureCoffeelint {
extensions: [
'coffee'
'_coffee'
]
paths: [
'src/**/*.$ext'
'assets/js/**/*.$ext'
'assets/browserify/**/*.$ext'
'bin/**/*.$ext'
'Gruntfile.$ext'
]
}
```

### Detailed Changes
1. Moved the coffeelint getting code to `index.coffee`.
2. Refactored the `collectCoffeeFiles` to accept an options hash of `extensions` and `paths` to iterate over.
3. Exposed a simple function to reset the module `setLintPaths` object.

### Testing performed
1. `npm link`ed into loop and tried to lint some browserify files.