rosa-abf/rosa-build

View on GitHub
app/services/advisory_service/create.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Showing 2 of 2 total issues

Method parse_projects_platforms has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
Open

def self.parse_projects_platforms(advisory, pr)
pr ||= {}
if !pr.is_a?(Hash)
advisory.errors.add(:base, "Projects is not a hash")
return {}
Severity: Minor
Found in app/services/advisory_service/create.rb - About 2 hrs to fix

Method parse_projects_platforms has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def self.parse_projects_platforms(advisory, pr)
pr ||= {}
if !pr.is_a?(Hash)
advisory.errors.add(:base, "Projects is not a hash")
return {}
Severity: Minor
Found in app/services/advisory_service/create.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status