forked from karmakatahdin/solidus_seo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
118 lines (88 loc) · 2.1 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
# Relaxed.Ruby.Style
AllCops:
Exclude:
- '*.gemspec'
- 'spec/dummy/**/*'
- 'vendor/bundle/**/*'
- 'Rakefile'
TargetRubyVersion: 2.4
inherit_from: 'https://relaxed.ruby.style/rubocop.yml'
# Sometimes I believe this reads better
# This also causes spacing issues on multi-line fixes
Style/BracesAroundHashParameters:
Enabled: false
# We use class vars and will have to continue doing so for compatability
Style/ClassVars:
Enabled: false
# We need these names for backwards compatability
Naming/PredicateName:
Enabled: false
Naming/AccessorMethodName:
Enabled: false
# This has been used for customization
Style/MutableConstant:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/EmptyElse:
Enabled: false
Style/GuardClause:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
Performance/Count:
Enabled: false
Style/RaiseArgs:
Enabled: false
Naming/BinaryOperatorParameterName:
Enabled: false
# We can use good judgement here
Style/RegexpLiteral:
Enabled: false
Lint/EndAlignment:
Enabled: false
Layout/ElseAlignment:
Enabled: false
Layout/IndentationWidth:
Enabled: false
Layout/AlignParameters:
Enabled: false
Layout/ClosingParenthesisIndentation:
Enabled: false
Layout/MultilineMethodCallIndentation:
Enabled: false
Layout/IndentArray:
Enabled: false
Layout/IndentHash:
Enabled: false
Layout/AlignHash:
Enabled: false
# Symbol Arrays are ok and the %i syntax widely unknown
Style/SymbolArray:
Enabled: false
# Rails/DynamicFindBy:
# Whitelist:
# - find_by_param
# - find_by_param!
# We use a lot of
#
# expect {
# something
# }.to { happen }
#
# syntax in the specs files.
Lint/AmbiguousBlockAssociation:
Exclude:
- '*/spec/**/*'
- 'spec/**/*' # For the benefit of apps that inherit from this config
# We use eval to add common_spree_dependencies into the Gemfiles of each of our gems
Security/Eval:
Exclude:
- 'Gemfile'
- 'common_spree_dependencies.rb'
- '*/Gemfile'
Naming/VariableNumber:
Enabled: false
# Write empty methods as you wish.
Style/EmptyMethod:
Enabled: false