-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubocul_default.yml
99 lines (78 loc) · 2.03 KB
/
rubocul_default.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
require:
- ./lib/rubocop/cul.rb
inherit_from:
- rubocul_rules_bundler.yml
- rubocul_rules_factory_bot.yml
- rubocul_rules_performance.yml
- rubocul_rules_rails.yml
- rubocul_rules_rspec.yml
- rubocul_rules_security.yml
- rubocul_rules_capybara.yml
AllCops:
TargetRubyVersion: 2.7
# Disable any new "pending" cops that are introduced in a minor version update of rubocop.
# We only want to opt into these explicitly, or accept them when we update to a new MAJOR
# version of rubocop. See: https://docs.rubocop.org/rubocop/versioning.html#pending-cops
NewCops: disable
# DisabledByDefault: true
DisplayCopNames: true
Exclude:
- 'db/**/*'
- 'script/**/*'
- 'bin/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
- 'node_modules/**/*'
- 'app/javascript/**/*'
Layout/HashAlignment:
SupportedHashRocketStyles:
- key
- table
SupportedColonStyles:
- key
- table
Metrics/BlockLength:
AllowedMethods:
- 'describe' # rspec
- 'context' # rspec
- 'namespace' # rake
- 'task' # rake
RSpec/NestedGroups:
Max: 5
# Documentation is great, but we're not currently forcing people to add a top level comment
# to all classes and modules.
Style/Documentation:
Enabled: false
Style/RedundantSelf:
Enabled: false
Style/HashSyntax:
# We may change this at some point, but it'll take some getting used to. To be safe, we're
# forcing explicit hash literal values for now.
EnforcedShorthandSyntax: never
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Metrics/MethodLength:
Max: 12
Metrics/ParameterLists:
Max: 7
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining
Style/ClassAndModuleChildren:
Enabled: false
Style/WordArray:
Enabled: false
Style/SymbolArray:
Enabled: false
RSpec/ExpectInHook:
Enabled: false
Style/BlockComments:
Enabled: false
Rails/RakeEnvironment:
Enabled: false
Style/NonNilCheck:
Enabled: false
RSpec/ContextWording:
Enabled: false
# TODO: Decide how we feel about this later
Naming/VariableNumber:
Enabled: false