Sha256: 80b8954ecc4655c5916744b9aa65d1114a49a8994a4c63130168f6eda8050cbb

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

require: rubocop-rspec
inherit_from: .rubocop_todo.yml

AllCops:
  TargetRubyVersion: 2.3
  DisplayCopNames: true
  Include:
    - '**/Rakefile'
  Exclude:
    - 'vendor/**/*'

Metrics/BlockLength:
  Exclude:
    - 'lib/hydra/works/characterization/fits_document.rb'
    - 'spec/**/*.rb'

# By default RSpec/MessageSpies has the following:
#   Prefer have_received for setting message expectations. Setup form as a spy using allow or instance_spy.
# The default assumes EnforcedStyle is 'have_received'. Most of our specs are 'receive'
RSpec/MessageSpies:
  Enabled: true
  EnforcedStyle: receive

Metrics/LineLength:
  Enabled: false

Metrics/ClassLength:
  Exclude:
    - lib/hydra/works/characterization/fits_document.rb

Style/CollectionMethods:
  PreferredMethods:
    collect: 'map'
    collect!: 'map!'
    inject: 'reduce'
    detect: 'find'
    find_all: 'select'

Style/ClassAndModuleChildren:
  Enabled: false

Style/Documentation:
  Enabled: false

Style/StringLiterals:
  Enabled: false

Style/SignalException:
  Enabled: false

Style/IndentationConsistency:
  EnforcedStyle: indented_internal_methods

RSpec/ExampleWording:
  CustomTransform:
    be: is
    have: has
    not: does not
    NOT: does NOT
  IgnoredWords:
    - only

RSpec/FilePath:
  Enabled: false

RSpec/InstanceVariable:
  Enabled: false

RSpec/AnyInstance:
  Exclude:
    - spec/hydra/works/services/persist_derivatives_spec.rb

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hydra-works-2.2.0 .rubocop.yml
hydra-works-2.1.0 .rubocop.yml