Update rubocop inheriting from hanami repositor
This commit is contained in:
parent
d48a0cd097
commit
fbc4c65360
|
@ -5,6 +5,7 @@
|
|||
.devnotes
|
||||
.greenbar
|
||||
.yardoc
|
||||
.rubocop-*
|
||||
Gemfile.lock
|
||||
InstalledFiles
|
||||
_yardoc
|
||||
|
@ -17,4 +18,4 @@ spec/reports
|
|||
test/tmp
|
||||
test/version_tmp
|
||||
tmp
|
||||
bin
|
||||
bin
|
||||
|
|
22
.rubocop.yml
22
.rubocop.yml
|
@ -1,21 +1,13 @@
|
|||
AllCops:
|
||||
DisplayCopNames: true
|
||||
DisplayStyleGuide: true
|
||||
ExtraDetails: false
|
||||
Bundler/OrderedGems:
|
||||
Enabled: false
|
||||
Metrics/LineLength:
|
||||
Enabled: false
|
||||
Style/RaiseArgs:
|
||||
Enabled: false
|
||||
# Please keep AllCops, Bundler, Style, Metrics groups and then order cops
|
||||
# alphabetically
|
||||
inherit_from:
|
||||
- https://raw.githubusercontent.com/hanami/hanami/master/.rubocop.yml
|
||||
Metrics/BlockLength:
|
||||
Exclude:
|
||||
- 'test/**/*'
|
||||
Style/DoubleNegation:
|
||||
Enabled: false
|
||||
Style/EmptyMethod:
|
||||
Enabled: false
|
||||
Style/SpecialGlobalVars:
|
||||
Enabled: false
|
||||
Style/MethodMissing:
|
||||
Enabled: false
|
||||
Metrics/BlockLength:
|
||||
Exclude:
|
||||
- 'test/**/*'
|
||||
|
|
|
@ -266,7 +266,7 @@ module Hanami
|
|||
class_name = self.class.name
|
||||
namespace = Utils::String.new(class_name).namespace
|
||||
|
||||
class_name != namespace and return namespace # rubocop:disable Style/AndOr
|
||||
class_name != namespace and return namespace
|
||||
end
|
||||
|
||||
# @since 0.5.0
|
||||
|
|
Loading…
Reference in New Issue