ruby-vips 2.0.13 → 2.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +10 -0
  3. data/.rubocop_todo.yml +730 -0
  4. data/.travis.yml +13 -6
  5. data/CHANGELOG.md +8 -0
  6. data/README.md +5 -8
  7. data/Rakefile +6 -0
  8. data/VERSION +1 -1
  9. data/example/annotate.rb +2 -2
  10. data/example/daltonize8.rb +14 -14
  11. data/example/example2.rb +6 -6
  12. data/example/example3.rb +5 -5
  13. data/example/example4.rb +4 -4
  14. data/example/example5.rb +2 -2
  15. data/example/inheritance_with_refcount.rb +207 -207
  16. data/example/thumb.rb +10 -10
  17. data/example/trim8.rb +2 -2
  18. data/example/watermark.rb +14 -35
  19. data/example/wobble.rb +24 -24
  20. data/install-vips.sh +1 -1
  21. data/lib/vips.rb +335 -306
  22. data/lib/vips/access.rb +9 -9
  23. data/lib/vips/align.rb +7 -7
  24. data/lib/vips/angle.rb +8 -8
  25. data/lib/vips/angle45.rb +12 -12
  26. data/lib/vips/bandformat.rb +16 -16
  27. data/lib/vips/blend_mode.rb +34 -0
  28. data/lib/vips/coding.rb +11 -11
  29. data/lib/vips/compass_direction.rb +13 -13
  30. data/lib/vips/direction.rb +7 -7
  31. data/lib/vips/extend.rb +13 -13
  32. data/lib/vips/gobject.rb +94 -94
  33. data/lib/vips/gvalue.rb +232 -232
  34. data/lib/vips/image.rb +1329 -1335
  35. data/lib/vips/interesting.rb +10 -10
  36. data/lib/vips/interpolate.rb +51 -51
  37. data/lib/vips/interpretation.rb +25 -25
  38. data/lib/vips/kernel.rb +18 -18
  39. data/lib/vips/methods.rb +463 -283
  40. data/lib/vips/object.rb +208 -208
  41. data/lib/vips/operation.rb +323 -323
  42. data/lib/vips/operationboolean.rb +10 -10
  43. data/lib/vips/operationcomplex.rb +8 -8
  44. data/lib/vips/operationcomplex2.rb +6 -6
  45. data/lib/vips/operationcomplexget.rb +7 -7
  46. data/lib/vips/operationmath.rb +14 -14
  47. data/lib/vips/operationmath2.rb +6 -6
  48. data/lib/vips/operationrelational.rb +11 -11
  49. data/lib/vips/operationround.rb +7 -7
  50. data/lib/vips/size.rb +9 -9
  51. data/lib/vips/version.rb +1 -1
  52. data/ruby-vips.gemspec +6 -2
  53. metadata +29 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e509c29533461f0e4654d1dd116f61b033d589d9f78924bd197cb303fc0d9d0e
4
- data.tar.gz: bf53c311ee52c198b3288e6b11d773dda21403355b3704ecbc4652ce16d51d53
3
+ metadata.gz: 74183885f19e7d8d792099eb131da6ae94be9b4d34067fa2a0f82b72f3d02026
4
+ data.tar.gz: c3a1f642a7edd260ffeda5b408b7ef46c0f090d0098d208a74847574dfd2f1be
5
5
  SHA512:
6
- metadata.gz: 7fcdf3c4f3d66ac3550d17bc45606831a3337a41d8b5af151ff6103bdf0e891036e9ff568930e29f3e045543719801e48ec938310809c4e98af2f4f7ac695031
7
- data.tar.gz: 2ddd68fe1e1f9dcc2174757658d145d5d9777a18c27436758030e376049e956860f6b5d454fe2f1dc1728b17b27cbcf37e1fa3d301edee23a9a7b17f4d0ba874
6
+ metadata.gz: b87c9ed538391c1f8ca65fb16fb0ab9fa9b685cfddb8b8c016beed93c3d3ccabb5f6024487a191528595bac256e4dc8b3cae4d1aaee0506d1c24fef55aa65b41
7
+ data.tar.gz: f4686c49a18ad1bcf8cf95f70146815d17e3497edef62a525663b2046bcc6753eb075f379cd38e25e0c129b9afdc8e8e67e52116019a0a90b3c53a595c3d295e
@@ -0,0 +1,10 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.2
5
+
6
+ Gemspec/OrderedDependencies:
7
+ Enabled: false
8
+
9
+ Layout/AlignHash:
10
+ EnforcedLastArgumentHashStyle: ignore_implicit
@@ -0,0 +1,730 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2019-02-14 11:30:19 +0100 using RuboCop version 0.64.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: 43
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
12
+ # SupportedStyles: with_first_parameter, with_fixed_indentation
13
+ Layout/AlignParameters:
14
+ Exclude:
15
+ - 'example/inheritance_with_refcount.rb'
16
+ - 'lib/vips.rb'
17
+ - 'lib/vips/gvalue.rb'
18
+ - 'lib/vips/image.rb'
19
+ - 'lib/vips/object.rb'
20
+ - 'spec/vips_spec.rb'
21
+
22
+ # Offense count: 1
23
+ Layout/ConditionPosition:
24
+ Exclude:
25
+ - 'lib/vips/image.rb'
26
+
27
+ # Offense count: 2
28
+ # Cop supports --auto-correct.
29
+ Layout/EmptyLineAfterGuardClause:
30
+ Exclude:
31
+ - 'lib/vips/image.rb'
32
+
33
+ # Offense count: 10
34
+ # Cop supports --auto-correct.
35
+ # Configuration parameters: EnforcedStyle.
36
+ # SupportedStyles: empty_lines, no_empty_lines
37
+ Layout/EmptyLinesAroundBlockBody:
38
+ Exclude:
39
+ - 'lib/vips/image.rb'
40
+ - 'lib/vips/operation.rb'
41
+ - 'spec/image_spec.rb'
42
+ - 'spec/spec_helper.rb'
43
+ - 'spec/vips_spec.rb'
44
+
45
+ # Offense count: 31
46
+ # Cop supports --auto-correct.
47
+ # Configuration parameters: EnforcedStyle.
48
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
49
+ Layout/EmptyLinesAroundClassBody:
50
+ Exclude:
51
+ - 'example/inheritance_with_refcount.rb'
52
+ - 'lib/vips/gobject.rb'
53
+ - 'lib/vips/gvalue.rb'
54
+ - 'lib/vips/image.rb'
55
+ - 'lib/vips/interpolate.rb'
56
+ - 'lib/vips/methods.rb'
57
+ - 'lib/vips/object.rb'
58
+ - 'lib/vips/operation.rb'
59
+
60
+ # Offense count: 2
61
+ # Cop supports --auto-correct.
62
+ Layout/EmptyLinesAroundMethodBody:
63
+ Exclude:
64
+ - 'lib/vips.rb'
65
+ - 'lib/vips/gvalue.rb'
66
+
67
+ # Offense count: 38
68
+ # Cop supports --auto-correct.
69
+ # Configuration parameters: EnforcedStyle.
70
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
71
+ Layout/EmptyLinesAroundModuleBody:
72
+ Enabled: false
73
+
74
+ # Offense count: 5
75
+ # Cop supports --auto-correct.
76
+ # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
77
+ Layout/ExtraSpacing:
78
+ Exclude:
79
+ - 'example/daltonize8.rb'
80
+ - 'example/watermark.rb'
81
+ - 'lib/vips.rb'
82
+
83
+ # Offense count: 9
84
+ # Cop supports --auto-correct.
85
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
86
+ # SupportedStyles: special_inside_parentheses, consistent, align_brackets
87
+ Layout/IndentArray:
88
+ Exclude:
89
+ - 'example/daltonize8.rb'
90
+ - 'example/example5.rb'
91
+ - 'spec/image_spec.rb'
92
+
93
+ # Offense count: 2
94
+ # Cop supports --auto-correct.
95
+ # Configuration parameters: IndentationWidth.
96
+ Layout/IndentAssignment:
97
+ Exclude:
98
+ - 'lib/vips/image.rb'
99
+
100
+ # Offense count: 5
101
+ # Cop supports --auto-correct.
102
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
103
+ # SupportedStyles: special_inside_parentheses, consistent, align_braces
104
+ Layout/IndentHash:
105
+ Exclude:
106
+ - 'lib/vips.rb'
107
+ - 'lib/vips/image.rb'
108
+ - 'lib/vips/object.rb'
109
+ - 'lib/vips/operation.rb'
110
+
111
+ # Offense count: 4
112
+ # Cop supports --auto-correct.
113
+ Layout/LeadingCommentSpace:
114
+ Exclude:
115
+ - 'example/daltonize8.rb'
116
+ - 'example/example4.rb'
117
+ - 'example/example5.rb'
118
+
119
+ # Offense count: 1
120
+ # Cop supports --auto-correct.
121
+ # Configuration parameters: EnforcedStyle.
122
+ # SupportedStyles: symmetrical, new_line, same_line
123
+ Layout/MultilineArrayBraceLayout:
124
+ Exclude:
125
+ - 'example/example5.rb'
126
+
127
+ # Offense count: 16
128
+ # Cop supports --auto-correct.
129
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
130
+ # SupportedStyles: aligned, indented
131
+ Layout/MultilineOperationIndentation:
132
+ Exclude:
133
+ - 'lib/vips/gvalue.rb'
134
+ - 'lib/vips/image.rb'
135
+ - 'lib/vips/operation.rb'
136
+
137
+ # Offense count: 2
138
+ # Cop supports --auto-correct.
139
+ Layout/RescueEnsureAlignment:
140
+ Exclude:
141
+ - 'lib/vips/image.rb'
142
+
143
+ # Offense count: 5
144
+ # Cop supports --auto-correct.
145
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
146
+ # SupportedStyles: space, no_space
147
+ # SupportedStylesForEmptyBraces: space, no_space
148
+ Layout/SpaceBeforeBlockBraces:
149
+ Exclude:
150
+ - 'lib/vips/image.rb'
151
+ - 'spec/vips_spec.rb'
152
+
153
+ # Offense count: 44
154
+ # Cop supports --auto-correct.
155
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
156
+ # SupportedStyles: space, no_space
157
+ # SupportedStylesForEmptyBraces: space, no_space
158
+ Layout/SpaceInsideBlockBraces:
159
+ Exclude:
160
+ - 'lib/vips/gvalue.rb'
161
+ - 'lib/vips/image.rb'
162
+ - 'lib/vips/object.rb'
163
+ - 'lib/vips/operation.rb'
164
+ - 'spec/vips_spec.rb'
165
+
166
+ # Offense count: 12
167
+ # Cop supports --auto-correct.
168
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
169
+ # SupportedStyles: space, no_space, compact
170
+ # SupportedStylesForEmptyBraces: space, no_space
171
+ Layout/SpaceInsideHashLiteralBraces:
172
+ Exclude:
173
+ - 'lib/vips/image.rb'
174
+ - 'spec/vips_spec.rb'
175
+
176
+ # Offense count: 9
177
+ # Cop supports --auto-correct.
178
+ # Configuration parameters: EnforcedStyle.
179
+ # SupportedStyles: final_newline, final_blank_line
180
+ Layout/TrailingBlankLines:
181
+ Exclude:
182
+ - 'example/inheritance_with_refcount.rb'
183
+ - 'example/thumb.rb'
184
+ - 'lib/vips.rb'
185
+ - 'lib/vips/blend_mode.rb'
186
+ - 'lib/vips/object.rb'
187
+ - 'lib/vips/version.rb'
188
+ - 'ruby-vips.gemspec'
189
+ - 'spec/image_spec.rb'
190
+ - 'spec/vips_spec.rb'
191
+
192
+ # Offense count: 2
193
+ Lint/HandleExceptions:
194
+ Exclude:
195
+ - 'lib/vips/image.rb'
196
+
197
+ # Offense count: 5
198
+ Lint/IneffectiveAccessModifier:
199
+ Exclude:
200
+ - 'lib/vips/image.rb'
201
+
202
+ # Offense count: 1
203
+ Lint/ParenthesesAsGroupedExpression:
204
+ Exclude:
205
+ - 'lib/vips.rb'
206
+
207
+ # Offense count: 1
208
+ Lint/ShadowingOuterLocalVariable:
209
+ Exclude:
210
+ - 'lib/vips/operation.rb'
211
+
212
+ # Offense count: 10
213
+ # Cop supports --auto-correct.
214
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
215
+ Lint/UnusedBlockArgument:
216
+ Exclude:
217
+ - 'lib/vips.rb'
218
+ - 'lib/vips/image.rb'
219
+ - 'lib/vips/operation.rb'
220
+
221
+ # Offense count: 7
222
+ # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
223
+ Lint/UselessAccessModifier:
224
+ Exclude:
225
+ - 'lib/vips/image.rb'
226
+ - 'lib/vips/object.rb'
227
+ - 'lib/vips/operation.rb'
228
+
229
+ # Offense count: 11
230
+ Lint/UselessAssignment:
231
+ Exclude:
232
+ - 'example/example1.rb'
233
+ - 'example/inheritance_with_refcount.rb'
234
+ - 'example/thumb.rb'
235
+ - 'example/trim8.rb'
236
+ - 'lib/vips/operation.rb'
237
+ - 'spec/image_spec.rb'
238
+
239
+ # Offense count: 6
240
+ Lint/UselessComparison:
241
+ Exclude:
242
+ - 'spec/image_spec.rb'
243
+
244
+ # Offense count: 7
245
+ Metrics/AbcSize:
246
+ Max: 124
247
+
248
+ # Offense count: 6
249
+ # Configuration parameters: CountComments, ExcludedMethods.
250
+ # ExcludedMethods: refine
251
+ Metrics/BlockLength:
252
+ Max: 508
253
+
254
+ # Offense count: 3
255
+ # Configuration parameters: CountComments.
256
+ Metrics/ClassLength:
257
+ Max: 517
258
+
259
+ # Offense count: 6
260
+ Metrics/CyclomaticComplexity:
261
+ Max: 28
262
+
263
+ # Offense count: 11
264
+ # Configuration parameters: CountComments, ExcludedMethods.
265
+ Metrics/MethodLength:
266
+ Max: 126
267
+
268
+ # Offense count: 1
269
+ # Configuration parameters: CountComments.
270
+ Metrics/ModuleLength:
271
+ Max: 165
272
+
273
+ # Offense count: 4
274
+ Metrics/PerceivedComplexity:
275
+ Max: 32
276
+
277
+ # Offense count: 8
278
+ Naming/AccessorMethodName:
279
+ Exclude:
280
+ - 'example/inheritance_with_refcount.rb'
281
+ - 'lib/vips.rb'
282
+ - 'lib/vips/image.rb'
283
+ - 'lib/vips/operation.rb'
284
+
285
+ # Offense count: 1
286
+ # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
287
+ # 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
288
+ Naming/FileName:
289
+ Exclude:
290
+ - 'lib/ruby-vips.rb'
291
+
292
+ # Offense count: 1
293
+ # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
294
+ # NamePrefix: is_, has_, have_
295
+ # NamePrefixBlacklist: is_, has_, have_
296
+ # NameWhitelist: is_a?
297
+ # MethodDefinitionMacros: define_method, define_singleton_method
298
+ Naming/PredicateName:
299
+ Exclude:
300
+ - 'spec/**/*'
301
+ - 'lib/vips/image.rb'
302
+
303
+ # Offense count: 6
304
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
305
+ # AllowedNames: io, id, to, by, on, in, at, ip, db
306
+ Naming/UncommunicativeMethodParamName:
307
+ Exclude:
308
+ - 'lib/vips.rb'
309
+ - 'lib/vips/image.rb'
310
+
311
+ # Offense count: 1
312
+ # Cop supports --auto-correct.
313
+ Performance/RedundantBlockCall:
314
+ Exclude:
315
+ - 'lib/vips/operation.rb'
316
+
317
+ # Offense count: 1
318
+ # Cop supports --auto-correct.
319
+ # Configuration parameters: EnforcedStyle.
320
+ # SupportedStyles: prefer_alias, prefer_alias_method
321
+ Style/Alias:
322
+ Exclude:
323
+ - 'lib/vips/image.rb'
324
+
325
+ # Offense count: 2
326
+ # Cop supports --auto-correct.
327
+ # Configuration parameters: EnforcedStyle.
328
+ # SupportedStyles: always, conditionals
329
+ Style/AndOr:
330
+ Exclude:
331
+ - 'example/example2.rb'
332
+ - 'example/watermark.rb'
333
+
334
+ # Offense count: 3
335
+ # Cop supports --auto-correct.
336
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
337
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining
338
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
339
+ # FunctionalMethods: let, let!, subject, watch
340
+ # IgnoredMethods: lambda, proc, it
341
+ Style/BlockDelimiters:
342
+ Exclude:
343
+ - 'example/inheritance_with_refcount.rb'
344
+ - 'lib/vips.rb'
345
+ - 'lib/vips/operation.rb'
346
+
347
+ # Offense count: 6
348
+ # Cop supports --auto-correct.
349
+ # Configuration parameters: EnforcedStyle.
350
+ # SupportedStyles: braces, no_braces, context_dependent
351
+ Style/BracesAroundHashParameters:
352
+ Exclude:
353
+ - 'spec/vips_spec.rb'
354
+
355
+ # Offense count: 5
356
+ Style/ClassVars:
357
+ Exclude:
358
+ - 'lib/vips/image.rb'
359
+
360
+ # Offense count: 164
361
+ # Cop supports --auto-correct.
362
+ Style/ColonMethodCall:
363
+ Exclude:
364
+ - 'example/example1.rb'
365
+ - 'example/example2.rb'
366
+ - 'example/example3.rb'
367
+ - 'example/example4.rb'
368
+ - 'example/inheritance_with_refcount.rb'
369
+ - 'lib/vips.rb'
370
+ - 'lib/vips/gobject.rb'
371
+ - 'lib/vips/gvalue.rb'
372
+ - 'lib/vips/image.rb'
373
+ - 'lib/vips/interpolate.rb'
374
+ - 'lib/vips/object.rb'
375
+ - 'lib/vips/operation.rb'
376
+ - 'spec/image_spec.rb'
377
+ - 'spec/spec_helper.rb'
378
+ - 'spec/vips_spec.rb'
379
+
380
+ # Offense count: 3
381
+ # Cop supports --auto-correct.
382
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
383
+ # SupportedStyles: assign_to_condition, assign_inside_condition
384
+ Style/ConditionalAssignment:
385
+ Exclude:
386
+ - 'lib/vips.rb'
387
+
388
+ # Offense count: 43
389
+ Style/Documentation:
390
+ Exclude:
391
+ - 'spec/**/*'
392
+ - 'test/**/*'
393
+ - 'example/inheritance_with_refcount.rb'
394
+ - 'example/wobble.rb'
395
+ - 'lib/vips.rb'
396
+ - 'lib/vips/gobject.rb'
397
+ - 'lib/vips/gvalue.rb'
398
+ - 'lib/vips/image.rb'
399
+ - 'lib/vips/interpolate.rb'
400
+ - 'lib/vips/object.rb'
401
+ - 'lib/vips/operation.rb'
402
+
403
+ # Offense count: 2
404
+ # Cop supports --auto-correct.
405
+ Style/Encoding:
406
+ Exclude:
407
+ - 'Rakefile'
408
+ - 'ruby-vips.gemspec'
409
+
410
+ # Offense count: 1
411
+ # Cop supports --auto-correct.
412
+ Style/EvenOdd:
413
+ Exclude:
414
+ - 'lib/vips/image.rb'
415
+
416
+ # Offense count: 2
417
+ # Cop supports --auto-correct.
418
+ Style/ExpandPathArguments:
419
+ Exclude:
420
+ - 'ruby-vips.gemspec'
421
+ - 'spec/spec_helper.rb'
422
+
423
+ # Offense count: 5
424
+ # Configuration parameters: AllowedVariables.
425
+ Style/GlobalVars:
426
+ Exclude:
427
+ - 'example/inheritance_with_refcount.rb'
428
+
429
+ # Offense count: 5
430
+ # Configuration parameters: MinBodyLength.
431
+ Style/GuardClause:
432
+ Exclude:
433
+ - 'example/inheritance_with_refcount.rb'
434
+ - 'lib/vips.rb'
435
+
436
+ # Offense count: 59
437
+ # Cop supports --auto-correct.
438
+ # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
439
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
440
+ Style/HashSyntax:
441
+ Exclude:
442
+ - 'Rakefile'
443
+ - 'example/annotate.rb'
444
+ - 'example/daltonize8.rb'
445
+ - 'example/example3.rb'
446
+ - 'example/example5.rb'
447
+ - 'example/watermark.rb'
448
+ - 'lib/vips/image.rb'
449
+ - 'lib/vips/object.rb'
450
+ - 'lib/vips/operation.rb'
451
+ - 'spec/image_spec.rb'
452
+ - 'spec/spec_helper.rb'
453
+ - 'spec/vips_spec.rb'
454
+
455
+ # Offense count: 30
456
+ # Cop supports --auto-correct.
457
+ Style/IfUnlessModifier:
458
+ Exclude:
459
+ - 'example/daltonize8.rb'
460
+ - 'example/example2.rb'
461
+ - 'example/example5.rb'
462
+ - 'example/inheritance_with_refcount.rb'
463
+ - 'lib/vips.rb'
464
+ - 'lib/vips/gvalue.rb'
465
+ - 'lib/vips/image.rb'
466
+ - 'lib/vips/operation.rb'
467
+ - 'ruby-vips.gemspec'
468
+
469
+ # Offense count: 4
470
+ # Cop supports --auto-correct.
471
+ # Configuration parameters: EnforcedStyle.
472
+ # SupportedStyles: call, braces
473
+ Style/LambdaCall:
474
+ Exclude:
475
+ - 'lib/vips/image.rb'
476
+
477
+ # Offense count: 11
478
+ # Cop supports --auto-correct.
479
+ Style/LineEndConcatenation:
480
+ Exclude:
481
+ - 'lib/vips/gvalue.rb'
482
+ - 'lib/vips/image.rb'
483
+ - 'lib/vips/operation.rb'
484
+
485
+ # Offense count: 81
486
+ # Cop supports --auto-correct.
487
+ # Configuration parameters: EnforcedStyle.
488
+ # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
489
+ Style/MethodDefParentheses:
490
+ Exclude:
491
+ - 'example/inheritance_with_refcount.rb'
492
+ - 'lib/vips.rb'
493
+ - 'lib/vips/gobject.rb'
494
+ - 'lib/vips/gvalue.rb'
495
+ - 'lib/vips/image.rb'
496
+ - 'lib/vips/interpolate.rb'
497
+ - 'lib/vips/object.rb'
498
+ - 'lib/vips/operation.rb'
499
+
500
+ # Offense count: 2
501
+ Style/MethodMissingSuper:
502
+ Exclude:
503
+ - 'lib/vips/image.rb'
504
+
505
+ # Offense count: 2
506
+ Style/MissingRespondToMissing:
507
+ Exclude:
508
+ - 'lib/vips/image.rb'
509
+
510
+ # Offense count: 1
511
+ # Cop supports --auto-correct.
512
+ # Configuration parameters: EnforcedStyle.
513
+ # SupportedStyles: module_function, extend_self
514
+ Style/ModuleFunction:
515
+ Exclude:
516
+ - 'spec/spec_helper.rb'
517
+
518
+ # Offense count: 5
519
+ Style/MultilineTernaryOperator:
520
+ Exclude:
521
+ - 'lib/vips/image.rb'
522
+
523
+ # Offense count: 1
524
+ Style/MultipleComparison:
525
+ Exclude:
526
+ - 'lib/vips/image.rb'
527
+
528
+ # Offense count: 6
529
+ # Cop supports --auto-correct.
530
+ Style/MutableConstant:
531
+ Exclude:
532
+ - 'example/inheritance_with_refcount.rb'
533
+ - 'lib/vips.rb'
534
+ - 'lib/vips/object.rb'
535
+ - 'lib/vips/operation.rb'
536
+ - 'lib/vips/version.rb'
537
+
538
+ # Offense count: 6
539
+ # Cop supports --auto-correct.
540
+ # Configuration parameters: Whitelist.
541
+ # Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
542
+ Style/NestedParenthesizedCalls:
543
+ Exclude:
544
+ - 'lib/vips/image.rb'
545
+
546
+ # Offense count: 3
547
+ # Cop supports --auto-correct.
548
+ # Configuration parameters: EnforcedStyle, MinBodyLength.
549
+ # SupportedStyles: skip_modifier_ifs, always
550
+ Style/Next:
551
+ Exclude:
552
+ - 'lib/vips/operation.rb'
553
+
554
+ # Offense count: 14
555
+ # Cop supports --auto-correct.
556
+ # Configuration parameters: EnforcedStyle.
557
+ # SupportedStyles: predicate, comparison
558
+ Style/NilComparison:
559
+ Exclude:
560
+ - 'lib/vips/gvalue.rb'
561
+ - 'lib/vips/image.rb'
562
+ - 'lib/vips/interpolate.rb'
563
+ - 'lib/vips/operation.rb'
564
+
565
+ # Offense count: 2
566
+ # Cop supports --auto-correct.
567
+ # Configuration parameters: IncludeSemanticChanges.
568
+ Style/NonNilCheck:
569
+ Exclude:
570
+ - 'lib/vips.rb'
571
+ - 'lib/vips/operation.rb'
572
+
573
+ # Offense count: 4
574
+ # Cop supports --auto-correct.
575
+ # Configuration parameters: Strict.
576
+ Style/NumericLiterals:
577
+ MinDigits: 9
578
+
579
+ # Offense count: 5
580
+ # Cop supports --auto-correct.
581
+ # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
582
+ # SupportedStyles: predicate, comparison
583
+ Style/NumericPredicate:
584
+ Exclude:
585
+ - 'spec/**/*'
586
+ - 'lib/vips/image.rb'
587
+ - 'lib/vips/operation.rb'
588
+
589
+ # Offense count: 1
590
+ # Cop supports --auto-correct.
591
+ # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
592
+ Style/ParenthesesAroundCondition:
593
+ Exclude:
594
+ - 'lib/vips/image.rb'
595
+
596
+ # Offense count: 4
597
+ # Cop supports --auto-correct.
598
+ # Configuration parameters: EnforcedStyle.
599
+ # SupportedStyles: short, verbose
600
+ Style/PreferredHashMethods:
601
+ Exclude:
602
+ - 'lib/vips/operation.rb'
603
+
604
+ # Offense count: 2
605
+ # Cop supports --auto-correct.
606
+ Style/Proc:
607
+ Exclude:
608
+ - 'lib/vips.rb'
609
+ - 'lib/vips/operation.rb'
610
+
611
+ # Offense count: 1
612
+ # Cop supports --auto-correct.
613
+ Style/RedundantConditional:
614
+ Exclude:
615
+ - 'lib/vips/gvalue.rb'
616
+
617
+ # Offense count: 1
618
+ # Cop supports --auto-correct.
619
+ Style/RedundantParentheses:
620
+ Exclude:
621
+ - 'lib/vips/image.rb'
622
+
623
+ # Offense count: 15
624
+ # Cop supports --auto-correct.
625
+ # Configuration parameters: AllowMultipleReturnValues.
626
+ Style/RedundantReturn:
627
+ Exclude:
628
+ - 'lib/vips/gvalue.rb'
629
+ - 'lib/vips/image.rb'
630
+ - 'lib/vips/object.rb'
631
+ - 'lib/vips/operation.rb'
632
+
633
+ # Offense count: 4
634
+ # Cop supports --auto-correct.
635
+ Style/RedundantSelf:
636
+ Exclude:
637
+ - 'example/inheritance_with_refcount.rb'
638
+ - 'lib/vips/gobject.rb'
639
+
640
+ # Offense count: 1
641
+ # Cop supports --auto-correct.
642
+ # Configuration parameters: EnforcedStyle.
643
+ # SupportedStyles: implicit, explicit
644
+ Style/RescueStandardError:
645
+ Exclude:
646
+ - 'lib/vips/image.rb'
647
+
648
+ # Offense count: 1
649
+ # Cop supports --auto-correct.
650
+ Style/SelfAssignment:
651
+ Exclude:
652
+ - 'example/daltonize8.rb'
653
+
654
+ # Offense count: 2
655
+ # Cop supports --auto-correct.
656
+ # Configuration parameters: EnforcedStyle.
657
+ # SupportedStyles: use_perl_names, use_english_names
658
+ Style/SpecialGlobalVars:
659
+ Exclude:
660
+ - 'example/inheritance_with_refcount.rb'
661
+ - 'lib/vips.rb'
662
+
663
+ # Offense count: 2
664
+ # Cop supports --auto-correct.
665
+ Style/StderrPuts:
666
+ Exclude:
667
+ - 'Rakefile'
668
+
669
+ # Offense count: 191
670
+ # Cop supports --auto-correct.
671
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
672
+ # SupportedStyles: single_quotes, double_quotes
673
+ Style/StringLiterals:
674
+ Exclude:
675
+ - 'Rakefile'
676
+ - 'example/annotate.rb'
677
+ - 'example/example1.rb'
678
+ - 'example/example2.rb'
679
+ - 'example/example3.rb'
680
+ - 'example/example4.rb'
681
+ - 'example/inheritance_with_refcount.rb'
682
+ - 'lib/vips.rb'
683
+ - 'lib/vips/gvalue.rb'
684
+ - 'lib/vips/image.rb'
685
+ - 'lib/vips/object.rb'
686
+ - 'lib/vips/operation.rb'
687
+ - 'lib/vips/version.rb'
688
+ - 'ruby-vips.gemspec'
689
+ - 'spec/vips_spec.rb'
690
+
691
+ # Offense count: 15
692
+ # Cop supports --auto-correct.
693
+ # Configuration parameters: MinSize.
694
+ # SupportedStyles: percent, brackets
695
+ Style/SymbolArray:
696
+ EnforcedStyle: brackets
697
+
698
+ # Offense count: 1
699
+ # Cop supports --auto-correct.
700
+ # Configuration parameters: EnforcedStyleForMultiline.
701
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
702
+ Style/TrailingCommaInHashLiteral:
703
+ Exclude:
704
+ - 'lib/vips/image.rb'
705
+
706
+ # Offense count: 2
707
+ # Cop supports --auto-correct.
708
+ Style/UnneededInterpolation:
709
+ Exclude:
710
+ - 'lib/vips/image.rb'
711
+
712
+ # Offense count: 1
713
+ # Cop supports --auto-correct.
714
+ # Configuration parameters: MinSize, WordRegex.
715
+ # SupportedStyles: percent, brackets
716
+ Style/WordArray:
717
+ EnforcedStyle: brackets
718
+
719
+ # Offense count: 6
720
+ # Cop supports --auto-correct.
721
+ Style/ZeroLengthPredicate:
722
+ Exclude:
723
+ - 'lib/vips/image.rb'
724
+ - 'lib/vips/operation.rb'
725
+
726
+ # Offense count: 161
727
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
728
+ # URISchemes: http, https
729
+ Metrics/LineLength:
730
+ Max: 179