rosa-abf/rosa-build

View on GitHub
app/controllers/application_controller.rb

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Method get_owner has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
Open

def get_owner
if self.class.method_defined? :parent
if parent and (parent.is_a? User or parent.is_a? Group)
return parent
else
Severity: Minor
Found in app/controllers/application_controller.rb - About 1 hr to fix
Category
Status