ManageIQ/manageiq-providers-foreman

View on GitHub

Showing 5 of 5 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

def configuration_organizations
collector.organizations.each do |org|
parent_ref = derive_parent_ref(org, collector.organizations)
parent = persister.configuration_organizations.lazy_find(parent_ref) if parent_ref
 
 
app/models/manageiq/providers/foreman/inventory/parser/foreman.rb on lines 146..157

Similar blocks of code found in 2 locations. Consider refactoring.
Open

def configuration_locations
collector.locations.each do |location|
parent_ref = derive_parent_ref(location, collector.locations)
parent = persister.configuration_locations.lazy_find(parent_ref) if parent_ref
 
 
app/models/manageiq/providers/foreman/inventory/parser/foreman.rb on lines 161..172

private (on line 166) does not make singleton methods private. Use private_class_method or private inside a class << self block instead.
Open

def self.refresh_ems(provider_ids)

Do not suppress exceptions.
Open

rescue LoadError
Severity: Minor
Found in Rakefile by rubocop

metadata['rubygems_mfa_required'] must be set to 'true'.
Open

Gem::Specification.new do |spec|
spec.name = "manageiq-providers-foreman"
spec.version = ManageIQ::Providers::Foreman::VERSION
spec.authors = ["ManageIQ Authors"]
 
 
Severity: Minor
Found in manageiq-providers-foreman.gemspec by rubocop
Severity
Category
Status
Source
Language