Skip to content

Commit

Permalink
rubocop: autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak authored and ekohl committed Jan 8, 2024
1 parent c823ab5 commit 8b2204c
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 5 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

inherit_from: .rubocop_todo.yml
inherit_gem:
voxpupuli-test: rubocop.yml
23 changes: 23 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-01-08 18:55:36 UTC using RuboCop version 1.50.2.
# 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
# versions of RuboCop, may require this file to be generated again.

# Offense count: 12
# Configuration parameters: Max.
RSpec/IndexedLet:
Exclude:
- 'spec/acceptance/rvm_system_spec.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/EnvHome:
Exclude:
- 'lib/puppet/provider/rvm_alias/alias.rb'
- 'lib/puppet/provider/rvm_gem/gem.rb'
- 'lib/puppet/provider/rvm_gemset/gemset.rb'
- 'lib/puppet/provider/rvm_system_ruby/rvm_system_ruby.rb'
- 'lib/puppet/provider/rvm_wrapper/wrapper.rb'
2 changes: 1 addition & 1 deletion lib/puppet/provider/rvm_alias/alias.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
desc 'RVM alias support.'

has_command(:rvmcmd, '/usr/local/rvm/bin/rvm') do
environment HOME: ENV['HOME']
environment HOME: ENV.fetch('HOME', nil)
end

def target_ruby
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/rvm_gem/gem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

has_feature :versionable
has_command(:rvmcmd, '/usr/local/rvm/bin/rvm') do
environment HOME: ENV['HOME']
environment HOME: ENV.fetch('HOME', nil)
end

def ruby_version
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/rvm_gemset/gemset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
desc 'RVM gemset support.'

has_command(:rvmcmd, '/usr/local/rvm/bin/rvm') do
environment HOME: ENV['HOME']
environment HOME: ENV.fetch('HOME', nil)
end

def ruby_version
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/rvm_system_ruby/rvm_system_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
desc 'Ruby RVM support.'

has_command(:rvmcmd, '/usr/local/rvm/bin/rvm') do
environment HOME: ENV['HOME']
environment HOME: ENV.fetch('HOME', nil)
end

def create
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/rvm_wrapper/wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
desc 'RVM wrapper support.'

has_command(:rvmcmd, '/usr/local/rvm/bin/rvm') do
environment HOME: ENV['HOME']
environment HOME: ENV.fetch('HOME', nil)
end

def target_ruby
Expand Down

0 comments on commit 8b2204c

Please sign in to comment.