Agilefreaks/weak_swagger_parameters

View on GitHub

Showing 4 of 4 total issues

Method has too many lines. [18/10]
Open

      def apply_docs(parent_node)
        name = @name
        description = @description
        item_type = @item_type
        definitions = child_definitions

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

      def initialize(http_method, action, path, summary, &block)
Severity: Minor
Found in lib/weak_swagger_parameters/definitions/api.rb - About 35 mins to fix

Method api has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

      def api(http_method, action, path, description, &block)
Severity: Minor
Found in lib/weak_swagger_parameters/controller.rb - About 35 mins to fix

Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

      def initialize(location, type, name, description, options = {})
Severity: Minor
Found in lib/weak_swagger_parameters/definitions/parameter.rb - About 35 mins to fix
Severity
Category
Status
Source
Language