-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
45 lines (36 loc) · 995 Bytes
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
inherit_from: .rubocop_todo.yml
require:
- rubocop-rails
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'node_modules/**/*'
- 'db/**/*'
- 'tmp/**/*'
- 'lib/generators/copy_table_migration/templates/migration.rb'
Metrics:
Enabled: false
Style/BlockDelimiters:
Exclude:
- 'spec/models/story_spec.rb'
# Configuration parameters: EnforcedStyle.
# SupportedStyles: both, prefix, postfix
Style/NegatedIf:
EnforcedStyle: postfix
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Exclude:
- config/deploy.rb
- config/deploy/*.rb
Lint/InheritException:
EnforcedStyle: 'standard_error'
# 'each' is more appropriate than 'find_each' most of the time, so it's
# better to disable the cop
# Link: https://apidock.com/rails/ActiveRecord/Batches/find_each
Rails/FindEach:
Enabled: false
Style/RedundantSort:
Exclude:
- 'lib/scratch/parser.rb'