lib/clli/pattern.rb
Module has too many lines. [102/100] Open
Open
module ClassMethods
DEFAULT_PATTERN_OPTIONS = {
strict: true,
place_group: 'place',
region_group: 'region',
- Read upRead up
- Exclude checks
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
Open
class CLLI
##
# This module provides the various patterns used for parsing +CLLI+ strings.
module Pattern
##
Freeze mutable objects assigned to constants. Open
Open
DEFAULT_PATTERN_OPTIONS = {
strict: true,
place_group: 'place',
region_group: 'region',
network_site_group: 'network_site',
- Read upRead up
- Exclude checks
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