Update rubocop inheriting from hanami repositor

This commit is contained in:
Alfonso Uceda Pompa 2016-12-16 17:09:20 +01:00
parent ff58386b7f
commit 6cf454173b
No known key found for this signature in database
GPG Key ID: 84FAD69D3805936D
3 changed files with 6 additions and 6 deletions

1
.gitignore vendored
View File

@ -22,3 +22,4 @@ tmp
mkmf.log
.greenbar
.devnotes
.rubocop-*

View File

@ -1,13 +1,12 @@
# Please keep AllCops, Bundler, Style, Metrics groups and then order cops
# alphabetically
inherit_from:
- https://raw.githubusercontent.com/hanami/hanami/master/.rubocop.yml
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
ExtraDetails: false
Exclude:
- 'vendor/**/*'
- 'lib/hanami/assets/compressors/*'
- 'test/fixtures/**/*.gemspec'
Metrics/LineLength:
Enabled: false
Style/RaiseArgs:
Enabled: false
Style/WhileUntilModifier:

View File

@ -14,7 +14,7 @@ end.parse!
config = options.fetch(:config) { raise ArgumentError.new('You must specify a configuration file') }
config = Pathname.new(config)
config.exist? or raise ArgumentError.new("Cannot find configuration file: #{config}") # rubocop:disable Style/AndOr
config.exist? or raise ArgumentError.new("Cannot find configuration file: #{config}")
require 'hanami/assets'
load config