katafrakt/hanami-shrine

View on GitHub

Showing 1 of 1 total issue

Method initialize has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        def initialize(name, attacher_class)
          class_eval <<-RUBY, __FILE__, __LINE__ + 1
            def self.prepended(base)
              base.send(:include, ::Hanami::Utils::ClassAttribute)
              base.send(:class_attribute, :_attachments)
Severity: Major
Found in lib/shrine/plugins/hanami.rb - About 2 hrs to fix
    Severity
    Category
    Status
    Source
    Language