Skip to content

Commit

Permalink
Add .rubocop_todo.yml and fix rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nadjaheitmann committed Jan 6, 2025
1 parent 4fb57a9 commit 0315e1b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inherit_gem:
theforeman-rubocop:
- strictest.yml

AllCops:
TargetRubyVersion: 2.7

Layout/LineLength:
Enabled: false

Expand Down
Empty file added .rubocop_todo.yml
Empty file.
2 changes: 1 addition & 1 deletion hammer_cli_foreman_resource_quota.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'hammer_cli_foreman_resource_quota/version'

Expand Down
2 changes: 1 addition & 1 deletion lib/hammer_cli_foreman_resource_quota.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module HammerCLIForemanResourceQuota
require 'hammer_cli'
require 'hammer_cli_foreman'
require 'hammer_cli_foreman/host'
#require 'hammer_cli_foreman/hostgroup'
# require 'hammer_cli_foreman/hostgroup'

require 'hammer_cli_foreman_resource_quota/version'
require 'hammer_cli_foreman_resource_quota/host'
Expand Down
2 changes: 0 additions & 2 deletions lib/hammer_cli_foreman_resource_quota/resource_quota.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ class ShowUsergroupsCommand < ShowCommand
build_options
end


class ShowUsersCommand < ShowCommand
action :users
command_name 'show-users'
Expand All @@ -120,6 +119,5 @@ class UnresolvedResourcesCommand < HammerCLIForeman::Command
end

autoload_subcommands

end
end

0 comments on commit 0315e1b

Please sign in to comment.