Gitlab-Hound reviews Gitlab Merge Request for style guide violations.
cp config/secrets.yml.example config/secrets.yml
and changecp config/database.yml.example config/database.yml
and changebundle install & bundle exec rake db:setup
bin/rails s
bundle exec sidekiq -C config/sidekiq.yml
Read gitlab-hound 发布了 for more detail
- Ruby
- JavaScript
- CoffeeScript
- Java
To enable Ruby style checking, add the following to .hound.yml in the root of your project
ruby:
enabled: true
We uses RUBOCOP internally so you can configure Gitlab-Hound by adding a RUBOCOP CONFIG to your project and adding the following to .hound.yml in the root of your project.
ruby:
enabled: true
config_file: config/.rubocop.yml
To enable CoffeeScript style checking, add the following to .hound.yml in the root of your project
coffee_script:
enabled: true
We use COFFEELINT internally so you can configure Gitlab-Hound by adding a COFFEELINT CONFIG to your project and adding the following to .hound.yml in the root of your project.
coffee_script:
enabled: true
config_file: config/.coffeelint.json
To enable JavaScript style checking, add the following to .hound.yml in the root of your project
java_script:
enabled: true
We use JSHINT internally so you can configure Gitlab-Hound by adding a JSHINT CONFIG to your project and adding the following to .hound.yml in the root of your project.
java_script:
enabled: true
config_file: config/.jshint.json
To enable Java style checking, add the following to .hound.yml in the root of your project
java:
enabled: true
We use check styles internally so you can configure Gitlab-Hound by custom config to your project and adding the following to .hound.yml in the root of your project.
java:
enabled: true
config_file: config/.java_custom.xml
Default we use sun checks for style checking, you can download google checks or sun checks from here, and change them according to your team check style checks
First, thank you for contributing!
Here a few guidelines to follow:
- Write tests
- Make sure the entire test suite passes locally
- Open a pull request on GitHub