gistflow/gistflow

View on GitHub
app/models/replaceable.rb

Summary

Maintainability
A
1 hr
Test Coverage

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

  def safe_replace
    # extract replaceable tags
    replaceable = {}
    REPLACEABLE_TAGS.each do |tag|
      @html.gsub!(%r{<#{tag}>.*?</#{tag}>}m) do |match|
Severity: Minor
Found in app/models/replaceable.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status