Update rubocop inheriting from hanami repositor
This commit is contained in:
parent
ff58386b7f
commit
6cf454173b
|
@ -22,3 +22,4 @@ tmp
|
|||
mkmf.log
|
||||
.greenbar
|
||||
.devnotes
|
||||
.rubocop-*
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue