Showing 31 of 31 total issues
Call super
to initialize state of the parent class. Open
def initialize @data = {} @data_index = {} end
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Use delete
instead of gsub
. Open
:identity_system => node_info.systemUUID&.gsub("\u0000", ""),
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Empty class detected. Open
class ManageIQ::Providers::Kubernetes::ContainerManager::Scanningend
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Use filter_map
instead. Open
@endpoints.map { |ep| name_and_namespace(ep) }.compact
- Create a ticketCreate a ticket
- Exclude checks
Call super
to initialize state of the parent class. Open
def initialize @active_container_scans_by_zone_and_ems = nil end
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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>([^\.:/]+\.)+[^\.:/]+)|
- Create a ticketCreate a ticket
- Exclude checks
Use filter_map
instead. Open
'ManageIQ::Providers::Vmware::InfraManager::Vm'].map(&:safe_constantize).compact.map(&:name)
- Create a ticketCreate a ticket
- Exclude checks
Redundant safe navigation detected. Open
!!prometheus_connect(hostname, port, options)&.query(:query => "ALL")&.kind_of?(Hash)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Use filter_map
instead. Open
objects_to_collect.map { |name, namespace| safe_get(kind, name, namespace) }.compact
- Create a ticketCreate a ticket
- Exclude checks
Do not suppress exceptions. Open
rescue LoadError
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
- Create a ticketCreate a ticket
- Exclude checks