-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy path.rubocop.yml
More file actions
53 lines (42 loc) · 1.1 KB
/
.rubocop.yml
File metadata and controls
53 lines (42 loc) · 1.1 KB
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
46
47
48
49
50
51
52
53
plugins:
- rubocop-rails
- rubocop-performance
inherit_from:
- .rubocop_todo.yml
AllCops:
NewCops: enable
DisplayCopNames: true
Exclude:
- "db/schema.rb" # You can't touch this
- ".bundle/**/*" # Auto-generated
- "bin/**/*" # Auto-generated
- "vendor/bundle/**/*"
# Some forks have schema.rb files in their custom engines
- "vendor/engines/*/db/schema.rb"
- "public/**/*"
# Project-specific overrides go here, but try to conform to TXI standards as
# specified in .rubocop-txi.yml when possible.
# We prefer this to a one-liner:
# def methodname
# end
Style/EmptyMethod:
EnforcedStyle: expanded
# We prefer to not require %w() until you have a larger array
Style/WordArray:
MinSize: 5
Style/HashSyntax:
EnforcedShorthandSyntax: always
Style/CollectionQuerying:
Enabled: false
Rails/HttpPositionalArguments:
Enabled: false
Rails/StrongParametersExpect:
Enabled: false
Rails/ApplicationRecord:
Exclude:
- "db/migrate/*.rb"
- "vendor/engines/*/db/migrate/*.rb"
Metrics/BlockLength:
Exclude:
- "spec/**/*.rb"
- "vendor/engines/*/spec/**/*.rb"