fix rubocop errors on testing with Rubocop 0.44

- have the new `Metrics/BlockLength` cop ignore test files and
    `jekyll/configuration.rb`
  - have `AllCops` ignore Jekyll Executable which is not going to be
    altered in the near future.
This commit is contained in:
Ashwin Maroli 2016-10-17 08:56:04 +05:30
parent c9d24b7d18
commit d1f67bf85a
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@ AllCops:
Exclude: Exclude:
- lib/jekyll/renderer.rb - lib/jekyll/renderer.rb
- bin/**/* - bin/**/*
- exe/**/*
- benchmark/**/* - benchmark/**/*
- script/**/* - script/**/*
- vendor/**/* - vendor/**/*
@ -17,6 +18,10 @@ Lint/UselessAccessModifier:
Enabled: false Enabled: false
Metrics/AbcSize: Metrics/AbcSize:
Max: 21 Max: 21
Metrics/BlockLength:
Exclude:
- test/**/*.rb
- lib/jekyll/configuration.rb
Metrics/ClassLength: Metrics/ClassLength:
Exclude: Exclude:
- !ruby/regexp /features\/.*.rb$/ - !ruby/regexp /features\/.*.rb$/