Skip to content

Commit

Permalink
robocop: fix offences
Browse files Browse the repository at this point in the history
* by disabling alert
* most offensive code was from virtualbox plugin
  • Loading branch information
naveenrajm7 committed Jul 27, 2024
1 parent c0a0c60 commit 8cfb144
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/vagrant_utm/action/forward_ports.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def call(env)
@app.call(env)
end

def forward_ports
def forward_ports # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
ports = []

interfaces = @env[:machine].provider.driver.read_network_interfaces
Expand Down
4 changes: 2 additions & 2 deletions lib/vagrant_utm/driver/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def raw(*command, &block)
# By default set the LANG to C. If the host has the locale command
# available, check installed locales and verify C is included (or
# use C variant if available).
def env_lang
def env_lang # rubocop:disable Metrics/AbcSize,Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
# If already set, just return immediately
return @env_lang if @env_lang

Expand Down Expand Up @@ -293,7 +293,7 @@ def env_lang
if lang
@logger.debug("valid variation found for LANG value: #{lang}")
@env_lang[:LANG] = lang
@@env_lang = @env_lang
@@env_lang = @env_lang # rubocop:disable Style/ClassVars
end

@logger.debug("LANG value set: #{@env_lang[:LANG].inspect}")
Expand Down

0 comments on commit 8cfb144

Please sign in to comment.