Skip to content

Commit

Permalink
Rubocop: Update configuration and todo file
Browse files Browse the repository at this point in the history
  • Loading branch information
neomilium committed Apr 21, 2021
1 parent 546cccd commit b1fa27f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ Style/TrailingCommaInLiteral:
# sane line length
Metrics/LineLength:
Max: 120
IgnoreCopDirectives: true
Exclude:
- 'features/**/*'

Style/FrozenStringLiteralComment:
Enabled: false

TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
18 changes: 9 additions & 9 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2021-04-21 14:32:57 +0200 using RuboCop version 0.50.0.
# on 2021-04-21 14:33:49 +0200 using RuboCop version 0.50.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand All @@ -14,32 +14,32 @@ Layout/IndentHeredoc:
Exclude:
- 'lib/modulesync/hook.rb'

# Offense count: 1
# Offense count: 3
Lint/UselessAssignment:
Exclude:
- 'lib/modulesync.rb'

# Offense count: 10
Metrics/AbcSize:
Max: 67
Max: 59

# Offense count: 2
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 128
Max: 125

# Offense count: 3
# Offense count: 4
Metrics/CyclomaticComplexity:
Max: 12
Max: 13

# Offense count: 13
# Offense count: 14
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 36
Max: 32

# Offense count: 3
Metrics/PerceivedComplexity:
Max: 13
Max: 14

# Offense count: 10
Style/Documentation:
Expand Down
2 changes: 1 addition & 1 deletion lib/modulesync/git_service/gitlab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class GitLab < Base
def initialize(token, endpoint)
@api = Gitlab::Client.new(
:endpoint => endpoint,
:private_token => token
:private_token => token,
)
end

Expand Down

0 comments on commit b1fa27f

Please sign in to comment.