Skip to content

Commit

Permalink
rename show presenter spec and move new rspec cops to todo file
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed Oct 12, 2016
1 parent 476d86e commit 4d1b383
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 26 deletions.
28 changes: 2 additions & 26 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require: rubocop-rspec

inherit_from: .rubocop_todo.yml

Rails:
Enabled: true

Expand Down Expand Up @@ -108,36 +110,10 @@ RSpec/ExampleWording:
IgnoredWords:
- only

RSpec/FilePath:
Enabled: false

RSpec/DescribeClass:
Exclude:
- 'spec/abilities/**/*'
- 'spec/features/**/*'
- 'spec/views/**/*'
- 'spec/routing/**/*'
- 'spec/inputs/**/*'

RSpec/MultipleExpectations:
Enabled: false

RSpec/ExampleLength:
Enabled: false

RSpec/MessageExpectation:
Exclude:
- 'spec/jobs/iiif_ingest_job_spec.rb'

RSpec/NestedGroups:
Exclude:
- 'spec/models/iiif_resource_spec.rb'

RSpec/VerifiedDoubles:
Exclude:
- 'spec/presenters/rtl_presenter_spec.rb'

RSpec/SubjectStub:
Exclude:
- 'spec/workers/plum_event_handler_spec.rb'

46 changes: 46 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
require: rubocop-rspec

# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-10-12 17:55:52 -0500 using RuboCop version 0.43.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: 8
# Configuration parameters: Max.
RSpec/ExampleLength:
Exclude:
- 'spec/controllers/catalog_controller_spec.rb'
- 'spec/models/iiif_resource_spec.rb'
- 'spec/services/plum_event_processor_spec.rb'
- 'spec/workers/plum_event_handler_spec.rb'

# Offense count: 3
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: allow, expect
RSpec/MessageExpectation:
Exclude:
- 'spec/jobs/iiif_ingest_job_spec.rb'

# Offense count: 20
RSpec/MultipleExpectations:
Max: 4

# Offense count: 1
# Configuration parameters: MaxNesting.
RSpec/NestedGroups:
Exclude:
- 'spec/models/iiif_resource_spec.rb'

# Offense count: 2
RSpec/SubjectStub:
Exclude:
- 'spec/workers/plum_event_handler_spec.rb'

# Offense count: 3
# Configuration parameters: IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/presenters/rtl_show_presenter_spec.rb'
File renamed without changes.

0 comments on commit 4d1b383

Please sign in to comment.