-
Notifications
You must be signed in to change notification settings - Fork 26
/
.rubocop.yml
42 lines (35 loc) · 1.05 KB
/
.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
require:
- rubocop-rails
- rubocop-performance
inherit_from:
- .rubocop-txi.yml
- .rubocop_todo.yml
AllCops:
NewCops: enable
DisplayCopNames: true
Exclude:
# Rubocop does not seem to merge these from -txi in AllCops, so we need to
# reiterate them.
- "db/schema.rb" # You can't touch this
- ".bundle/**/*" # Auto-generated
- "bin/**/*" # Auto-generated
# Some forks have schema.rb files in their custom engines
- "vendor/engines/*/db/schema.rb"
# Exclude any paperclip uploaded files
- "public/files/**/*"
# 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
Rails/HttpPositionalArguments:
Enabled: false
Metrics/BlockLength:
# spec/ is excluded in txi, but we need to exclude from engines as well
Exclude:
- "vendor/engines/*/spec/**/*.rb"