lib/paperclip/file_command_content_type_detector.rb
Freeze mutable objects assigned to constants. Open
Open
SENSIBLE_DEFAULT = "application/octet-stream"
- 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
Line is too long. [82/80] Open
Open
# On BSDs, `file` doesn't give a result code of 1 if the file doesn't exist.
- Exclude checks