Showing 4 of 4 total issues
Class IrcTextAttribute
has 22 methods (exceeds 20 allowed). Consider refactoring. Open
class IrcTextAttribute # @return [Boolean] ε€ͺεγ«γγγ attr_reader :bold # @return [Boolean] δΈη·γεΌγγ attr_reader :underline
Method span_tag
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
def span_tag(text) classes = [ @bold ? 'mirc-bold' : nil, @italic ? 'mirc-italic' : nil, @underline ? 'mirc-underline' : nil,
- Read upRead up
Cyclomatic complexity for == is too high. [10/6] Open
def ==(other) other.bold == @bold && other.underline == @underline && other.italic == @italic && other.strikethrough == @strikethrough &&
- Read upRead up
- Exclude checks
Cyclomatic complexity for span_tag is too high. [10/6] Open
def span_tag(text) classes = [ @bold ? 'mirc-bold' : nil, @italic ? 'mirc-italic' : nil, @underline ? 'mirc-underline' : nil,
- Read upRead up
- Exclude checks