maxdemarzi/neography

View on GitHub
lib/neography/rest/batch.rb

Summary

Maintainability
D
1 day
Test Coverage

Class Rest has 53 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Rest
    module Batch
      include Neography::Rest::Helpers
    
      def batch(*args)
Severity: Major
Found in lib/neography/rest/batch.rb - About 7 hrs to fix

    File batch.rb has 331 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    module Neography
      class Rest
        module Batch
          include Neography::Rest::Helpers
        
    Severity: Minor
    Found in lib/neography/rest/batch.rb - About 3 hrs to fix

      Method batch_create_unique_relationship has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

            def batch_create_unique_relationship(index, key, value, type, from, to, props = nil)
      Severity: Major
      Found in lib/neography/rest/batch.rb - About 50 mins to fix

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

              def remove_from_index_path(klass, index, key_or_id, value_or_id = nil, id = nil)
        Severity: Minor
        Found in lib/neography/rest/batch.rb - About 35 mins to fix

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

                def batch_add_node_to_index(index, key, value, id, unique = false)
          Severity: Minor
          Found in lib/neography/rest/batch.rb - About 35 mins to fix

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

                  def batch_find_geometries_in_bbox(layer, minx, maxx, miny, maxy)
            Severity: Minor
            Found in lib/neography/rest/batch.rb - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status