rosa-abf/rosa-build

View on GitHub

Showing 182 of 210 total issues

Method rtruncate has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def rtruncate(length, options = {})
chars = self.dup.mb_chars
return self if chars.length <= length
options[:omission] ||= "..."
options[:separator] ||= '/'
Severity: Minor
Found in lib/ext/core/string.rb - About 25 mins to fix

Method publish_into_testing? has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def publish_into_testing?
return false unless record.new_core?
return false unless record.can_publish_into_testing?
create? || ( record.save_to_platform.main? && publish? )
end
Severity: Minor
Found in app/policies/build_list_policy.rb - About 25 mins to fix
Severity
Category
Status
Source
Language