Skip to content

Commit

Permalink
Correction of new RuboCop offenses (RuboCop version 1.60.0)
Browse files Browse the repository at this point in the history
- use ... for arguments formating
- Don't use redundant parentheses
  • Loading branch information
robertcheramy committed Jan 16, 2024
1 parent 2c3479f commit 547a7c6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .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 2023-11-27 13:35:47 UTC using RuboCop version 1.57.2.
# on 2024-01-16 10:57:24 UTC using RuboCop version 1.60.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 Down
4 changes: 2 additions & 2 deletions lib/oxidized/model/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ def send(data)
@input.send data
end

def expect(regex, &block)
self.class.expect regex, &block
def expect(...)
self.class.expect(...)
end

def cfg
Expand Down
4 changes: 2 additions & 2 deletions lib/oxidized/nodes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def initialize(opts = {})
end
end

def with_lock(&block)
@mutex.synchronize(&block)
def with_lock(...)
@mutex.synchronize(...)
end

def find_index(node)
Expand Down
4 changes: 2 additions & 2 deletions lib/oxidized/output/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def setup

def store(file, outputs, opt = {})
@msg = opt[:msg]
@user = (opt[:user] || @cfg.user)
@email = (opt[:email] || @cfg.email)
@user = opt[:user] || @cfg.user
@email = opt[:email] || @cfg.email
@opt = opt
@commitref = nil
repo = @cfg.repo
Expand Down
4 changes: 2 additions & 2 deletions lib/oxidized/output/gitcrypt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def unlock(repo)

def store(file, outputs, opt = {})
@msg = opt[:msg]
@user = (opt[:user] || @cfg.user)
@email = (opt[:email] || @cfg.email)
@user = opt[:user] || @cfg.user
@email = opt[:email] || @cfg.email
@opt = opt
@commitref = nil
repo = @cfg.repo
Expand Down
4 changes: 2 additions & 2 deletions lib/oxidized/source/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ class Source
class NoConfig < OxidizedError; end

def initialize
@model_map = (Oxidized.config.model_map || {})
@group_map = (Oxidized.config.group_map || {})
@model_map = Oxidized.config.model_map || {}
@group_map = Oxidized.config.group_map || {}
end

def map_model(model)
Expand Down

0 comments on commit 547a7c6

Please sign in to comment.