Skip to content

Commit

Permalink
Fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
akadusei committed Jun 1, 2024
1 parent 0d92d72 commit 4e3978b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ AllCops:
Lint/AssignmentInCondition:
Enabled: false

Lint/ScriptPermission:
Enabled: false

RSpec/ExampleLength:
Enabled: false

Expand Down
4 changes: 2 additions & 2 deletions lib/envy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ def set_perms(files, perm: nil)
# rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity
def set_envs(yaml, prev_key = "", force:)
case yaml
when Hash
when ::Hash
yaml.each do |key, value|
env_key = "#{prev_key}_#{key.to_s.upcase}".sub(/\A_/, "")
set_envs(value, env_key, force: force)
end
when Array, Set
when ::Array, ::Set
yaml.each_with_index do |value, index|
env_key = "#{prev_key}_#{index}".sub(/\A_/, "")
set_envs(value, env_key, force: force)
Expand Down

0 comments on commit 4e3978b

Please sign in to comment.