cedlemo/topinambour

View on GitHub
tests/test_files_ref.rb

Summary

Maintainability
A
0 mins
Test Coverage

Freeze mutable objects assigned to constants.
Open

  COMMENTS_CSS = "#{PATH}/file3.css"
Severity: Minor
Found in tests/test_files_ref.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

  MULTIPLE_PROP_CSS = "#{PATH}/file5.css"
Severity: Minor
Found in tests/test_files_ref.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

  UNIVERSAL_SEL_MOD_CSS = "#{PATH}/file4_mod.css"
Severity: Minor
Found in tests/test_files_ref.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

  MULTIPLE_PROP_MOD_CSS = "#{PATH}/file5_mod.css"
Severity: Minor
Found in tests/test_files_ref.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

  SIMPLE_SCSS = "#{PATH}/file1.scss"
Severity: Minor
Found in tests/test_files_ref.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

  SIMPLE_CSS = "#{PATH}/file1.css"
Severity: Minor
Found in tests/test_files_ref.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

  UNIVERSAL_SEL_APPEND_CSS = "#{PATH}/file4_append_prop.css"
Severity: Minor
Found in tests/test_files_ref.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

  INHERIT_CSS = "#{PATH}/file2.css"
Severity: Minor
Found in tests/test_files_ref.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

  SIMPLE_SASS = "#{PATH}/file1.sass"
Severity: Minor
Found in tests/test_files_ref.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

  UNIVERSAL_SEL_CSS = "#{PATH}/file4.css"
Severity: Minor
Found in tests/test_files_ref.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