Configuration files for the source-code checking tools used on Bauer Xcel Media USA apps.:
To add these files to your repo in folder config/lint
at your root:
git submodule add [email protected]:bauerpub/lint-config.git config/lint
Hound uses version 0.29.1 of Rubocop.
Install that version locally with gem install rubocop -v 0.29.1
.
To use Rubocop to check file.rb:
$ rubocop file.rb --config config/lint/.ruby-style.yml
Hound uses version 0.3.0 of coffeelint.
Install that version of CoffeeLint locally with gem install coffeelint -v 0.3.0
.
To use CoffeeLint to check file.coffee:
$ coffeelint -f config/lint/.coffeescript-style.json file.coffee
Hound uses version 0.3.0 of JSHint RB
Install that version of JSHint locally with gem install jshintrb -v 0.3.0
To use JSHint to check file.js:
$ jshint --config config/lint/.javascript-style.json file.js
Hound uses version 0.34.0 of scss-lint.
Install that version of SCSS-Lint locally with gem install scss-lint -v 0.34.0
.
To use SCSS-Lint to check file.scss:
$ scss-lint --config config/lint/.scss-style.yml file.scss
To configure Hound's behavior on a repository, you can add the following .hound.yml
file at the app root:
ruby:
config_file: config/lint/.ruby-style.yml
scss:
config_file: config/lint/.scss-style.yml
coffeescript:
config_file: config/lint/.coffeescript-style.json
javascript:
config_file: config/lint/.javascript-style.json