Skip to content

Commit

Permalink
[ci] Enable Rails/Exit Rubocop cop
Browse files Browse the repository at this point in the history
  • Loading branch information
Ana06 committed Mar 7, 2017
1 parent 5517214 commit 3e17c6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 6 additions & 0 deletions src/api/.rubocop.yml
Expand Up @@ -222,6 +222,12 @@ Performance/StringReplacement:

Rails:
Enabled: true

# Enforces that 'exit' calls are not used.
Rails/Exit:
Exclude:
- 'lib/memory_dumper.rb'
- 'config/deploy.rb'

# Use `find_by` instead `where.first` and `where.take`
Rails/FindBy:
Expand Down
10 changes: 0 additions & 10 deletions src/api/.rubocop_todo.yml
Expand Up @@ -133,16 +133,6 @@ Performance/CompareWithBlock:
Rails/DynamicFindBy:
Enabled: false

# Offense count: 4
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
Rails/Exit:
Exclude:
- 'lib/**/*.rake'
- 'app/jobs/consistency_check.rb'
- 'config/deploy.rb'
- 'lib/memory_dumper.rb'

# Offense count: 126
Rails/FilePath:
Enabled: false
Expand Down

0 comments on commit 3e17c6b

Please sign in to comment.