ruff 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +18 -1
- data/Gemfile.lock +1 -1
- data/README.md +3 -14
- data/docs/Ruff.html +3 -3
- data/docs/Ruff/Effect.html +2 -2
- data/docs/Ruff/Handler.html +73 -113
- data/docs/Ruff/Standard.html +33 -3
- data/docs/Ruff/Standard/CurrentTime.html +150 -14
- data/docs/Ruff/Standard/CurrentTime/Instance.html +183 -25
- data/docs/Ruff/Standard/Defer.html +152 -15
- data/docs/Ruff/Standard/Defer/Instance.html +213 -37
- data/docs/Ruff/Standard/State.html +215 -30
- data/docs/Ruff/Standard/State/Instance.html +389 -72
- data/docs/Ruff/Throws.html +2 -2
- data/docs/Ruff/Throws/Eff.html +6 -4
- data/docs/Ruff/Throws/Resend.html +14 -12
- data/docs/_index.html +3 -3
- data/docs/file.README.html +7 -23
- data/docs/frames.html +1 -1
- data/docs/index.html +7 -23
- data/docs/method_list.html +84 -28
- data/docs/top-level-namespace.html +2 -2
- data/lib/ruff/handler.rb +50 -49
- data/lib/ruff/objects.rb +4 -2
- data/lib/ruff/standard.rb +16 -0
- data/lib/ruff/standard/current_time.rb +29 -2
- data/lib/ruff/standard/defer.rb +33 -3
- data/lib/ruff/standard/state.rb +69 -14
- data/lib/ruff/version.rb +1 -1
- data/version +1 -1
- metadata +2 -3
- data/.rubocop_todo.yml +0 -366
data/lib/ruff/version.rb
CHANGED
data/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nymphium
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -47,7 +47,6 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- ".gitignore"
|
49
49
|
- ".rubocop.yml"
|
50
|
-
- ".rubocop_todo.yml"
|
51
50
|
- ".solargraph.yml"
|
52
51
|
- Gemfile
|
53
52
|
- Gemfile.lock
|
data/.rubocop_todo.yml
DELETED
@@ -1,366 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2019-10-03 04:31:24 +0900 using RuboCop version 0.75.0.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
|
12
|
-
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
13
|
-
Bundler/OrderedGems:
|
14
|
-
Exclude:
|
15
|
-
- 'Gemfile'
|
16
|
-
|
17
|
-
# Offense count: 8
|
18
|
-
# Cop supports --auto-correct.
|
19
|
-
Layout/CommentIndentation:
|
20
|
-
Exclude:
|
21
|
-
- ',hoge.rb'
|
22
|
-
|
23
|
-
# Offense count: 1
|
24
|
-
# Cop supports --auto-correct.
|
25
|
-
# Configuration parameters: EnforcedStyle.
|
26
|
-
# SupportedStyles: squiggly, active_support, powerpack, unindent
|
27
|
-
Layout/IndentHeredoc:
|
28
|
-
Exclude:
|
29
|
-
- 'Rakefile'
|
30
|
-
|
31
|
-
# Offense count: 1
|
32
|
-
# Cop supports --auto-correct.
|
33
|
-
Layout/LeadingBlankLines:
|
34
|
-
Exclude:
|
35
|
-
- 'ruff.gemspec'
|
36
|
-
|
37
|
-
# Offense count: 2
|
38
|
-
# Cop supports --auto-correct.
|
39
|
-
# Configuration parameters: AllowDoxygenCommentStyle.
|
40
|
-
Layout/LeadingCommentSpace:
|
41
|
-
Exclude:
|
42
|
-
- 'lib/ruff/objects.rb'
|
43
|
-
- 'lib/ruff/version.cpp.rb'
|
44
|
-
|
45
|
-
# Offense count: 8
|
46
|
-
# Cop supports --auto-correct.
|
47
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
48
|
-
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
49
|
-
Layout/MultilineMethodCallIndentation:
|
50
|
-
Exclude:
|
51
|
-
- ',test.rb'
|
52
|
-
- 'lib/ruff/standard/defer.rb'
|
53
|
-
- 'lib/ruff/standard/state.rb'
|
54
|
-
|
55
|
-
# Offense count: 17
|
56
|
-
# Cop supports --auto-correct.
|
57
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
58
|
-
# SupportedStyles: space, no_space
|
59
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
60
|
-
Layout/SpaceBeforeBlockBraces:
|
61
|
-
Exclude:
|
62
|
-
- ',hoge.rb'
|
63
|
-
- ',test.rb'
|
64
|
-
- 'Rakefile'
|
65
|
-
- 'lib/ruff/handler.rb'
|
66
|
-
- 'lib/ruff/standard/current_time.rb'
|
67
|
-
- 'lib/ruff/standard/defer.rb'
|
68
|
-
- 'lib/ruff/standard/state.rb'
|
69
|
-
- 'ruff.gemspec'
|
70
|
-
|
71
|
-
# Offense count: 17
|
72
|
-
# Cop supports --auto-correct.
|
73
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
74
|
-
# SupportedStyles: space, no_space
|
75
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
76
|
-
Layout/SpaceInsideBlockBraces:
|
77
|
-
Exclude:
|
78
|
-
- ',hoge.rb'
|
79
|
-
- ',test.rb'
|
80
|
-
- 'Rakefile'
|
81
|
-
- 'lib/ruff/handler.rb'
|
82
|
-
- 'lib/ruff/standard/current_time.rb'
|
83
|
-
- 'lib/ruff/standard/defer.rb'
|
84
|
-
- 'lib/ruff/standard/state.rb'
|
85
|
-
- 'ruff.gemspec'
|
86
|
-
|
87
|
-
# Offense count: 4
|
88
|
-
# Cop supports --auto-correct.
|
89
|
-
# Configuration parameters: EnforcedStyle.
|
90
|
-
# SupportedStyles: final_newline, final_blank_line
|
91
|
-
Layout/TrailingBlankLines:
|
92
|
-
Exclude:
|
93
|
-
- ',hoge.rb'
|
94
|
-
- 'lib/ruff/standard.rb'
|
95
|
-
- 'lib/ruff/standard/current_time.rb'
|
96
|
-
- 'lib/ruff/standard/state.rb'
|
97
|
-
|
98
|
-
# Offense count: 1
|
99
|
-
# Cop supports --auto-correct.
|
100
|
-
# Configuration parameters: AllowInHeredoc.
|
101
|
-
Layout/TrailingWhitespace:
|
102
|
-
Exclude:
|
103
|
-
- 'ruff.gemspec'
|
104
|
-
|
105
|
-
# Offense count: 9
|
106
|
-
Lint/AmbiguousOperator:
|
107
|
-
Exclude:
|
108
|
-
- 'lib/ruff/handler.rb'
|
109
|
-
- 'lib/ruff/standard/current_time.rb'
|
110
|
-
- 'lib/ruff/standard/defer.rb'
|
111
|
-
- 'lib/ruff/standard/state.rb'
|
112
|
-
|
113
|
-
# Offense count: 2
|
114
|
-
# Configuration parameters: AllowSafeAssignment.
|
115
|
-
Lint/AssignmentInCondition:
|
116
|
-
Exclude:
|
117
|
-
- 'lib/ruff/handler.rb'
|
118
|
-
|
119
|
-
# Offense count: 1
|
120
|
-
Lint/ParenthesesAsGroupedExpression:
|
121
|
-
Exclude:
|
122
|
-
- ',test.rb'
|
123
|
-
|
124
|
-
# Offense count: 1
|
125
|
-
Metrics/AbcSize:
|
126
|
-
Max: 34
|
127
|
-
|
128
|
-
# Offense count: 2
|
129
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
130
|
-
Metrics/MethodLength:
|
131
|
-
Max: 42
|
132
|
-
|
133
|
-
# Offense count: 2
|
134
|
-
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
135
|
-
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
136
|
-
Naming/FileName:
|
137
|
-
Exclude:
|
138
|
-
- ',hoge.rb'
|
139
|
-
- ',test.rb'
|
140
|
-
|
141
|
-
# Offense count: 1
|
142
|
-
# Configuration parameters: Blacklist.
|
143
|
-
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
144
|
-
Naming/HeredocDelimiterNaming:
|
145
|
-
Exclude:
|
146
|
-
- 'Rakefile'
|
147
|
-
|
148
|
-
# Offense count: 11
|
149
|
-
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
150
|
-
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
151
|
-
Naming/UncommunicativeMethodParamName:
|
152
|
-
Exclude:
|
153
|
-
- 'lib/ruff/effect.rb'
|
154
|
-
- 'lib/ruff/handler.rb'
|
155
|
-
- 'lib/ruff/objects.rb'
|
156
|
-
- 'lib/ruff/standard/current_time.rb'
|
157
|
-
- 'lib/ruff/standard/defer.rb'
|
158
|
-
- 'lib/ruff/standard/state.rb'
|
159
|
-
|
160
|
-
# Offense count: 19
|
161
|
-
# Cop supports --auto-correct.
|
162
|
-
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
|
163
|
-
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
164
|
-
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
165
|
-
# FunctionalMethods: let, let!, subject, watch
|
166
|
-
# IgnoredMethods: lambda, proc, it
|
167
|
-
Style/BlockDelimiters:
|
168
|
-
Exclude:
|
169
|
-
- ',hoge.rb'
|
170
|
-
- ',test.rb'
|
171
|
-
- 'Rakefile'
|
172
|
-
- 'lib/ruff/handler.rb'
|
173
|
-
- 'lib/ruff/standard/defer.rb'
|
174
|
-
- 'lib/ruff/standard/state.rb'
|
175
|
-
- 'ruff.gemspec'
|
176
|
-
|
177
|
-
# Offense count: 9
|
178
|
-
# Cop supports --auto-correct.
|
179
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
180
|
-
# SupportedStyles: nested, compact
|
181
|
-
Style/ClassAndModuleChildren:
|
182
|
-
Exclude:
|
183
|
-
- 'lib/ruff/effect.rb'
|
184
|
-
- 'lib/ruff/handler.rb'
|
185
|
-
- 'lib/ruff/objects.rb'
|
186
|
-
- 'lib/ruff/standard.rb'
|
187
|
-
- 'lib/ruff/standard/current_time.rb'
|
188
|
-
- 'lib/ruff/standard/defer.rb'
|
189
|
-
- 'lib/ruff/standard/state.rb'
|
190
|
-
|
191
|
-
# Offense count: 9
|
192
|
-
Style/Documentation:
|
193
|
-
Exclude:
|
194
|
-
- 'spec/**/*'
|
195
|
-
- 'test/**/*'
|
196
|
-
- 'lib/ruff.rb'
|
197
|
-
- 'lib/ruff/objects.rb'
|
198
|
-
- 'lib/ruff/standard.rb'
|
199
|
-
- 'lib/ruff/standard/current_time.rb'
|
200
|
-
- 'lib/ruff/standard/defer.rb'
|
201
|
-
- 'lib/ruff/standard/state.rb'
|
202
|
-
|
203
|
-
# Offense count: 1
|
204
|
-
# Cop supports --auto-correct.
|
205
|
-
Style/EmptyLiteral:
|
206
|
-
Exclude:
|
207
|
-
- 'lib/ruff/handler.rb'
|
208
|
-
|
209
|
-
# Offense count: 2
|
210
|
-
# Cop supports --auto-correct.
|
211
|
-
Style/ExpandPathArguments:
|
212
|
-
Exclude:
|
213
|
-
- 'ruff.gemspec'
|
214
|
-
|
215
|
-
# Offense count: 15
|
216
|
-
# Cop supports --auto-correct.
|
217
|
-
# Configuration parameters: EnforcedStyle.
|
218
|
-
# SupportedStyles: always, never
|
219
|
-
Style/FrozenStringLiteralComment:
|
220
|
-
Exclude:
|
221
|
-
- ',hoge.rb'
|
222
|
-
- ',test.rb'
|
223
|
-
- 'Gemfile'
|
224
|
-
- 'Rakefile'
|
225
|
-
- 'lib/ruff.rb'
|
226
|
-
- 'lib/ruff/effect.rb'
|
227
|
-
- 'lib/ruff/handler.rb'
|
228
|
-
- 'lib/ruff/objects.rb'
|
229
|
-
- 'lib/ruff/standard.rb'
|
230
|
-
- 'lib/ruff/standard/current_time.rb'
|
231
|
-
- 'lib/ruff/standard/defer.rb'
|
232
|
-
- 'lib/ruff/standard/state.rb'
|
233
|
-
- 'lib/ruff/version.cpp.rb'
|
234
|
-
- 'lib/ruff/version.rb'
|
235
|
-
- 'ruff.gemspec'
|
236
|
-
|
237
|
-
# Offense count: 1
|
238
|
-
# Cop supports --auto-correct.
|
239
|
-
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
240
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
241
|
-
Style/HashSyntax:
|
242
|
-
Exclude:
|
243
|
-
- 'Rakefile'
|
244
|
-
|
245
|
-
# Offense count: 4
|
246
|
-
# Cop supports --auto-correct.
|
247
|
-
# Configuration parameters: EnforcedStyle.
|
248
|
-
# SupportedStyles: line_count_dependent, lambda, literal
|
249
|
-
Style/Lambda:
|
250
|
-
Exclude:
|
251
|
-
- 'lib/ruff/handler.rb'
|
252
|
-
|
253
|
-
# Offense count: 7
|
254
|
-
# Cop supports --auto-correct.
|
255
|
-
# Configuration parameters: .
|
256
|
-
# SupportedStyles: call, braces
|
257
|
-
Style/LambdaCall:
|
258
|
-
EnforcedStyle: braces
|
259
|
-
|
260
|
-
# Offense count: 15
|
261
|
-
# Cop supports --auto-correct.
|
262
|
-
# Configuration parameters: EnforcedStyle.
|
263
|
-
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
264
|
-
Style/MethodDefParentheses:
|
265
|
-
Exclude:
|
266
|
-
- 'lib/ruff/handler.rb'
|
267
|
-
- 'lib/ruff/standard/current_time.rb'
|
268
|
-
- 'lib/ruff/standard/defer.rb'
|
269
|
-
- 'lib/ruff/standard/state.rb'
|
270
|
-
|
271
|
-
# Offense count: 1
|
272
|
-
Style/MixinUsage:
|
273
|
-
Exclude:
|
274
|
-
- ',hoge.rb'
|
275
|
-
|
276
|
-
# Offense count: 2
|
277
|
-
Style/MultilineBlockChain:
|
278
|
-
Exclude:
|
279
|
-
- 'lib/ruff/standard/defer.rb'
|
280
|
-
- 'lib/ruff/standard/state.rb'
|
281
|
-
|
282
|
-
# Offense count: 1
|
283
|
-
# Cop supports --auto-correct.
|
284
|
-
Style/MultilineWhenThen:
|
285
|
-
Exclude:
|
286
|
-
- 'lib/ruff/handler.rb'
|
287
|
-
|
288
|
-
# Offense count: 1
|
289
|
-
# Cop supports --auto-correct.
|
290
|
-
# Configuration parameters: EnforcedStyle.
|
291
|
-
# SupportedStyles: literals, strict
|
292
|
-
Style/MutableConstant:
|
293
|
-
Exclude:
|
294
|
-
- 'lib/ruff/version.rb'
|
295
|
-
|
296
|
-
# Offense count: 2
|
297
|
-
# Cop supports --auto-correct.
|
298
|
-
# Configuration parameters: PreferredDelimiters.
|
299
|
-
Style/PercentLiteralDelimiters:
|
300
|
-
Exclude:
|
301
|
-
- 'ruff.gemspec'
|
302
|
-
|
303
|
-
# Offense count: 1
|
304
|
-
# Cop supports --auto-correct.
|
305
|
-
# Configuration parameters: AllowMultipleReturnValues.
|
306
|
-
Style/RedundantReturn:
|
307
|
-
Exclude:
|
308
|
-
- 'lib/ruff/effect.rb'
|
309
|
-
|
310
|
-
# Offense count: 2
|
311
|
-
# Cop supports --auto-correct.
|
312
|
-
# Configuration parameters: AllowAsExpressionSeparator.
|
313
|
-
Style/Semicolon:
|
314
|
-
Exclude:
|
315
|
-
- 'lib/ruff/objects.rb'
|
316
|
-
|
317
|
-
# Offense count: 38
|
318
|
-
# Cop supports --auto-correct.
|
319
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
320
|
-
# SupportedStyles: single_quotes, double_quotes
|
321
|
-
Style/StringLiterals:
|
322
|
-
Exclude:
|
323
|
-
- ',hoge.rb'
|
324
|
-
- ',test.rb'
|
325
|
-
- 'Gemfile'
|
326
|
-
- 'Rakefile'
|
327
|
-
- 'lib/ruff.rb'
|
328
|
-
- 'lib/ruff/standard.rb'
|
329
|
-
- 'lib/ruff/version.rb'
|
330
|
-
- 'ruff.gemspec'
|
331
|
-
|
332
|
-
# Offense count: 1
|
333
|
-
# Cop supports --auto-correct.
|
334
|
-
# Configuration parameters: EnforcedStyle.
|
335
|
-
# SupportedStyles: single_quotes, double_quotes
|
336
|
-
Style/StringLiteralsInInterpolation:
|
337
|
-
Exclude:
|
338
|
-
- 'Rakefile'
|
339
|
-
|
340
|
-
# Offense count: 1
|
341
|
-
# Cop supports --auto-correct.
|
342
|
-
# Configuration parameters: MinSize.
|
343
|
-
# SupportedStyles: percent, brackets
|
344
|
-
Style/SymbolArray:
|
345
|
-
EnforcedStyle: brackets
|
346
|
-
|
347
|
-
# Offense count: 1
|
348
|
-
# Cop supports --auto-correct.
|
349
|
-
# Configuration parameters: IgnoredMethods.
|
350
|
-
# IgnoredMethods: respond_to, define_method
|
351
|
-
Style/SymbolProc:
|
352
|
-
Exclude:
|
353
|
-
- 'lib/ruff/standard/defer.rb'
|
354
|
-
|
355
|
-
# Offense count: 2
|
356
|
-
# Cop supports --auto-correct.
|
357
|
-
Style/UnneededPercentQ:
|
358
|
-
Exclude:
|
359
|
-
- 'ruff.gemspec'
|
360
|
-
|
361
|
-
# Offense count: 5
|
362
|
-
# Cop supports --auto-correct.
|
363
|
-
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
364
|
-
# URISchemes: http, https
|
365
|
-
Metrics/LineLength:
|
366
|
-
Max: 117
|