Showing 9 of 9 total issues
Consider simplifying this complex logical expression. Open
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 &&
Freeze mutable objects assigned to constants. Open
Open
BACKGROUND_INCLUDED_ROW = '#4a4a4a'
- 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
Freeze mutable objects assigned to constants. Open
Open
WRONG_HEADERS_MSG = 'Wrong headers'
- 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
Freeze mutable objects assigned to constants. Open
Open
WRONG_URL_MSG = 'Wrong url'
- 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
unexpected token error
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Open
string.gsub!('=>', ':')&.gsub!(/(“|”)/, '"')
- Exclude checks
Freeze mutable objects assigned to constants. Open
Open
DEFAULT_METHOD = 'GET'
- 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
Freeze mutable objects assigned to constants. Open
Open
ARROW = '-> '
- 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
Freeze mutable objects assigned to constants. Open
Open
NEW_LINE_SYMBOL = "\n"
- 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
Freeze mutable objects assigned to constants. Open
Open
VERSION = '0.2.0'
- 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