ManageIQ/manageiq-providers-kubernetes

View on GitHub

Showing 31 of 31 total issues

Call super to initialize state of the parent class.
Open

def initialize
@data = {}
@data_index = {}
end

Use delete instead of gsub.
Open

:identity_system => node_info.systemUUID&.gsub("\u0000", ""),

Empty class detected.
Open

class ManageIQ::Providers::Kubernetes::ContainerManager::Scanning
end

Use filter_map instead.
Open

@endpoints.map { |ep| name_and_namespace(ep) }.compact

Call super to initialize state of the parent class.
Open

def initialize
@active_container_scans_by_zone_and_ems = nil
end

Extract this regexp into a constant, memoize it, or append an /o option to its options.
Open

docker_pullable_re = %r{
\A
(?<protocol>#{ContainerImage::DOCKER_PULLABLE_PREFIX})?
(?:(?:
(?<host>([^\.:/]+\.)+[^\.:/]+)|

Use filter_map instead.
Open

'ManageIQ::Providers::Vmware::InfraManager::Vm'].map(&:safe_constantize).compact.map(&:name)

Redundant safe navigation detected.
Open

!!prometheus_connect(hostname, port, options)&.query(:query => "ALL")&.kind_of?(Hash)

Use filter_map instead.
Open

objects_to_collect.map { |name, namespace| safe_get(kind, name, namespace) }.compact

Do not suppress exceptions.
Open

rescue LoadError
Severity: Minor
Found in Rakefile by rubocop

Extract this regexp into a constant, memoize it, or append an /o option to its options.
Open

docker_daemon_re = %r{
\A
(?<protocol>#{ContainerImage::DOCKER_IMAGE_PREFIX})?
(?<digest>(sha256:)?.+)?
\z
Severity
Category
Status
Source
Language