CartoDB/cartodb20

View on GitHub
services/importer/lib/importer/string_sanitizer.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Method normalize has 115 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def normalize(string, transliterate_cyrillic: false)
        return '' if string.nil? || string.empty?

        n = string.force_encoding("UTF-8")
        n.gsub!(/[àáâãäåāă]/,    'a')
Severity: Major
Found in services/importer/lib/importer/string_sanitizer.rb - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status