Update rubocop inheriting from hanami repositor

This commit is contained in:
Alfonso Uceda Pompa 2016-12-16 17:15:13 +01:00
parent d48a0cd097
commit fbc4c65360
No known key found for this signature in database
GPG Key ID: 84FAD69D3805936D
3 changed files with 10 additions and 17 deletions

3
.gitignore vendored
View File

@ -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

View File

@ -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/**/*'

View File

@ -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