arsduo/koala

View on GitHub
lib/koala/http_service/uploadable_io.rb

Summary

Maintainability
A
1 hr
Test Coverage
B
83%

Method use_simple_detection has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def use_simple_detection(filename)
        # very rudimentary extension analysis for images
        # first, get the downcased extension, or an empty string if it doesn't exist
        extension = ((filename.match(/\.([a-zA-Z0-9]+)$/) || [])[1] || "").downcase
        case extension
Severity: Minor
Found in lib/koala/http_service/uploadable_io.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status