sul-dlss/harvestdor-indexer

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-12-17 10:29:26 -0600 using RuboCop version 0.77.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
Lint/DuplicateMethods:
  Exclude:
    - 'lib/harvestdor/indexer.rb'

# Offense count: 5
Lint/UselessAssignment:
  Exclude:
    - 'lib/harvestdor/indexer.rb'
    - 'spec/unit/harvestdor-indexer_spec.rb'

# Offense count: 3
Metrics/AbcSize:
  Max: 20

# Offense count: 7
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
  Max: 177

# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ClassLength:
  Max: 117

# Offense count: 4
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
Naming/FileName:
  Exclude:
    - 'lib/harvestdor-indexer.rb'
    - 'spec/unit/harvestdor-indexer-resource_spec.rb'
    - 'spec/unit/harvestdor-indexer-solr_spec.rb'
    - 'spec/unit/harvestdor-indexer_spec.rb'

# Offense count: 1
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
  Exclude:
    - 'spec/unit/harvestdor-indexer-resource_spec.rb'

# Offense count: 1
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to, by, on, in, at, ip, db, os
Naming/MethodParameterName:
  Exclude:
    - 'lib/harvestdor/indexer.rb'

# Offense count: 2
RSpec/AnyInstance:
  Exclude:
    - 'spec/unit/harvestdor-indexer_spec.rb'

# Offense count: 5
RSpec/BeforeAfterAll:
  Exclude:
    - 'spec/spec_helper.rb'
    - 'spec/rails_helper.rb'
    - 'spec/support/**/*.rb'
    - 'spec/unit/harvestdor-indexer-resource_spec.rb'
    - 'spec/unit/harvestdor-indexer_spec.rb'

# Offense count: 9
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
  Exclude:
    - 'spec/unit/harvestdor-indexer-resource_spec.rb'
    - 'spec/unit/harvestdor-indexer_spec.rb'

# Offense count: 13
# Configuration parameters: Max.
RSpec/ExampleLength:
  Exclude:
    - 'spec/unit/harvestdor-indexer-resource_spec.rb'
    - 'spec/unit/harvestdor-indexer_spec.rb'

# Offense count: 3
# Configuration parameters: CustomTransform, IgnoreMethods.
RSpec/FilePath:
  Exclude:
    - 'spec/unit/harvestdor-indexer-resource_spec.rb'
    - 'spec/unit/harvestdor-indexer-solr_spec.rb'
    - 'spec/unit/harvestdor-indexer_spec.rb'

# Offense count: 88
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
  Exclude:
    - 'spec/unit/harvestdor-indexer-resource_spec.rb'
    - 'spec/unit/harvestdor-indexer_spec.rb'

# Offense count: 20
# Configuration parameters: .
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
  EnforcedStyle: receive

# Offense count: 16
# Configuration parameters: AggregateFailuresByDefault.
RSpec/MultipleExpectations:
  Max: 5

# Offense count: 26
# Configuration parameters: IgnoreSharedExamples.
RSpec/NamedSubject:
  Exclude:
    - 'spec/unit/harvestdor-indexer-resource_spec.rb'
    - 'spec/unit/harvestdor/indexer/metrics_spec.rb'
    - 'spec/unit/harvestdor/indexer/purl_fetcher_spec.rb'

# Offense count: 2
RSpec/RepeatedExample:
  Exclude:
    - 'spec/unit/harvestdor-indexer-resource_spec.rb'

# Offense count: 6
RSpec/SubjectStub:
  Exclude:
    - 'spec/unit/harvestdor-indexer-resource_spec.rb'

# Offense count: 1
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
  Exclude:
    - 'spec/unit/harvestdor-indexer-solr_spec.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: braces, no_braces, context_dependent
Style/BracesAroundHashParameters:
  Exclude:
    - 'spec/unit/harvestdor-indexer_spec.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
  Exclude:
    - 'lib/harvestdor/indexer/metrics.rb'
    - 'lib/harvestdor/indexer/resource.rb'
    - 'lib/harvestdor/indexer/solr.rb'

# Offense count: 5
Style/CommentedKeyword:
  Exclude:
    - 'lib/harvestdor/indexer.rb'
    - 'spec/unit/harvestdor-indexer_spec.rb'

# Offense count: 2
Style/Documentation:
  Exclude:
    - 'spec/**/*'
    - 'test/**/*'
    - 'lib/harvestdor/indexer/resource.rb'
    - 'lib/harvestdor/indexer/solr.rb'

# Offense count: 1
Style/DoubleNegation:
  Exclude:
    - 'lib/harvestdor/indexer/resource.rb'

# Offense count: 101
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
  Max: 207