-
Notifications
You must be signed in to change notification settings - Fork 102
/
.rubocop.yml
125 lines (87 loc) · 2.34 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
require:
- rubocop-rails
- rubocop-capybara
AllCops:
NewCops: enable
Exclude:
- config/puma.rb
- db/**/*
- bin/**/*
- vendor/**/*
- node_modules/**/*
- config/initializers/content_security_policy.rb
Capybara/ClickLinkOrButtonStyle:
Enabled: false # we aren't running system tests
Rails/I18nLocaleTexts:
Enabled: false # we are only english
Naming/VariableNumber:
Enabled: false # we have a lot of legacy code to update
Bundler/OrderedGems:
Enabled: false # legacy gem file, someday.
Style/SymbolArray:
EnforcedStyle: brackets
Style/OptionalBooleanParameter:
Enabled: false # we got test failures with this enabled.
Style/RedundantAssignment:
Enabled: false # legacy stuff
Style/EmptyMethod:
Enabled: false
Lint/MissingSuper:
Enabled: false # legacy stuff
Style/GuardClause:
Enabled: false # I don't like this one, so ignore it!
Rails:
Enabled: true
Rails/Output:
Enabled: false
Rails/ContentTag:
Enabled: false # we have legacy in helpers that seem to require this.
Rails/Pluck:
Enabled: false # we use this, it doesn't bother me.
Rails/RootPathnameMethods:
Enabled: false # this was causing an issue in our rake scripts
Rails/ActionControllerTestCase:
Enabled: false # we have a ton of these, and changing will take a while. Wish we could grandfather them in?
Style/Documentation:
Enabled: false
Layout/HashAlignment:
EnforcedColonStyle: table
EnforcedHashRocketStyle: table
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/SpaceInsideArrayLiteralBrackets:
EnforcedStyle: space
Layout/SpaceInsidePercentLiteralDelimiters:
Enabled: false
Layout/SpaceInsideParens:
Enabled: false
Layout/LineLength:
Max: 120
Metrics/BlockLength:
Exclude:
- test/**/*
Metrics/ClassLength:
Exclude:
- test/**/*
Metrics/AbcSize:
Max: 30
Metrics/MethodLength:
Max: 15
Metrics/CyclomaticComplexity:
Max: 8
Metrics/PerceivedComplexity:
Max: 8
Style/Alias:
EnforcedStyle: prefer_alias_method
Style/Lambda:
Enabled: false
Style/MethodDefParentheses:
EnforcedStyle: require_no_parentheses_except_multiline
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Style/YodaCondition:
EnforcedStyle: require_for_equality_operators_only
Style/HashSyntax:
Enabled: false