-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
128 lines (119 loc) · 2.43 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
126
127
128
require:
- rubocop-rspec
- rubocop-rails
- rubocop-factory_bot
AllCops:
TargetRubyVersion: 2.7
NewCops: enable
Exclude:
- app/assets/**/*
- bin/**/*
- config/**/*
- db/**/*
- lib/proto/**/*
- vendor/**/*
- tmp/**/*
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/AccessModifierIndentation:
EnforcedStyle: outdent
Layout/EmptyLinesAroundAccessModifier:
Enabled: true
Layout/ArrayAlignment:
Enabled: true
Layout/HashAlignment:
Enabled: true
Layout/EmptyLineAfterGuardClause:
Enabled: true
Layout/SpaceInsideBlockBraces:
EnforcedStyle: space
EnforcedStyleForEmptyBraces: no_space
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: space
EnforcedStyleForEmptyBraces: no_space
Layout/SpaceInsideArrayLiteralBrackets:
EnforcedStyle: no_space
Layout/LineLength:
Max: 100
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Lint/UnusedMethodArgument:
Enabled: true
Lint/UselessAssignment:
Enabled: true
Metrics/BlockLength:
Enabled: true
Exclude:
- lib/tasks/*
- lib/capistrano/tasks/*
- Guardfile
Metrics/MethodLength:
Enabled: true
Max: 15
Metrics/ClassLength:
Enabled: true
Max: 200
Metrics/ModuleLength:
Max: 200
Metrics/ParameterLists:
Enabled: true
Metrics/CyclomaticComplexity:
Enabled: true
Max: 15
Metrics/PerceivedComplexity:
Max: 15
Metrics/AbcSize:
Enabled: true
Max: 20
Naming/MemoizedInstanceVariableName:
Enabled: false
Naming/MethodParameterName:
Enabled: false
Naming/VariableNumber:
Enabled: false
Rails/SquishedSQLHeredocs:
Enabled: false
Rails/I18nLocaleTexts:
Enabled: false
Rails/HasManyOrHasOneDependent:
Enabled: false
Rails/RenderInline:
Enabled: false
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
Style/FetchEnvVar:
Enabled: false
Style/NumericLiterals:
Enabled: true
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/AndOr:
Enabled: true
Style/ClassCheck:
Enabled: true
Style/GuardClause:
Enabled: true
Style/HashSyntax:
Enabled: false
Style/CommentAnnotation:
Enabled: false
Security/Eval:
Enabled: true
Security/JSONLoad:
Enabled: true
Security/YAMLLoad:
Enabled: true
# Temporary Cops
Rails/HelperInstanceVariable:
Enabled: false
Rails/LexicallyScopedActionFilter:
Enabled: false
Rails/UniqueValidationWithoutIndex:
Enabled: false
Rails/Output:
Enabled: false
# Investigate
Rails/ActionControllerFlashBeforeRender:
Enabled: false