armitage-rubocop 0.85.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,49 @@
1
+ Metrics/AbcSize:
2
+ Enabled: true
3
+ Max: 19
4
+ IgnoredMethods: []
5
+
6
+ Metrics/BlockLength:
7
+ Enabled: true
8
+ CountComments: false
9
+ Max: 25
10
+ ExcludedMethods: []
11
+ Exclude:
12
+ - Rakefile
13
+ - spec/**/*
14
+ - '*.gemspec'
15
+
16
+ Metrics/BlockNesting:
17
+ Enabled: true
18
+ CountBlocks: false
19
+ Max: 3
20
+
21
+ Metrics/ClassLength:
22
+ Enabled: true
23
+ CountComments: false
24
+ Max: 100
25
+
26
+ Metrics/CyclomaticComplexity:
27
+ Enabled: true
28
+ Max: 10
29
+ IgnoredMethods: []
30
+
31
+ Metrics/MethodLength:
32
+ Enabled: true
33
+ Max: 25
34
+ CountComments: false
35
+
36
+ Metrics/ModuleLength:
37
+ Enabled: true
38
+ CountComments: false
39
+ Max: 100
40
+
41
+ Metrics/ParameterLists:
42
+ Enabled: true
43
+ Max: 5
44
+ CountKeywordArgs: true
45
+
46
+ Metrics/PerceivedComplexity:
47
+ Enabled: true
48
+ Max: 10
49
+ IgnoredMethods: []
@@ -0,0 +1,2 @@
1
+ Migration/DepartmentName:
2
+ Enabled: true
@@ -0,0 +1,74 @@
1
+ Naming/AccessorMethodName:
2
+ Enabled: false
3
+
4
+ Naming/AsciiIdentifiers:
5
+ Enabled: true
6
+
7
+ Naming/BinaryOperatorParameterName:
8
+ Enabled: false
9
+
10
+ Naming/ClassAndModuleCamelCase:
11
+ Enabled: true
12
+ AllowedNames: []
13
+
14
+ Naming/ConstantName:
15
+ Enabled: true
16
+
17
+ Naming/FileName:
18
+ Enabled: true
19
+ ExpectMatchingDefinition: false
20
+ IgnoreExecutableScripts: true
21
+ CheckDefinitionPathHierarchy: false
22
+
23
+ Naming/HeredocDelimiterCase:
24
+ Enabled: true
25
+ EnforcedStyle: uppercase
26
+
27
+ Naming/HeredocDelimiterNaming:
28
+ Enabled: false
29
+
30
+ Naming/MemoizedInstanceVariableName:
31
+ Enabled: false
32
+
33
+ Naming/MethodName:
34
+ Enabled: true
35
+ EnforcedStyle: snake_case
36
+
37
+ Naming/PredicateName:
38
+ Enabled: false
39
+
40
+ Naming/RescuedExceptionsVariableName:
41
+ Enabled: true
42
+ PreferredName: error
43
+
44
+ Naming/BlockParameterName:
45
+ Enabled: true
46
+ MinNameLength: 1
47
+ AllowNamesEndingInNumbers: true
48
+ AllowedNames: []
49
+ ForbiddenNames: []
50
+
51
+ Naming/MethodParameterName:
52
+ Enabled: true
53
+ MinNameLength: 1
54
+ AllowNamesEndingInNumbers: true
55
+ AllowedNames:
56
+ - 'io'
57
+ - 'id'
58
+ - 'to'
59
+ - 'by'
60
+ - 'on'
61
+ - 'in'
62
+ - 'at'
63
+ - 'ip'
64
+ - 'db'
65
+ - 'os'
66
+ ForbiddenNames: []
67
+
68
+ Naming/VariableName:
69
+ Enabled: true
70
+ EnforcedStyle: snake_case
71
+
72
+ Naming/VariableNumber:
73
+ Enabled: true
74
+ EnforcedStyle: snake_case
@@ -0,0 +1,92 @@
1
+ Performance/BindCall:
2
+ Enabled: true
3
+
4
+ Performance/Caller:
5
+ Enabled: true
6
+
7
+ Performance/CaseWhenSplat:
8
+ Enabled: true
9
+ AutoCorrect: true
10
+
11
+ Performance/Casecmp:
12
+ Enabled: false
13
+
14
+ Performance/ChainArrayAllocation:
15
+ Enabled: false
16
+
17
+ Performance/CompareWithBlock:
18
+ Enabled: true
19
+
20
+ Performance/Count:
21
+ Enabled: true
22
+ SafeAutoCorrect: false
23
+
24
+ Performance/DeletePrefix:
25
+ Enabled: true
26
+
27
+ Performance/DeleteSuffix:
28
+ Enabled: true
29
+
30
+ Performance/Detect:
31
+ Enabled: true
32
+ SafeAutoCorrect: false
33
+
34
+ Performance/DoubleStartEndWith:
35
+ Enabled: true
36
+ IncludeActiveSupportAliases: false
37
+
38
+ Performance/EndWith:
39
+ Enabled: true
40
+ AutoCorrect: false
41
+
42
+ Performance/FixedSize:
43
+ Enabled: true
44
+
45
+ Performance/FlatMap:
46
+ Enabled: true
47
+ EnabledForFlattenWithoutParams: false
48
+
49
+ Performance/InefficientHashSearch:
50
+ Enabled: true
51
+
52
+ Performance/OpenStruct:
53
+ Enabled: true
54
+
55
+ Performance/RangeInclude:
56
+ Enabled: true
57
+
58
+ Performance/RedundantBlockCall:
59
+ Enabled: true
60
+
61
+ Performance/RedundantMatch:
62
+ Enabled: true
63
+
64
+ Performance/RedundantMerge:
65
+ Enabled: true
66
+ MaxKeyValuePairs: 1
67
+
68
+ Performance/RegexpMatch:
69
+ Enabled: true
70
+
71
+ Performance/ReverseEach:
72
+ Enabled: true
73
+
74
+ Performance/Size:
75
+ Enabled: true
76
+
77
+ Performance/StartWith:
78
+ Enabled: true
79
+ AutoCorrect: false
80
+
81
+ Performance/StringReplacement:
82
+ Enabled: true
83
+
84
+ Performance/TimesMap:
85
+ Enabled: true
86
+ AutoCorrect: false
87
+
88
+ Performance/UnfreezeString:
89
+ Enabled: true
90
+
91
+ Performance/UriDefaultParser:
92
+ Enabled: true
@@ -0,0 +1,218 @@
1
+ Rails/ActionFilter:
2
+ Enabled: true
3
+ EnforcedStyle: action
4
+
5
+ Rails/ActiveRecordAliases:
6
+ Enabled: true
7
+
8
+ Rails/ActiveRecordOverride:
9
+ Enabled: true
10
+ Include:
11
+ - app/models/**/*.rb
12
+
13
+ Rails/ActiveSupportAliases:
14
+ Enabled: true
15
+
16
+ Rails/ApplicationJob:
17
+ Enabled: true
18
+
19
+ Rails/ApplicationRecord:
20
+ Enabled: true
21
+
22
+ Rails/ApplicationController:
23
+ Enabled: false
24
+
25
+ Rails/ApplicationMailer:
26
+ Enabled: false
27
+
28
+ Rails/RakeEnvironment:
29
+ Enabled: true
30
+ AutoCorrect: true
31
+
32
+ Rails/AssertNot:
33
+ Enabled: true
34
+
35
+ Rails/BelongsTo:
36
+ Enabled: true
37
+
38
+ Rails/Blank:
39
+ Enabled: false
40
+
41
+ Rails/BulkChangeTable:
42
+ Enabled: true
43
+ Database: postgresql
44
+
45
+ Rails/CreateTableWithTimestamps:
46
+ Enabled: false
47
+
48
+ Rails/ContentTag:
49
+ Enabled: true
50
+
51
+ Rails/Date:
52
+ Enabled: true
53
+ EnforcedStyle: flexible
54
+
55
+ Rails/Delegate:
56
+ Enabled: false
57
+
58
+ Rails/DelegateAllowBlank:
59
+ Enabled: true
60
+
61
+ Rails/DynamicFindBy:
62
+ Enabled: true
63
+ Whitelist:
64
+ - find_by_sql
65
+ AllowedMethods:
66
+ - find_by_sql
67
+ AllowedReceivers:
68
+ - Gem::Specification
69
+
70
+ Rails/EnumHash:
71
+ Enabled: true
72
+ Include:
73
+ - app/models/**/*.rb
74
+
75
+ Rails/EnumUniqueness:
76
+ Enabled: true
77
+
78
+ Rails/EnvironmentComparison:
79
+ Enabled: true
80
+
81
+ Rails/Exit:
82
+ Enabled: true
83
+
84
+ Rails/FilePath:
85
+ Enabled: true
86
+ EnforcedStyle: arguments
87
+
88
+ Rails/FindBy:
89
+ Enabled: true
90
+
91
+ Rails/FindEach:
92
+ Enabled: true
93
+
94
+ Rails/HasAndBelongsToMany:
95
+ Enabled: true
96
+
97
+ Rails/HasManyOrHasOneDependent:
98
+ Enabled: true
99
+
100
+ Rails/HttpPositionalArguments:
101
+ Enabled: true
102
+
103
+ Rails/HttpStatus:
104
+ Enabled: false
105
+
106
+ Rails/IgnoredSkipActionFilterOption:
107
+ Enabled: true
108
+
109
+ Rails/IndexBy:
110
+ Enabled: true
111
+
112
+ Rails/IndexWith:
113
+ Enabled: true
114
+
115
+ Rails/InverseOf:
116
+ Enabled: true
117
+
118
+ Rails/LexicallyScopedActionFilter:
119
+ Enabled: true
120
+
121
+ Rails/LinkToBlank:
122
+ Enabled: true
123
+
124
+ Rails/NotNullColumn:
125
+ Enabled: true
126
+
127
+ Rails/Output:
128
+ Enabled: true
129
+
130
+ Rails/OutputSafety:
131
+ Enabled: false
132
+
133
+ Rails/Pick:
134
+ Enabled: true
135
+
136
+ Rails/PluralizationGrammar:
137
+ Enabled: true
138
+
139
+ Rails/Presence:
140
+ Enabled: true
141
+
142
+ Rails/Present:
143
+ Enabled: true
144
+
145
+ Rails/ReadWriteAttribute:
146
+ Enabled: true
147
+
148
+ Rails/RedundantAllowNil:
149
+ Enabled: true
150
+ Include:
151
+ - app/models/**/*.rb
152
+
153
+ Rails/RedundantForeignKey:
154
+ Enabled: false
155
+
156
+ Rails/RedundantReceiverInWithOptions:
157
+ Enabled: true
158
+
159
+ Rails/ReflectionClassName:
160
+ Enabled: true
161
+
162
+ Rails/RefuteMethods:
163
+ Enabled: true
164
+ EnforcedStyle: assert_not
165
+ Include:
166
+ - 'test/**/*'
167
+ - 'spec/**/*'
168
+
169
+ Rails/RelativeDateConstant:
170
+ Enabled: true
171
+ AutoCorrect: false
172
+
173
+ Rails/RequestReferer:
174
+ Enabled: true
175
+ EnforcedStyle: referer
176
+
177
+ Rails/ReversibleMigration:
178
+ Enabled: true
179
+
180
+ Rails/SafeNavigation:
181
+ Enabled: true
182
+
183
+ Rails/SafeNavigationWithBlank:
184
+ Enabled: true
185
+
186
+ Rails/SaveBang:
187
+ Enabled: true
188
+ AllowImplicitReturn: true
189
+
190
+ Rails/ScopeArgs:
191
+ Enabled: true
192
+
193
+ Rails/SkipsModelValidations:
194
+ Enabled: false
195
+
196
+ Rails/TimeZone:
197
+ Enabled: true
198
+ EnforcedStyle: flexible
199
+
200
+ Rails/UniqBeforePluck:
201
+ Enabled: true
202
+ EnforcedStyle: conservative
203
+
204
+ Rails/UniqueValidationWithoutIndex:
205
+ Enabled: true
206
+ Include:
207
+ - app/models/**/*.rb
208
+
209
+ Rails/UnknownEnv:
210
+ Enabled: true
211
+ Environments:
212
+ - development
213
+ - test
214
+ - staging
215
+ - production
216
+
217
+ Rails/Validation:
218
+ Enabled: true
@@ -0,0 +1,14 @@
1
+ Rake/MethodDefinitionInTask:
2
+ Enabled: true
3
+
4
+ Rake/DuplicateTask:
5
+ Enabled: true
6
+
7
+ Rake/DuplicateNamespace:
8
+ Enabled: true
9
+
10
+ Rake/Desc:
11
+ Enabled: true
12
+
13
+ Rake/ClassDefinitionInTask:
14
+ Enabled: true