nicholalexander/clarification

View on GitHub

Showing 2 of 4 total issues

Method build_concept_objects has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

def build_concept_objects
begin
concepts = @response_json.fetch("outputs").fetch(0).fetch("data", nil).fetch("concepts", nil)
rescue StandardError => e
Severity: Minor
Found in lib/clarification/objectifier.rb - About 1 hr to fix

Method build_concept_objects has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def build_concept_objects
begin
concepts = @response_json.fetch("outputs").fetch(0).fetch("data", nil).fetch("concepts", nil)
rescue StandardError => e
Severity: Minor
Found in lib/clarification/objectifier.rb - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language