Skip to content

Commit

Permalink
ignore exit cop for tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelglass committed Jan 2, 2020
1 parent e2f10cc commit f43b2a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 6 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ AllCops:
# before-filters like `find_event` cause this cop to not make so much sense
Naming/MemoizedInstanceVariableName:
Exclude:
- app/controllers/**/*
- app/controllers/**/*

# we allow exiting from rake tasks
Rails/Exit:
Exclude:
- lib/tasks/**/*
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,6 @@ Rails/Date:
Exclude:
- 'app/controllers/organizations_controller.rb'

# Offense count: 2
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
Rails/Exit:
Exclude:
- 'lib/**/*.rake'
- 'lib/tasks/support/rspec_rerunner.rb'

# Offense count: 17
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Expand Down

0 comments on commit f43b2a1

Please sign in to comment.