rosa-abf/rosa-build

View on GitHub
app/models/concerns/feed/git.rb

Summary

Maintainability
B
6 hrs
Test Coverage

Showing 2 of 2 total issues

Method create_notifications has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
Open

def self.create_notifications(record)
 
case record.class.to_s
when 'GitHook'
return unless record.project
Severity: Minor
Found in app/models/concerns/feed/git.rb - About 4 hrs to fix

Method create_notifications has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def self.create_notifications(record)
 
case record.class.to_s
when 'GitHook'
return unless record.project
Severity: Major
Found in app/models/concerns/feed/git.rb - About 2 hrs to fix
    Category
    Status