steventwheeler/clli

View on GitHub
lib/clli/pattern.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Module has too many lines. [102/100]
Open

    module ClassMethods
      DEFAULT_PATTERN_OPTIONS = {
        strict: true,
        place_group: 'place',
        region_group: 'region',
Severity: Minor
Found in lib/clli/pattern.rb by rubocop

This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Class CLLI has 22 methods (exceeds 20 allowed). Consider refactoring.
Open

class CLLI
  ##
  # This module provides the various patterns used for parsing +CLLI+ strings.
  module Pattern
    ##
Severity: Minor
Found in lib/clli/pattern.rb - About 2 hrs to fix

    Freeze mutable objects assigned to constants.
    Open

          DEFAULT_PATTERN_OPTIONS = {
            strict: true,
            place_group: 'place',
            region_group: 'region',
            network_site_group: 'network_site',
    Severity: Minor
    Found in lib/clli/pattern.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

    There are no issues that match your filters.

    Category
    Status