opus-codium/riemann-bacula

View on GitHub

Showing 3 of 3 total issues

Method enhance has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def enhance(data)
# If the message on stdin was trucated, the last item might not make
# sense.
data.delete(data.keys.last) if data.keys.last != 'Termination'
 
 
Severity: Minor
Found in lib/riemann/tools/bacula.rb - About 1 hr to fix

    Method run has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
    Open

    def run
    %i[job_name backup_level status].each do |name|
    raise("Parameter #{name} is required") unless opts[name]
    end
     
     
    Severity: Minor
    Found in lib/riemann/tools/bacula.rb - About 45 mins to fix

    Method parse has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    def parse(text)
    data = {}
    line_continuation = nil
     
    text.each_line do |line|
    Severity: Minor
    Found in lib/riemann/tools/bacula.rb - About 35 mins to fix
    Severity
    Category
    Status
    Source
    Language