Apipie/apipie-rails

View on GitHub
lib/apipie/method_description.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Class MethodDescription has 23 methods (exceeds 20 allowed). Consider refactoring.
Open

  class MethodDescription
    attr_reader :full_description, :method, :resource, :apis, :examples, :see, :formats, :headers, :show
    attr_accessor :metadata

    def initialize(method, resource, dsl_data)
Severity: Minor
Found in lib/apipie/method_description.rb - About 2 hrs to fix

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

        def initialize(method, resource, dsl_data)
          @method = method.to_s
          @resource = resource
          @from_concern = dsl_data[:from_concern]
          @apis = ApisService.new(resource, method, dsl_data).call
    Severity: Minor
    Found in lib/apipie/method_description.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status