sul-dlss/exhibits

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2021-04-09 01:13:31 UTC using RuboCop version 1.12.1.
# 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: 4
# Cop supports --auto-correct.
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
# AllowedMethods: alias_method, public, protected, private
Layout/EmptyLinesAroundAttributeAccessor:
  Exclude:
    - 'app/models/canvas.rb'
    - 'app/models/exhibit_finder.rb'
    - 'app/models/full_text_parser.rb'
    - 'lib/traject/canvas_reader.rb'

# Offense count: 1
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
  Exclude:
    - 'Rakefile'

# Offense count: 1
Lint/ToEnumArguments:
  Exclude:
    - 'spec/support/etl_helper.rb'

# Offense count: 9
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
  Max: 42

# Offense count: 3
# Configuration parameters: IgnoredMethods.
Metrics/CyclomaticComplexity:
  Max: 9

# Offense count: 12
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
Metrics/MethodLength:
  Max: 30

# Offense count: 3
# Configuration parameters: IgnoredMethods.
Metrics/PerceivedComplexity:
  Max: 10

# Offense count: 2
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
  Exclude:
    - 'app/models/user.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect.
Performance/StringInclude:
  Exclude:
    - 'app/models/full_text_parser.rb'

# Offense count: 10
RSpec/BeforeAfterAll:
  Exclude:
    - 'spec/features/bibliography_display_manuscript_spec.rb'
    - 'spec/features/bibliography_resource_integration_spec.rb'
    - 'spec/features/canvas_display_spec.rb'
    - 'spec/features/canvas_resource_integration_spec.rb'
    - 'spec/features/manuscript_display_bibliography_spec.rb'
    - 'spec/models/search_builder_spec.rb'

# Offense count: 4
RSpec/ExpectInHook:
  Exclude:
    - 'spec/helpers/catalog_helper_spec.rb'
    - 'spec/views/catalog/_exhibits_document_header_default.html.erb_spec.rb'
    - 'spec/views/viewers/edit.html.erb_spec.rb'

# Offense count: 123
RSpec/MultipleExpectations:
  Max: 6

# Offense count: 1
RSpec/NestedGroups:
  Max: 4

# Offense count: 14
RSpec/StubbedMock:
  Exclude:
    - 'spec/helpers/application_helper_spec.rb'
    - 'spec/helpers/catalog_helper_spec.rb'
    - 'spec/helpers/search_across_helper_spec.rb'
    - 'spec/models/spotlight/resources/iiif_manifest_spec.rb'
    - 'spec/views/catalog/_exhibits_document_header_default.html.erb_spec.rb'
    - 'spec/views/catalog/_metadata_button_default.html.erb_spec.rb'
    - 'spec/views/viewers/edit.html.erb_spec.rb'

# Offense count: 1
RSpec/SubjectStub:
  Exclude:
    - 'spec/models/dor_harvester_spec.rb'

# Offense count: 6
# Cop supports --auto-correct.
Rails/ContentTag:
  Exclude:
    - 'app/helpers/application_helper.rb'
    - 'app/helpers/catalog_helper.rb'
    - 'app/helpers/search_across_helper.rb'

# Offense count: 2
# Configuration parameters: Include.
# Include: app/helpers/**/*.rb
Rails/HelperInstanceVariable:
  Exclude:
    - 'app/helpers/search_across_helper.rb'

# Offense count: 2
# Cop supports --auto-correct.
Rails/IndexWith:
  Exclude:
    - 'app/controllers/catalog_controller.rb'

# Offense count: 3
Rails/OutputSafety:
  Exclude:
    - 'app/controllers/concerns/search_across_blacklight_overrides.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/IfUnlessModifier:
  Exclude:
    - 'lib/traject/macros/general.rb'

# Offense count: 2
# Cop supports --auto-correct.
Style/KeywordParametersOrder:
  Exclude:
    - 'app/models/exhibit_bot.rb'

# Offense count: 7
Style/MixinUsage:
  Exclude:
    - 'lib/traject/bibtex_config.rb'
    - 'lib/traject/canvas_config.rb'
    - 'lib/traject/dor_config.rb'
    - 'spec/features/viewers_spec.rb'

# Offense count: 1
Style/MultilineBlockChain:
  Exclude:
    - 'lib/tasks/spotlight.rake'

# Offense count: 1
# Cop supports --auto-correct.
Style/RedundantAssignment:
  Exclude:
    - 'app/controllers/concerns/search_across_blacklight_overrides.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/RedundantBegin:
  Exclude:
    - 'app/models/purl.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/RedundantRegexpCharacterClass:
  Exclude:
    - 'lib/tasks/spotlight.rake'

# Offense count: 2
# Cop supports --auto-correct.
Style/RedundantRegexpEscape:
  Exclude:
    - 'lib/tasks/spotlight.rake'
    - 'lib/traject/dor_config.rb'