noesya/osuny

View on GitHub
app/services/importers/cleaner.rb

Summary

Maintainability
A
1 hr
Test Coverage
B
86%

Method clean_html has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def self.clean_html(html)
      # invalid byte sequence in UTF-8
      # https://stackoverflow.com/questions/32826781/invalid-byte-sequence-in-utf-8-when-sanitizing-wordpress-export-content
      html = html.force_encoding('UTF-8').scrub
      # Relaxed config : https://github.com/rgrove/sanitize/blob/main/lib/sanitize/config/relaxed.rb
Severity: Minor
Found in app/services/importers/cleaner.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status