Showing 182 of 210 total issues
Method rtruncate
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def rtruncate(length, options = {}) chars = self.dup.mb_chars return self if chars.length <= length options[:omission] ||= "..." options[:separator] ||= '/'
- Read upRead up
Method publish_into_testing?
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
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
- Read upRead up