danmayer/coverband

View on GitHub
lib/coverband/adapters/hash_redis_store.rb

Summary

Maintainability
A
C
+7 hrs
Test Coverage

File hash_redis_store.rb has 304 lines of code (exceeds 250 allowed). Consider refactoring.
New

require "securerandom"

module Coverband
  module Adapters
    class HashRedisStore < Base
Severity: Minor
Found in lib/coverband/adapters/hash_redis_store.rb - About 3 hrs to fix

    Class HashRedisStore has 26 methods (exceeds 20 allowed). Consider refactoring.
    New

        class HashRedisStore < Base
          class GetCoverageNullCacheStore
            def self.clear!(*_local_types)
            end
    
    
    Severity: Minor
    Found in lib/coverband/adapters/hash_redis_store.rb - About 3 hrs to fix

      Method coverage_for_types has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      New

            def coverage_for_types(_types, opts = {})
              page_size = opts[:page_size] || 250
              hash_data = {}
      
              runtime_file_set = files_set(Coverband::RUNTIME_TYPE)
      Severity: Minor
      Found in lib/coverband/adapters/hash_redis_store.rb - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status