Skip to content

Commit

Permalink
Setup rubocop on CC
Browse files Browse the repository at this point in the history
  • Loading branch information
AMHOL committed Apr 29, 2016
1 parent 64adc60 commit 834b832
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
engines:
rubocop:
enabled: true
checks:
Rubocop/Metrics/LineLength:
enabled: true
max: 120
Rubocop/Style/Documentation:
enabled: false
Rubocop/Lint/HandleExceptions:
enabled: true
exclude:
- rakelib/*.rake
Rubocop/Style/FileName:
enabled: true
exclude:
- lib/dry-configurable.rb
ratings:
paths:
- lib/**/*.rb
exclude_paths:
- spec/**/*
- examples/**/*
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ source 'https://rubygems.org'

gemspec

group :test do
gem 'codeclimate-test-reporter', platform: :rbx
end

group :tools do
gem 'rubocop'
gem 'guard'
Expand Down
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
Dir[Pathname(__FILE__).dirname.join('support/**/*.rb').to_s].each do |file|
require file
end

if RUBY_ENGINE == "rbx"
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
end

0 comments on commit 834b832

Please sign in to comment.