thoughtbot/paperclip

View on GitHub
lib/paperclip/file_command_content_type_detector.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [82/80]
Open

      # On BSDs, `file` doesn't give a result code of 1 if the file doesn't exist.

Freeze mutable objects assigned to constants.
Open

    SENSIBLE_DEFAULT = "application/octet-stream"

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