Skip to content

Commit

Permalink
Fix Rubocop Lint/MixedRegexpCaptureTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver authored and ekohl committed Oct 26, 2023
1 parent 3c3838d commit 4b44b57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Style/SlicingWithRange:
Enabled: true

Lint/MixedRegexpCaptureTypes:
Enabled: false
Enabled: true

Lint/ShadowingOuterLocalVariable:
Enabled: true
Expand Down
2 changes: 1 addition & 1 deletion lib/kafo/kafo_configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def run_installation
method, message = log_parser.parse(line)
progress_log(method, message, logger)

if (output = line.match(/(?:.+\]): Starting to evaluate the resource( \((?<count>\d+) of (?<total>\d+)\))?/))
if (output = line.match(/(?:.+\]): Starting to evaluate the resource(?: \((?<count>\d+) of (?<total>\d+)\))?/))
if (output[:count].to_i % 250) == 1 && output[:count].to_i != 1
logger.notice("#{output[:count].to_i - 1} configuration steps out of #{output[:total]} steps complete.")
end
Expand Down

0 comments on commit 4b44b57

Please sign in to comment.