ManageIQ/manageiq

View on GitHub
lib/container_orchestrator.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
85%

Use String#include? instead of a regex match with literal-only pattern.
Open

    raise unless /already exists/.match?(e.message)
Severity: Minor
Found in lib/container_orchestrator.rb by rubocop

Use String#include? instead of a regex match with literal-only pattern.
Open

    raise unless /not found/.match?(e.message)
Severity: Minor
Found in lib/container_orchestrator.rb by rubocop

Use String#include? instead of a regex match with literal-only pattern.
Open

    raise unless /not found/.match?(e.message)
Severity: Minor
Found in lib/container_orchestrator.rb by rubocop

Use String#include? instead of a regex match with literal-only pattern.
Open

    raise unless /already exists/.match?(e.message)
Severity: Minor
Found in lib/container_orchestrator.rb by rubocop

Use String#include? instead of a regex match with literal-only pattern.
Open

    raise unless /already exists/.match?(e.message)
Severity: Minor
Found in lib/container_orchestrator.rb by rubocop

Use String#include? instead of a regex match with literal-only pattern.
Open

    raise unless /not found/.match?(e.message)
Severity: Minor
Found in lib/container_orchestrator.rb by rubocop

There are no issues that match your filters.

Category
Status