Sha256: 55f985f857867a64c4bf046c0637b11f80560b34bfa4d39bee00889282333d92

Contents?: true

Size: 1.45 KB

Versions: 1

Compression:

Stored size: 1.45 KB

Contents

require: rubocop-rspec
inherit_from: .rubocop_todo.yml

AllCops:
  DisplayCopNames: true
  Include:
    - '**/Rakefile'
  Exclude:
    - 'vendor/**/*'
    - 'spec/internal/bin/*'
    - 'spec/internal/db/schema.rb'

Metrics/BlockLength:
  Exclude:
    - '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: rails

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

RSpec/FilePath:
  Enabled: false

RSpec/InstanceVariable:
  Enabled: false

RSpec/DescribedClass:
  Exclude:
    - spec/hydra/works/models/concerns/generic_file/characterization_spec.rb

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hydra-works-0.16.0 .rubocop.yml