diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-03 10:34:20 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-03 10:34:20 +0200 |
commit | e052daa08adecf74d6ac85c7a8bf6cb7743b8d93 (patch) | |
tree | 9ff5bee2a93517d089ec30e400553b3037f55f79 | |
parent | ae5f17ae2dc0009ca5fce9a46db18af943dffbd5 (diff) | |
download | gitlab-ce-e052daa08adecf74d6ac85c7a8bf6cb7743b8d93.tar.gz |
Enable Style/EmptyLinesAroundAccessModifier rubocop coprubocop/enable-empty-lines-around-access-modifier-cop
See #17478
-rw-r--r-- | .rubocop.yml | 2 | ||||
-rw-r--r-- | app/services/oauth2/access_token_validation_service.rb | 1 | ||||
-rw-r--r-- | lib/gitlab/ldap/config.rb | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 84a8015b410..3593ae29f24 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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: diff --git a/app/services/oauth2/access_token_validation_service.rb b/app/services/oauth2/access_token_validation_service.rb index 6194f6ce91e..264fdccde8f 100644 --- a/app/services/oauth2/access_token_validation_service.rb +++ b/app/services/oauth2/access_token_validation_service.rb @@ -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) diff --git a/lib/gitlab/ldap/config.rb b/lib/gitlab/ldap/config.rb index aff7ccb157f..f9bb5775323 100644 --- a/lib/gitlab/ldap/config.rb +++ b/lib/gitlab/ldap/config.rb @@ -93,6 +93,7 @@ module Gitlab end protected + def base_config Gitlab.config.ldap end |