ruby_coding_standard 0.1.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cb8d0a71c7737cc929bb7d6562859651460ca30a185761e089a40eaaf3a02101
4
+ data.tar.gz: c17dea34c27d23f18e1b704eda2682772a5f1a753d84e737d104615145f6c085
5
+ SHA512:
6
+ metadata.gz: 504b91fa368d9aad33016a8ff63d86a2133cf071cb6e08d100c511fbdba000a266887fb42cb0e647300ef2e3ebaa035f746ecf69b69bdf84bb6244ef002dec1f
7
+ data.tar.gz: a0d98c9a82d36a84abec173026c554ef7abb0f208fad31fb1a4a405f721c8d3bfa6a1515b55b72e39eb7fe77115406ba5361d9e7e3b588d02042f59facec1ca9
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ Gemfile.lock
data/.layout.yml ADDED
@@ -0,0 +1,278 @@
1
+ Layout/AccessModifierIndentation:
2
+ EnforcedStyle: indent
3
+
4
+ Layout/AlignArguments:
5
+ EnforcedStyle: with_fixed_indentation
6
+
7
+ Layout/AlignHash:
8
+ EnforcedHashRocketStyle: key
9
+ EnforcedColonStyle: key
10
+
11
+ Layout/AlignParameters:
12
+ EnforcedStyle: with_fixed_indentation
13
+
14
+ Layout/BlockAlignment:
15
+ EnforcedStyleAlignWith: start_of_block
16
+
17
+ Layout/BlockEndNewline:
18
+ Enabled: true
19
+
20
+ Layout/CaseIndentation:
21
+ EnforcedStyle: end
22
+ IndentOneStep: false
23
+
24
+ Layout/ClosingHeredocIndentation:
25
+ Enabled: true
26
+
27
+ Layout/ClosingParenthesisIndentation:
28
+ Enabled: true
29
+
30
+ Layout/CommentIndentation:
31
+ Enabled: true
32
+
33
+ Layout/ConditionPosition:
34
+ Enabled: true
35
+
36
+ Layout/DefEndAlignment:
37
+ Enabled: true
38
+ EnforcedStyleAlignWith: start_of_line
39
+
40
+ Layout/DotPosition:
41
+ EnforcedStyle: leading
42
+
43
+ Layout/ElseAlignment:
44
+ Enabled: true
45
+
46
+ Layout/EmptyLineAfterGuardClause:
47
+ Enabled: true
48
+
49
+ Layout/EmptyLineAfterMagicComment:
50
+ Enabled: true
51
+
52
+ Layout/EmptyLineBetweenDefs:
53
+ Enabled: true
54
+ NumberOfEmptyLines: 1
55
+
56
+ Layout/EmptyLines:
57
+ Enabled: true
58
+
59
+ Layout/EmptyLinesAroundAccessModifier:
60
+ Enabled: true
61
+ EnforcedStyle: around
62
+
63
+ Layout/EmptyLinesAroundArguments:
64
+ Enabled: true
65
+
66
+ Layout/EmptyLinesAroundBeginBody:
67
+ Enabled: true
68
+
69
+ Layout/EmptyLinesAroundBlockBody:
70
+ Enabled: true
71
+ EnforcedStyle: no_empty_lines
72
+
73
+ Layout/EmptyLinesAroundMethodBody:
74
+ Enabled: true
75
+
76
+ Layout/EndAlignment:
77
+ Enabled: true
78
+ AutoCorrect: true
79
+ EnforcedStyleAlignWith: variable
80
+
81
+ Layout/EndOfLine:
82
+ Enabled: true
83
+ EnforcedStyle: lf
84
+
85
+ Layout/ExtraSpacing:
86
+ Enabled: true
87
+ AllowForAlignment: false
88
+ ForceEqualSignAlignment: false
89
+
90
+ Layout/FirstArrayElementLineBreak:
91
+ Enabled: true
92
+
93
+ Layout/FirstHashElementLineBreak:
94
+ Enabled: true
95
+
96
+ Layout/FirstMethodArgumentLineBreak:
97
+ Enabled: false
98
+
99
+ Layout/FirstMethodParameterLineBreak:
100
+ Enabled: false
101
+
102
+ Layout/HeredocArgumentClosingParenthesis:
103
+ Enabled: true
104
+
105
+ Layout/IndentAssignment:
106
+ Enabled: true
107
+
108
+ Layout/IndentFirstArgument:
109
+ Enabled: true
110
+ EnforcedStyle: consistent
111
+
112
+ Layout/IndentFirstArrayElement:
113
+ Enabled: true
114
+ EnforcedStyle: consistent
115
+
116
+ Layout/IndentFirstHashElement:
117
+ Enabled: true
118
+ EnforcedStyle: consistent
119
+
120
+ Layout/IndentFirstParameter:
121
+ Enabled: true
122
+ EnforcedStyle: consistent
123
+
124
+ Layout/IndentHeredoc:
125
+ Enabled: true
126
+ EnforcedStyle: squiggly
127
+
128
+ Layout/IndentationConsistency:
129
+ Enabled: true
130
+ EnforcedStyle: normal
131
+
132
+ Layout/IndentationWidth:
133
+ Enabled: true
134
+ Width: 2
135
+
136
+ Layout/InitialIndentation:
137
+ Enabled: true
138
+
139
+ Layout/LeadingBlankLines:
140
+ Enabled: true
141
+
142
+ Layout/LeadingCommentSpace:
143
+ Enabled: true
144
+
145
+ Layout/MultilineArrayBraceLayout:
146
+ Enabled: true
147
+ EnforcedStyle: new_line
148
+
149
+ Layout/MultilineArrayLineBreaks:
150
+ Enabled: true
151
+
152
+ Layout/MultilineAssignmentLayout:
153
+ Enabled: true
154
+ EnforcedStyle: same_line
155
+
156
+ Layout/MultilineBlockLayout:
157
+ Enabled: true
158
+
159
+ Layout/MultilineHashBraceLayout:
160
+ Enabled: true
161
+ EnforcedStyle: new_line
162
+
163
+ Layout/MultilineHashKeyLineBreaks:
164
+ Enabled: true
165
+
166
+ Layout/MultilineMethodArgumentLineBreaks:
167
+ Enabled: false
168
+
169
+ Layout/MultilineMethodCallBraceLayout:
170
+ Enabled: true
171
+ EnforcedStyle: symmetrical
172
+
173
+ Layout/MultilineMethodCallIndentation:
174
+ Enabled: true
175
+ EnforcedStyle: indented
176
+
177
+ Layout/MultilineMethodDefinitionBraceLayout:
178
+ Enabled: true
179
+ EnforcedStyle: new_line
180
+
181
+ Layout/MultilineOperationIndentation:
182
+ Enabled: false
183
+
184
+ Layout/RescueEnsureAlignment:
185
+ Enabled: true
186
+
187
+ Layout/SpaceAfterColon:
188
+ Enabled: true
189
+
190
+ Layout/SpaceAfterComma:
191
+ Enabled: true
192
+
193
+ Layout/SpaceAfterMethodName:
194
+ Enabled: true
195
+
196
+ Layout/SpaceAfterNot:
197
+ Enabled: true
198
+
199
+ Layout/SpaceAfterSemicolon:
200
+ Enabled: true
201
+
202
+ Layout/SpaceAroundBlockParameters:
203
+ Enabled: true
204
+ EnforcedStyleInsidePipes: no_space
205
+
206
+ Layout/SpaceAroundEqualsInParameterDefault:
207
+ Enabled: true
208
+ EnforcedStyle: space
209
+
210
+ Layout/SpaceAroundKeyword:
211
+ Enabled: true
212
+
213
+ Layout/SpaceAroundOperators:
214
+ Enabled: true
215
+
216
+ Layout/SpaceBeforeBlockBraces:
217
+ Enabled: true
218
+ EnforcedStyle: space
219
+
220
+ Layout/SpaceBeforeComma:
221
+ Enabled: true
222
+
223
+ Layout/SpaceBeforeComment:
224
+ Enabled: true
225
+
226
+ Layout/SpaceBeforeFirstArg:
227
+ Enabled: true
228
+
229
+ Layout/SpaceBeforeSemicolon:
230
+ Enabled: true
231
+
232
+ Layout/SpaceInLambdaLiteral:
233
+ Enabled: true
234
+ EnforcedStyle: require_no_space
235
+
236
+ Layout/SpaceInsideArrayLiteralBrackets:
237
+ Enabled: true
238
+ EnforcedStyle: no_space
239
+
240
+ Layout/SpaceInsideArrayPercentLiteral:
241
+ Enabled: true
242
+
243
+ Layout/SpaceInsideBlockBraces:
244
+ Enabled: true
245
+ EnforcedStyle: space
246
+ EnforcedStyleForEmptyBraces: no_space
247
+ SpaceBeforeBlockParameters: true
248
+
249
+ Layout/SpaceInsideHashLiteralBraces:
250
+ Enabled: true
251
+ EnforcedStyle: compact
252
+ EnforcedStyleForEmptyBraces: no_space
253
+
254
+ Layout/SpaceInsideParens:
255
+ Enabled: true
256
+ EnforcedStyle: no_space
257
+
258
+ Layout/SpaceInsidePercentLiteralDelimiters:
259
+ Enabled: true
260
+
261
+ Layout/SpaceInsideRangeLiteral:
262
+ Enabled: true
263
+
264
+ Layout/SpaceInsideReferenceBrackets:
265
+ Enabled: true
266
+ EnforcedStyle: no_space
267
+ EnforcedStyleForEmptyBrackets: no_space
268
+
269
+ Layout/Tab:
270
+ Enabled: true
271
+
272
+ Layout/TrailingBlankLines:
273
+ Enabled: true
274
+ EnforcedStyle: final_newline
275
+
276
+ Layout/TrailingWhitespace:
277
+ Enabled: true
278
+ AllowInHeredoc: false
data/.lint.yml ADDED
@@ -0,0 +1,202 @@
1
+ Lint/AmbiguousBlockAssociation:
2
+ Enabled: true
3
+
4
+ Lint/AmbiguousOperator:
5
+ Enabled: true
6
+
7
+ Lint/AmbiguousRegexpLiteral:
8
+ Enabled: true
9
+
10
+ Lint/AssignmentInCondition:
11
+ Enabled: true
12
+ AllowSafeAssignment: true
13
+
14
+ Lint/CircularArgumentReference:
15
+ Enabled: true
16
+
17
+ Lint/Debugger:
18
+ Enabled: true
19
+
20
+ Lint/DeprecatedClassMethods:
21
+ Enabled: true
22
+
23
+ Lint/DisjunctiveAssignmentInConstructor:
24
+ Enabled: true
25
+
26
+ Lint/DuplicateCaseCondition:
27
+ Enabled: true
28
+
29
+ Lint/DuplicateMethods:
30
+ Enabled: true
31
+
32
+ Lint/DuplicatedKey:
33
+ Enabled: true
34
+
35
+ Lint/EachWithObjectArgument:
36
+ Enabled: true
37
+
38
+ Lint/ElseLayout:
39
+ Enabled: true
40
+
41
+ Lint/EmptyExpression:
42
+ Enabled: true
43
+
44
+ Lint/EmptyInterpolation:
45
+ Enabled: true
46
+
47
+ Lint/EmptyWhen:
48
+ Enabled: true
49
+
50
+ Lint/EndInMethod:
51
+ Enabled: true
52
+
53
+ Lint/ErbNewArguments:
54
+ Enabled: true
55
+
56
+ Lint/FlipFlop:
57
+ Enabled: true
58
+
59
+ Lint/FloatOutOfRange:
60
+ Enabled: true
61
+
62
+ Lint/FormatParameterMismatch:
63
+ Enabled: true
64
+
65
+ Lint/HeredocMethodCallPosition:
66
+ Enabled: true
67
+
68
+ Lint/ImplicitStringConcatenation:
69
+ Enabled: true
70
+
71
+ Lint/IneffectiveAccessModifier:
72
+ Enabled: true
73
+
74
+ Lint/InheritException:
75
+ Enabled: true
76
+ EnforcedStyle: standard_error
77
+
78
+ Lint/Loop:
79
+ Enabled: true
80
+
81
+ Lint/MissingCopEnableDirective:
82
+ Enabled: true
83
+
84
+ Lint/MultipleCompare:
85
+ Enabled: true
86
+
87
+ Lint/NestedMethodDefinition:
88
+ Enabled: true
89
+
90
+ Lint/NestedPercentLiteral:
91
+ Enabled: true
92
+
93
+ Lint/NextWithoutAccumulator:
94
+ Enabled: true
95
+
96
+ Lint/NonLocalExitFromIterator:
97
+ Enabled: true
98
+
99
+ Lint/NumberConversion:
100
+ Enabled: true
101
+
102
+ Lint/OrderedMagicComments:
103
+ Enabled: true
104
+
105
+ Lint/ParenthesesAsGroupedExpression:
106
+ Enabled: true
107
+
108
+ Lint/PercentStringArray:
109
+ Enabled: true
110
+
111
+ Lint/PercentSymbolArray:
112
+ Enabled: true
113
+
114
+ Lint/RandOne:
115
+ Enabled: true
116
+
117
+ Lint/RegexpAsCondition:
118
+ Enabled: true
119
+
120
+ Lint/RequireParentheses:
121
+ Enabled: true
122
+
123
+ Lint/RescueException:
124
+ Enabled: true
125
+
126
+ Lint/RescueType:
127
+ Enabled: true
128
+
129
+ Lint/ReturnInVoidContext:
130
+ Enabled: true
131
+
132
+ Lint/SafeNavigationChain:
133
+ Enabled: true
134
+
135
+ Lint/SafeNavigationConsistency:
136
+ Enabled: true
137
+
138
+ Lint/SafeNavigationWithEmpty:
139
+ Enabled: true
140
+
141
+ Lint/ScriptPermission:
142
+ Enabled: true
143
+
144
+ Lint/ShadowedArgument:
145
+ Enabled: true
146
+
147
+ Lint/ShadowedException:
148
+ Enabled: true
149
+
150
+ Lint/ShadowingOuterLocalVariable:
151
+ Enabled: true
152
+
153
+ Lint/StringConversionInInterpolation:
154
+ Enabled: true
155
+
156
+ Lint/Syntax:
157
+ Enabled: true
158
+
159
+ Lint/ToJSON:
160
+ Enabled: true
161
+
162
+ Lint/UnifiedInteger:
163
+ Enabled: true
164
+
165
+ Lint/UnneededCopDisableDirective:
166
+ Enabled: true
167
+
168
+ Lint/UnneededCopEnableDirective:
169
+ Enabled: true
170
+
171
+ Lint/UnneededRequireStatement:
172
+ Enabled: true
173
+
174
+ Lint/UnneededSplatExpansion:
175
+ Enabled: true
176
+
177
+ Lint/UnreachableCode:
178
+ Enabled: true
179
+
180
+ Lint/UriEscapeUnescape:
181
+ Enabled: true
182
+
183
+ Lint/UriRegexp:
184
+ Enabled: true
185
+
186
+ Lint/UselessAccessModifier:
187
+ Enabled: true
188
+
189
+ Lint/UselessAssignment:
190
+ Enabled: true
191
+
192
+ Lint/UselessComparison:
193
+ Enabled: true
194
+
195
+ Lint/UselessElseWithoutRescue:
196
+ Enabled: true
197
+
198
+ Lint/UselessSetterCall:
199
+ Enabled: true
200
+
201
+ Lint/Void:
202
+ Enabled: true
data/.metrics.yml ADDED
@@ -0,0 +1,24 @@
1
+ Metrics/AbcSize:
2
+ Enabled: true
3
+
4
+ Metrics/BlockLength:
5
+ Enabled: true
6
+ Exclude:
7
+ - "**/*.gemspec"
8
+ - "**/Rakefile"
9
+ - "**/*.rake"
10
+ - "spec/**/*.rb"
11
+
12
+ Metrics/CyclomaticComplexity:
13
+ Enabled: true
14
+
15
+ Metrics/LineLength:
16
+ Enabled: true
17
+ IgnoreCopDirectives: true
18
+ Max: 120
19
+
20
+ Metrics/ParameterLists:
21
+ Enabled: true
22
+
23
+ Metrics/PerceivedComplexity:
24
+ Enabled: true
data/.naming.yml ADDED
@@ -0,0 +1,17 @@
1
+ Naming/AsciiIdentifiers:
2
+ Enabled: true
3
+
4
+ Naming/BinaryOperatorParameterName:
5
+ Enabled: true
6
+
7
+ Naming/ClassAndModuleCamelCase:
8
+ Enabled: true
9
+
10
+ Naming/FileName:
11
+ Enabled: true
12
+
13
+ Naming/HeredocDelimiterNaming:
14
+ Enabled: true
15
+
16
+ Naming/VariableName:
17
+ Enabled: true
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,12 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.5
3
+ DisabledByDefault: true
4
+ Exclude: []
5
+
6
+ inherit_from:
7
+ - .layout.yml
8
+ - .lint.yml
9
+ - .metrics.yml
10
+ - .naming.yml
11
+ - .security.yml
12
+ - .style.yml
data/.security.yml ADDED
@@ -0,0 +1,2 @@
1
+ Security:
2
+ Enabled: true
data/.style.yml ADDED
@@ -0,0 +1,400 @@
1
+ Style/AndOr:
2
+ Enabled: true
3
+ EnforcedStyle: conditionals
4
+
5
+ Style/ArrayJoin:
6
+ Enabled: true
7
+
8
+ Style/Attr:
9
+ Enabled: true
10
+
11
+ Style/AutoResourceCleanup:
12
+ Enabled: true
13
+
14
+ Style/BlockComments:
15
+ Enabled: true
16
+
17
+ Style/BlockDelimiters:
18
+ Enabled: true
19
+ EnforcedStyle: line_count_based
20
+
21
+ Style/BracesAroundHashParameters:
22
+ Enabled: true
23
+ EnforcedStyle: context_dependent
24
+
25
+ Style/CharacterLiteral:
26
+ Enabled: true
27
+
28
+ Style/ClassAndModuleChildren:
29
+ Enabled: true
30
+ EnforcedStyle: nested
31
+
32
+ Style/ClassCheck:
33
+ Enabled: true
34
+
35
+ Style/ClassVars:
36
+ Enabled: true
37
+
38
+ Style/CollectionMethods:
39
+ Enabled: true
40
+ PreferredMethods:
41
+ collect: map
42
+ collect!: map!
43
+ inject: reduce
44
+ detect: find
45
+ find_all: select
46
+
47
+ Style/ClassMethods:
48
+ Enabled: true
49
+
50
+ Style/ColonMethodDefinition:
51
+ Enabled: true
52
+
53
+ Style/ColonMethodCall:
54
+ Enabled: true
55
+
56
+ Style/CommandLiteral:
57
+ Enabled: true
58
+ EnforcedStyle: backticks
59
+
60
+ Style/CommentAnnotation:
61
+ Enabled: true
62
+
63
+ Style/ConditionalAssignment:
64
+ Enabled: true
65
+ EnforcedStyle: assign_to_condition
66
+
67
+ Style/ConstantVisibility:
68
+ Enabled: true
69
+
70
+ Style/DefWithParentheses:
71
+ Enabled: true
72
+
73
+ Style/Dir:
74
+ Enabled: true
75
+
76
+ Style/EachForSimpleLoop:
77
+ Enabled: true
78
+
79
+ Style/EmptyBlockParameter:
80
+ Enabled: true
81
+
82
+ Style/EmptyElse:
83
+ Enabled: true
84
+
85
+ Style/EmptyLambdaParameter:
86
+ Enabled: true
87
+
88
+ Style/EmptyMethod:
89
+ Enabled: true
90
+ EnforcedStyle: expanded
91
+
92
+ Style/Encoding:
93
+ Enabled: true
94
+
95
+ Style/EndBlock:
96
+ Enabled: true
97
+
98
+ Style/ExpandPathArguments:
99
+ Enabled: true
100
+
101
+ Style/FloatDivision:
102
+ Enabled: true
103
+ EnforcedStyle: fdiv
104
+
105
+ Style/For:
106
+ Enabled: true
107
+ EnforcedStyle: each
108
+
109
+ Style/FormatString:
110
+ Enabled: true
111
+ EnforcedStyle: format
112
+
113
+ Style/FormatStringToken:
114
+ Enabled: true
115
+ EnforcedStyle: template
116
+
117
+ Style/FrozenStringLiteralComment:
118
+ Enabled: true
119
+ EnforcedStyle: always
120
+
121
+ Style/GlobalVars:
122
+ Enabled: true
123
+
124
+ Style/HashSyntax:
125
+ Enabled: true
126
+ EnforcedStyle: no_mixed_keys
127
+
128
+ Style/IdenticalConditionalBranches:
129
+ Enabled: true
130
+
131
+ Style/IfUnlessModifierOfIfUnless:
132
+ Enabled: true
133
+
134
+ Style/IfWithSemicolon:
135
+ Enabled: true
136
+
137
+ Style/InfiniteLoop:
138
+ Enabled: true
139
+
140
+ Style/Lambda:
141
+ Enabled: true
142
+ EnforcedStyle: literal
143
+
144
+ Style/LambdaCall:
145
+ Enabled: true
146
+ EnforcedStyle: braces
147
+
148
+ Style/MethodCallWithoutArgsParentheses:
149
+ Enabled: true
150
+
151
+ Style/MethodDefParentheses:
152
+ Enabled: true
153
+ EnforcedStyle: require_parentheses
154
+
155
+ Style/MinMax:
156
+ Enabled: true
157
+
158
+ Style/MissingRespondToMissing:
159
+ Enabled: true
160
+
161
+ Style/MixinGrouping:
162
+ Enabled: true
163
+ EnforcedStyle: separated
164
+
165
+ Style/MixinUsage:
166
+ Enabled: true
167
+
168
+ Style/MultilineIfModifier:
169
+ Enabled: true
170
+
171
+ Style/MultilineMemoization:
172
+ Enabled: true
173
+ EnforcedStyle: keyword
174
+
175
+ Style/MultilineTernaryOperator:
176
+ Enabled: true
177
+
178
+ Style/MultilineWhenThen:
179
+ Enabled: true
180
+
181
+ Style/MutableConstant:
182
+ Enabled: true
183
+
184
+ Style/NegatedIf:
185
+ Enabled: true
186
+ EnforcedStyle: both
187
+
188
+ Style/NegatedUnless:
189
+ EnforcedStyle: both
190
+
191
+ Style/NestedModifier:
192
+ Enabled: true
193
+
194
+ Style/NestedTernaryOperator:
195
+ Enabled: true
196
+
197
+ Style/NilComparison:
198
+ Enabled: true
199
+ EnforcedStyle: predicate
200
+
201
+ Style/NonNilCheck:
202
+ Enabled: true
203
+
204
+ Style/Not:
205
+ Enabled: true
206
+
207
+ Style/NumericLiteralPrefix:
208
+ Enabled: true
209
+ EnforcedOctalStyle: zero_with_o
210
+
211
+ Style/NumericLiterals:
212
+ Enabled: true
213
+
214
+ Style/OneLineConditional:
215
+ Enabled: true
216
+
217
+ Style/OptionHash:
218
+ Enabled: true
219
+
220
+ Style/OptionalArguments:
221
+ Enabled: true
222
+
223
+ Style/OrAssignment:
224
+ Enabled: true
225
+
226
+ Style/ParenthesesAroundCondition:
227
+ Enabled: true
228
+ AllowInMultilineConditions: false
229
+
230
+ Style/PercentLiteralDelimiters:
231
+ Enabled: true
232
+
233
+ Style/PerlBackrefs:
234
+ Enabled: true
235
+
236
+ Style/PreferredHashMethods:
237
+ Enabled: true
238
+ EnforcedStyle: verbose
239
+
240
+ Style/Proc:
241
+ Enabled: true
242
+
243
+ Style/RaiseArgs:
244
+ Enabled: true
245
+ EnforcedStyle: exploded
246
+
247
+ Style/RandomWithOffset:
248
+ Enabled: true
249
+
250
+ Style/RedundantBegin:
251
+ Enabled: true
252
+
253
+ Style/RedundantConditional:
254
+ Enabled: true
255
+
256
+ Style/RedundantException:
257
+ Enabled: true
258
+
259
+ Style/RedundantFreeze:
260
+ Enabled: true
261
+
262
+ Style/RedundantParentheses:
263
+ Enabled: true
264
+
265
+ Style/RedundantReturn:
266
+ Enabled: true
267
+
268
+ Style/RedundantSelf:
269
+ Enabled: true
270
+
271
+ Style/RedundantSortBy:
272
+ Enabled: true
273
+
274
+ Style/RescueStandardError:
275
+ Enabled: true
276
+
277
+ Style/SafeNavigation:
278
+ Enabled: true
279
+
280
+ Style/Sample:
281
+ Enabled: true
282
+
283
+ Style/SelfAssignment:
284
+ Enabled: true
285
+
286
+ Style/Semicolon:
287
+ Enabled: true
288
+ AllowAsExpressionSeparator: true
289
+
290
+ Style/Send:
291
+ Enabled: true
292
+
293
+ Style/SignalException:
294
+ Enabled: true
295
+ EnforcedStyle: only_raise
296
+
297
+ Style/SingleLineMethods:
298
+ Enabled: true
299
+ AllowIfMethodIsEmpty: false
300
+
301
+ Style/SpecialGlobalVars:
302
+ Enabled: true
303
+ EnforcedStyle: use_english_names
304
+
305
+ Style/StabbyLambdaParentheses:
306
+ Enabled: true
307
+ EnforcedStyle: require_parentheses
308
+
309
+ Style/StderrPuts:
310
+ Enabled: true
311
+
312
+ Style/StringLiterals:
313
+ Enabled: true
314
+ EnforcedStyle: double_quotes
315
+
316
+ Style/StringLiteralsInInterpolation:
317
+ Enabled: true
318
+ EnforcedStyle: double_quotes
319
+
320
+ Style/StringMethods:
321
+ Enabled: true
322
+
323
+ Style/Strip:
324
+ Enabled: true
325
+
326
+ Style/StructInheritance:
327
+ Enabled: true
328
+
329
+ Style/SymbolArray:
330
+ Enabled: true
331
+ EnforcedStyle: brackets
332
+
333
+ Style/WordArray:
334
+ Enabled: true
335
+ EnforcedStyle: brackets
336
+
337
+ Style/SymbolLiteral:
338
+ Enabled: true
339
+
340
+ Style/SymbolProc:
341
+ Enabled: true
342
+
343
+ Style/TernaryParentheses:
344
+ Enabled: true
345
+ EnforcedStyle: require_no_parentheses
346
+
347
+ Style/TrailingBodyOnClass:
348
+ Enabled: true
349
+
350
+ Style/TrailingBodyOnMethodDefinition:
351
+ Enabled: true
352
+
353
+ Style/TrailingBodyOnModule:
354
+ Enabled: true
355
+
356
+ Style/TrailingCommaInArguments:
357
+ Enabled: true
358
+ EnforcedStyleForMultiline: comma
359
+
360
+ Style/TrailingCommaInArrayLiteral:
361
+ Enabled: true
362
+ EnforcedStyleForMultiline: comma
363
+
364
+ Style/TrailingCommaInHashLiteral:
365
+ Enabled: true
366
+ EnforcedStyleForMultiline: comma
367
+
368
+ Style/TrailingMethodEndStatement:
369
+ Enabled: true
370
+
371
+ Style/TrailingUnderscoreVariable:
372
+ Enabled: true
373
+
374
+ Style/TrivialAccessors:
375
+ Enabled: true
376
+
377
+ Style/UnlessElse:
378
+ Enabled: true
379
+
380
+ Style/UnneededCondition:
381
+ Enabled: true
382
+
383
+ Style/UnneededSort:
384
+ Enabled: true
385
+
386
+ Style/UnpackFirst:
387
+ Enabled: true
388
+
389
+ Style/VariableInterpolation:
390
+ Enabled: true
391
+
392
+ Style/WhenThen:
393
+ Enabled: true
394
+
395
+ Style/WhileUntilDo:
396
+ Enabled: true
397
+
398
+ Style/YodaCondition:
399
+ Enabled: true
400
+ EnforcedStyle: forbid_for_all_comparison_operators
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in ruby_coding_standard.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,51 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ruby_coding_standard (0.1.0)
5
+ rubocop
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.0)
11
+ diff-lcs (1.3)
12
+ jaro_winkler (1.5.3)
13
+ parallel (1.17.0)
14
+ parser (2.6.3.0)
15
+ ast (~> 2.4.0)
16
+ rainbow (3.0.0)
17
+ rake (10.5.0)
18
+ rspec (3.8.0)
19
+ rspec-core (~> 3.8.0)
20
+ rspec-expectations (~> 3.8.0)
21
+ rspec-mocks (~> 3.8.0)
22
+ rspec-core (3.8.2)
23
+ rspec-support (~> 3.8.0)
24
+ rspec-expectations (3.8.4)
25
+ diff-lcs (>= 1.2.0, < 2.0)
26
+ rspec-support (~> 3.8.0)
27
+ rspec-mocks (3.8.1)
28
+ diff-lcs (>= 1.2.0, < 2.0)
29
+ rspec-support (~> 3.8.0)
30
+ rspec-support (3.8.2)
31
+ rubocop (0.72.0)
32
+ jaro_winkler (~> 1.5.1)
33
+ parallel (~> 1.10)
34
+ parser (>= 2.6)
35
+ rainbow (>= 2.2.2, < 4.0)
36
+ ruby-progressbar (~> 1.7)
37
+ unicode-display_width (>= 1.4.0, < 1.7)
38
+ ruby-progressbar (1.10.1)
39
+ unicode-display_width (1.6.0)
40
+
41
+ PLATFORMS
42
+ ruby
43
+
44
+ DEPENDENCIES
45
+ bundler (~> 2.0)
46
+ rake (~> 10.0)
47
+ rspec (~> 3.0)
48
+ ruby_coding_standard!
49
+
50
+ BUNDLED WITH
51
+ 2.0.1
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # Ruby Coding Standard
2
+
3
+ Ruby coding standard focused on reducing unnecessary changes, consistency, and developer's happiness.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'ruby_coding_standard'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install ruby_coding_standard
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Development
26
+
27
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
+
29
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ruby_coding_standard. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
34
+
35
+ ## Code of Conduct
36
+
37
+ Everyone interacting in the RubyCodingStandard project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/ruby_coding_standard/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "ruby_coding_standard"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RubyCodingStandard
4
+ VERSION = "0.1.0"
5
+ public_constant :VERSION
6
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ruby_coding_standard/version"
4
+
5
+ module RubyCodingStandard
6
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path("lib", __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require "ruby_coding_standard/version"
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "ruby_coding_standard"
9
+ spec.version = RubyCodingStandard::VERSION
10
+ spec.authors = ["Tema Bolshakov"]
11
+ spec.email = ["either.free@gmail.com"]
12
+
13
+ spec.summary = "Ruby coding standard focused on reducing unnecessary changes, consistency, and developer's happiness."
14
+ spec.description = "Ruby coding standard focused on reducing unnecessary changes, consistency, and developer's happiness."
15
+ spec.homepage = "https://github.com/bolshakov/ruby_coding_standard"
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.add_development_dependency "bundler", "~> 2.0"
27
+ spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "rspec", "~> 3.0"
29
+
30
+ spec.add_runtime_dependency "rubocop"
31
+ end
metadata ADDED
@@ -0,0 +1,118 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby_coding_standard
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Tema Bolshakov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-07-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Ruby coding standard focused on reducing unnecessary changes, consistency,
70
+ and developer's happiness.
71
+ email:
72
+ - either.free@gmail.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - ".layout.yml"
79
+ - ".lint.yml"
80
+ - ".metrics.yml"
81
+ - ".naming.yml"
82
+ - ".rspec"
83
+ - ".rubocop.yml"
84
+ - ".security.yml"
85
+ - ".style.yml"
86
+ - Gemfile
87
+ - Gemfile.lock
88
+ - README.md
89
+ - Rakefile
90
+ - bin/console
91
+ - bin/setup
92
+ - lib/ruby_coding_standard.rb
93
+ - lib/ruby_coding_standard/version.rb
94
+ - ruby_coding_standard.gemspec
95
+ homepage: https://github.com/bolshakov/ruby_coding_standard
96
+ licenses: []
97
+ metadata: {}
98
+ post_install_message:
99
+ rdoc_options: []
100
+ require_paths:
101
+ - lib
102
+ required_ruby_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ requirements: []
113
+ rubygems_version: 3.0.1
114
+ signing_key:
115
+ specification_version: 4
116
+ summary: Ruby coding standard focused on reducing unnecessary changes, consistency,
117
+ and developer's happiness.
118
+ test_files: []