Neodelf/lecter

View on GitHub

Showing 9 of 9 total issues

Consider simplifying this complex logical expression.
Open

        if trace_point.path&.exclude?('/app/views') &&
           trace_point.path&.exclude?('/app/helpers') &&
           trace_point.path&.include?(Rails.root.to_s) &&
           trace_point.method_id != :method_added &&
           trace_point.defined_class != Module &&
Severity: Critical
Found in lib/lecter/trace_point.rb - About 1 hr to fix

    Freeze mutable objects assigned to constants.
    Open

        BACKGROUND_INCLUDED_ROW = '#4a4a4a'
    Severity: Minor
    Found in lib/lecter/html_row.rb by rubocop

    This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

    Example:

    # bad
    CONST = [1, 2, 3]
    
    # good
    CONST = [1, 2, 3].freeze

    Freeze mutable objects assigned to constants.
    Open

        WRONG_HEADERS_MSG = 'Wrong headers'
    Severity: Minor
    Found in lib/lecter/formatter_headers.rb by rubocop

    This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

    Example:

    # bad
    CONST = [1, 2, 3]
    
    # good
    CONST = [1, 2, 3].freeze

    Freeze mutable objects assigned to constants.
    Open

        WRONG_URL_MSG = 'Wrong url'
    Severity: Minor
    Found in lib/lecter/requester.rb by rubocop

    This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

    Example:

    # bad
    CONST = [1, 2, 3]
    
    # good
    CONST = [1, 2, 3].freeze

    unexpected token error (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
    Open

          string.gsub!('=>', ':')&.gsub!(/(“|”)/, '"')
    Severity: Minor
    Found in lib/lecter/formatter_payload.rb by rubocop

    Freeze mutable objects assigned to constants.
    Open

      DEFAULT_METHOD = 'GET'
    Severity: Minor
    Found in lib/lecter.rb by rubocop

    This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

    Example:

    # bad
    CONST = [1, 2, 3]
    
    # good
    CONST = [1, 2, 3].freeze

    Freeze mutable objects assigned to constants.
    Open

        ARROW = '-> '
    Severity: Minor
    Found in lib/lecter/html_row.rb by rubocop

    This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

    Example:

    # bad
    CONST = [1, 2, 3]
    
    # good
    CONST = [1, 2, 3].freeze

    Freeze mutable objects assigned to constants.
    Open

        NEW_LINE_SYMBOL = "\n"
    Severity: Minor
    Found in lib/lecter/html_row.rb by rubocop

    This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

    Example:

    # bad
    CONST = [1, 2, 3]
    
    # good
    CONST = [1, 2, 3].freeze

    Freeze mutable objects assigned to constants.
    Open

      VERSION = '0.2.0'
    Severity: Minor
    Found in lib/lecter/version.rb by rubocop

    This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

    Example:

    # bad
    CONST = [1, 2, 3]
    
    # good
    CONST = [1, 2, 3].freeze
    Severity
    Category
    Status
    Source
    Language