Enable Style/EmptyLinesAroundAccessModifier rubocop cop

See #17478
This commit is contained in:
Grzegorz Bizon 2016-06-03 10:34:20 +02:00
parent ae5f17ae2d
commit e052daa08a
3 changed files with 3 additions and 1 deletions

View File

@ -194,7 +194,7 @@ Style/EmptyLines:
# Keep blank lines around access modifiers.
Style/EmptyLinesAroundAccessModifier:
Enabled: false
Enabled: true
# Keeps track of empty lines around block bodies.
Style/EmptyLinesAroundBlockBody:

View File

@ -22,6 +22,7 @@ module Oauth2::AccessTokenValidationService
end
protected
# True if the token's scope is a superset of required scopes,
# or the required scopes is empty.
def sufficient_scope?(token, scopes)

View File

@ -93,6 +93,7 @@ module Gitlab
end
protected
def base_config
Gitlab.config.ldap
end