Skip to content

Commit

Permalink
use rubocop-decko gem
Browse files Browse the repository at this point in the history
  • Loading branch information
xithan committed Nov 16, 2016
1 parent aeb9f5d commit 2cef0ba
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .rubocop.yml
@@ -1,7 +1,18 @@
# require: rubocop-decko
require: rubocop-rspec
require:
- rubocop-decko
- rubocop-rspec
inherit_from: .ruby-style.yml
Style/IndentationConsistency:
AutoCorrect: false
Style/MutableConstant:
AutoCorrect: false
Decko/ViewLength:
Description: Avoid views longer than 15 lines of code.
Enabled: true
CountComments: false
Max: 15
Decko/EventLength:
Description: Avoid events longer than 10 lines of code.
Enabled: true
CountComments: false
Max: 10
7 changes: 7 additions & 0 deletions .ruby-style.yml
Expand Up @@ -70,6 +70,13 @@ Style/FormatString:
- format
- sprintf
- percent
Metrics/BlockLength:
Enabled: true
Exclude:
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*.rb'
- '**/*_spec.rb'
RSpec/ExampleLength:
Description: Checks for long examples.
Enabled: true
Expand Down
1 change: 1 addition & 0 deletions wagn/lib/wagn/generators/wagn/templates/Gemfile
Expand Up @@ -27,6 +27,7 @@ group :test do
gem 'rspec', '~> 3.4'
gem 'rspec-rails' # behavior-driven-development suite
gem 'spork', '>=0.9'
gem 'rubocop-decko'
end
group :test, :development do
Expand Down

0 comments on commit 2cef0ba

Please sign in to comment.