Skip to content

Commit c3246e5

Browse files
committed
Enable Style/Documentation and disable Lint/MissingSuper
1 parent 69670ba commit c3246e5

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.rubocop.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ Layout/ParameterAlignment:
3131
Layout/SpaceInsideHashLiteralBraces:
3232
EnforcedStyle: no_space
3333

34+
Lint/MissingSuper:
35+
Enabled: false
36+
3437
Metrics/ParameterLists:
3538
CountKeywordArgs: false
3639

@@ -40,9 +43,6 @@ Minitest/MultipleAssertions:
4043
Style/Alias:
4144
EnforcedStyle: prefer_alias_method
4245

43-
Style/Documentation:
44-
Enabled: false
45-
4646
Style/FrozenStringLiteralComment:
4747
EnforcedStyle: never
4848

lib/x/bearer_token_authenticator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class BearerTokenAuthenticator < Authenticator
1818
# @return [BearerTokenAuthenticator] a new instance
1919
# @example Create a new bearer token authenticator
2020
# authenticator = X::BearerTokenAuthenticator.new(bearer_token: "token")
21-
def initialize(bearer_token:) # rubocop:disable Lint/MissingSuper
21+
def initialize(bearer_token:)
2222
@bearer_token = bearer_token
2323
end
2424

lib/x/oauth2_authenticator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class OAuth2Authenticator < Authenticator
6464
# access_token: "token",
6565
# refresh_token: "refresh"
6666
# )
67-
def initialize(client_id:, client_secret:, access_token:, refresh_token:, expires_at: nil) # rubocop:disable Lint/MissingSuper
67+
def initialize(client_id:, client_secret:, access_token:, refresh_token:, expires_at: nil)
6868
@client_id = client_id
6969
@client_secret = client_secret
7070
@access_token = access_token

lib/x/oauth_authenticator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class OAuthAuthenticator < Authenticator
6060
# access_token: "token",
6161
# access_token_secret: "token_secret"
6262
# )
63-
def initialize(api_key:, api_key_secret:, access_token:, access_token_secret:) # rubocop:disable Lint/MissingSuper
63+
def initialize(api_key:, api_key_secret:, access_token:, access_token_secret:)
6464
@api_key = api_key
6565
@api_key_secret = api_key_secret
6666
@access_token = access_token

0 commit comments

Comments
 (0)