-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
78 lines (65 loc) · 2.35 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
require:
- rubocop-rspec
# Common configuration.
AllCops:
Exclude:
- "vendor/**/*"
- "bin/**/*"
- "Guardfile*"
- db/schema.rb
# Cop names are not displayed in offense messages by default. Change behavior
# by overriding DisplayCopNames, or by giving the -D/--display-cop-names
# option.
DisplayCopNames: true
# Style guide URLs are not displayed in offense messages by default. Change
# behavior by overriding DisplayStyleGuide, or by giving the
# -S/--display-style-guide option.
DisplayStyleGuide: true
# Additional cops that do not reference a style guide rule may be enabled by
# default. Change behavior by overriding StyleGuideCopsOnly, or by giving
# the --only-guide-cops option.
StyleGuideCopsOnly: false
# All cops except the ones in disabled.yml are enabled by default. Change
# this behavior by overriding DisabledByDefault. When DisabledByDefault is
# true, all cops in the default configuration are disabled, and and only cops
# in user configuration are enabled. This makes cops opt-in instead of
# opt-out. Note that when DisabledByDefault is true, cops in user
# configuration will be enabled even if they don't set the Enabled parameter.
DisabledByDefault: false
# Enables the result cache if true. Can be overridden by the --cache command
# line option.
UseCache: true
# Threshold for how many files can be stored in the result cache before some
# of the files are automatically removed.
MaxFilesInCache: 20000
# The cache will be stored in "rubocop_cache" under this directory. The name
# "/tmp" is special and will be converted to the system temporary directory,
# which is "/tmp" on Unix-like systems, but could be something else on other
# systems.
CacheRootDirectory: ./tmp
Metrics/BlockLength:
ExcludedMethods: ["describe", "context"]
Metrics/LineLength:
Max: 80
Naming/UncommunicativeMethodParamName:
Enabled: false
# By default, the rails cops are not run. Override in project or home
# directory .rubocop.yml files, or by giving the -R/--rails option.
Rails:
Enabled: true
# Custom overrides
Style/Documentation:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
# RSpec
RSpec/DescribeClass:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/LetSetup:
Enabled: false
RSpec/NestedGroups:
Enabled: false
RSpec/VerifiedDoubles:
Enabled: false