nondev/spoon

View on GitHub
lib/spoon/lexer.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method keywords has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def keywords
      [
        :ifdef,
        :if,
        :else,
Severity: Minor
Found in lib/spoon/lexer.rb - About 1 hr to fix

    FIXME found
    Open

        # FIXME: Ignore parens in parser output (wait for new Parslet release)
    Severity: Minor
    Found in lib/spoon/lexer.rb by fixme

    Method Spoon::Lexer#keywords is defined at both lib/spoon/lexer.rb:6 and lib/spoon/lexer.rb:8.
    Open

        def keywords
    Severity: Minor
    Found in lib/spoon/lexer.rb by rubocop

    This cop checks for duplicated instance (or singleton) method definitions.

    Example:

    # bad
    
    def duplicated
      1
    end
    
    def duplicated
      2
    end

    Example:

    # bad
    
    def duplicated
      1
    end
    
    alias duplicated other_duplicated

    Example:

    # good
    
    def duplicated
      1
    end
    
    def other_duplicated
      2
    end

    There are no issues that match your filters.

    Category
    Status