Greener
===

Keep your Cucumber and Spinach feature files greener :four_leaf_clover: with this configurable linter

## Usage

Install the gem
```
gem install greener
```

The `greener` binary takes a single argument, `-c path/to/config/greener.yml`. See the [defaults](./config/defaults.yml) for an example of this file.

View the [changelog](./CHANGELOG.md) for recent changes.

## Contributing

Install dev dependencies locally
```
bundle install
```

Run tests
```
bundle exec rake test
```

View code coverage
```
rake && open coverage/index.html
```

## Testing

To test the `greener` binary locally, `cd` to the repo root and run
```
RUBYLIB=lib bundle exec ruby bin/greener
```
Based on [this answer](http://stackoverflow.com/a/23367196/3456726).

## References

#### CLI related

0. http://guides.rubygems.org/make-your-own-gem/
0. http://whatisthor.com/
0. https://github.com/erikhuda/thor/wiki/Integrating-with-Aruba-In-Process-Runs

#### Testing related
0. http://stackoverflow.com/questions/12673485/how-to-test-stdin-for-a-cli-using-rspec
0. https://github.com/livinginthepast/aruba-rspec

#### Lint related

0. https://github.com/bbatsov/rubocop/tree/master/lib/rubocop
