rmagick 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rmagick might be problematic. Click here for more details.

Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.appveyor.yml +32 -6
  3. data/.circleci/config.yml +1 -1
  4. data/.gitignore +1 -0
  5. data/.rubocop.yml +9 -9
  6. data/.rubocop_todo.yml +351 -17
  7. data/.travis.yml +14 -1
  8. data/CHANGELOG.md +55 -0
  9. data/CONTRIBUTING.md +11 -18
  10. data/README.textile +2 -2
  11. data/Rakefile +1 -1
  12. data/before_install_linux.sh +56 -19
  13. data/doc/ex/sparse_color.rb +5 -0
  14. data/doc/magick.html +9 -4
  15. data/doc/rvg.html +2 -2
  16. data/doc/rvgtut.html +1 -1
  17. data/examples/histogram.rb +1 -1
  18. data/ext/RMagick/extconf.rb +90 -264
  19. data/ext/RMagick/rmagick.c +28 -6
  20. data/ext/RMagick/rmagick.h +53 -199
  21. data/ext/RMagick/rmdraw.c +52 -70
  22. data/ext/RMagick/rmenum.c +332 -274
  23. data/ext/RMagick/rmfill.c +62 -112
  24. data/ext/RMagick/rmilist.c +27 -62
  25. data/ext/RMagick/rmimage.c +424 -634
  26. data/ext/RMagick/rminfo.c +46 -37
  27. data/ext/RMagick/rmkinfo.c +47 -42
  28. data/ext/RMagick/rmmain.c +125 -180
  29. data/ext/RMagick/rmmontage.c +5 -5
  30. data/ext/RMagick/rmpixel.c +133 -62
  31. data/ext/RMagick/rmstruct.c +14 -181
  32. data/ext/RMagick/rmutil.c +195 -111
  33. data/lib/rmagick/version.rb +2 -3
  34. data/lib/rvg/deep_equal.rb +1 -1
  35. data/lib/rvg/misc.rb +4 -4
  36. data/lib/rvg/units.rb +2 -2
  37. data/rmagick.gemspec +2 -2
  38. data/spec/rmagick/ImageList1_spec.rb +2 -2
  39. data/spec/rmagick/draw_spec.rb +4 -4
  40. data/spec/rmagick/image/composite_spec.rb +6 -1
  41. data/spec/rmagick/image/properties_spec.rb +8 -8
  42. data/test/Draw.rb +414 -0
  43. data/test/Enum.rb +76 -0
  44. data/test/Fill.rb +93 -0
  45. data/test/Image1.rb +9 -1
  46. data/test/Image2.rb +14 -4
  47. data/test/Image3.rb +73 -3
  48. data/test/ImageList1.rb +22 -9
  49. data/test/ImageList2.rb +41 -9
  50. data/test/Image_attributes.rb +45 -8
  51. data/test/Info.rb +102 -6
  52. data/test/Magick.rb +8 -1
  53. data/test/PolaroidOptions.rb +23 -0
  54. data/test/test_all_basic.rb +4 -0
  55. metadata +28 -8
  56. data/.hound.yml +0 -2
  57. data/wercker.yml +0 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd1b2d7e462a34be69913fc0315b6617b8043ca67c05b270193d1e974beacd73
4
- data.tar.gz: 9d9f902fdc9fcc7a6e444bf7e101af46bf85ef5edcdc53897753d48bb23ca942
3
+ metadata.gz: 14fbc044f6437f806685330840ec7a65eca53394c52e9c83bb125764cbcfcec7
4
+ data.tar.gz: 5497e651500e3bcf58c1055e68fac7a5f754757119c03a3b6916663660c53ade
5
5
  SHA512:
6
- metadata.gz: baa7de09c1c1691354b11f7734d447c5f25cd78d1f2633c493e4f53bf0947b7aa235a6d4e2ee97608359edf7e9569bfc7f4a2298fedd8211de82595c250ecc34
7
- data.tar.gz: 4ade0d3f0c83db16296321c1dabe4f0e8d5e886ac6b7a8449f3db6022783fa1d95553dbafc8843ca883fe76176e4054bde2329795850b453906b45804e538791
6
+ metadata.gz: 14c5cabe80554f502aef129861aa8ba0fb0eb7d2c5ad37a8ea4120a2d600912fd8dcb4c40cca5e1c2d55a2372f82e54b885ec53acf69a1af227cc3ca553084d3
7
+ data.tar.gz: f72d9459f44f9680a3dd30a96d948e70aefceefa8b4b751bfd3286d36e06d1b834f9b1c850c119ebc61e6f2a7dde7167f6a44f554d56eccddb68151601782d7a
@@ -1,12 +1,38 @@
1
+ cache:
2
+ - vendor/bundle -> .appveyor.yml
3
+
1
4
  environment:
2
5
  matrix:
3
- - RUBY_VERSION: "24-x64"
6
+ - RUBY_VERSION: 23-x64
7
+ IMAGEMAGICK_VERSION: 6.8.9
8
+ PATCH_VERSION: 10
9
+ - RUBY_VERSION: 23-x64
10
+ IMAGEMAGICK_VERSION: 6.9.10
11
+ PATCH_VERSION: 40
12
+ - RUBY_VERSION: 24-x64
13
+ IMAGEMAGICK_VERSION: 6.8.9
14
+ PATCH_VERSION: 10
15
+ - RUBY_VERSION: 24-x64
16
+ IMAGEMAGICK_VERSION: 6.9.10
17
+ PATCH_VERSION: 40
18
+ - RUBY_VERSION: 25-x64
19
+ IMAGEMAGICK_VERSION: 6.8.9
20
+ PATCH_VERSION: 10
21
+ - RUBY_VERSION: 25-x64
22
+ IMAGEMAGICK_VERSION: 6.9.10
23
+ PATCH_VERSION: 40
24
+ - RUBY_VERSION: 26-x64
25
+ IMAGEMAGICK_VERSION: 6.8.9
26
+ PATCH_VERSION: 10
27
+ - RUBY_VERSION: 26-x64
28
+ IMAGEMAGICK_VERSION: 6.9.10
29
+ PATCH_VERSION: 40
4
30
 
5
31
  install:
6
- - appveyor DownloadFile https://ftp.icm.edu.pl/pub/graphics/ImageMagick/binaries/ImageMagick-6.8.9-10-Q16-x64-dll.exe
7
- - ImageMagick-6.8.9-10-Q16-x64-dll.exe /VERYSILENT /TASKS=install_Devel
8
- - SET PATH=C:\Ruby%RUBY_VERSION%\bin;C:\Program Files\ImageMagick-6.8.9-Q16;%PATH%
9
- - bundle install
32
+ - appveyor-retry appveyor DownloadFile https://ftp.icm.edu.pl/pub/graphics/ImageMagick/binaries/ImageMagick-%IMAGEMAGICK_VERSION%-%PATCH_VERSION%-Q16-x64-dll.exe
33
+ - ImageMagick-%IMAGEMAGICK_VERSION%-%PATCH_VERSION%-Q16-x64-dll.exe /VERYSILENT /TASKS=install_Devel
34
+ - SET PATH=C:\Ruby%RUBY_VERSION%\bin;C:\Program Files\ImageMagick-%IMAGEMAGICK_VERSION%-Q16;%PATH%
35
+ - bundle install --path=vendor/bundle
10
36
 
11
37
  build: off
12
38
 
@@ -16,4 +42,4 @@ before_test:
16
42
  - bundle -v
17
43
 
18
44
  test_script:
19
- - rake -rdevkit
45
+ - bundle exec rake -rdevkit
@@ -17,7 +17,7 @@ jobs:
17
17
  - run:
18
18
  name: setup linux
19
19
  command: |
20
- IMAGEMAGICK_VERSION=6.8.9-10 bash before_install_linux.sh
20
+ IMAGEMAGICK_VERSION=6.9.10-40 bash before_install_linux.sh
21
21
 
22
22
  - run:
23
23
  name: install dependencies
data/.gitignore CHANGED
@@ -13,6 +13,7 @@ rdoc
13
13
  spec/reports
14
14
  test/tmp
15
15
  test/version_tmp
16
+ vendor/bundle
16
17
  tmp
17
18
  *.bundle
18
19
  *.so
@@ -1,13 +1,13 @@
1
1
  inherit_from:
2
- - .rubocop_todo.yml
2
+ - .rubocop_todo.yml
3
3
 
4
- # Custom configuration, edit with care!
4
+ require:
5
+ - rubocop-rspec
5
6
 
6
- # Fixing this issues cause some test to fail
7
- Lint/UnifiedInteger:
8
- Enabled: false
9
-
10
- Metrics/ClassLength:
11
- Max: 500
7
+ AllCops:
8
+ DefaultFormatter: fuubar
9
+ EnabledByDefault: true
10
+ TargetRubyVersion: 2.3
12
11
  Exclude:
13
- - test/**/*
12
+ - 'vendor/bundle/**/*'
13
+ - '**/*\.spec'
@@ -1,12 +1,62 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2018-10-08 19:33:24 +0300 using RuboCop version 0.59.2.
3
+ # on 2019-03-08 22:06:23 -0800 using RuboCop version 0.64.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 18
9
+ # Offense count: 12
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: Categories, ExpectedOrder.
12
+ # ExpectedOrder: module_inclusion, constants, public_class_methods, initializer, public_methods, protected_methods, private_methods
13
+ Layout/ClassStructure:
14
+ Exclude:
15
+ - 'examples/histogram.rb'
16
+ - 'lib/rmagick_internal.rb'
17
+ - 'lib/rvg/embellishable.rb'
18
+ - 'lib/rvg/misc.rb'
19
+ - 'lib/rvg/pathdata.rb'
20
+ - 'lib/rvg/rvg.rb'
21
+ - 'lib/rvg/to_c.rb'
22
+
23
+ # Offense count: 8
24
+ # Cop supports --auto-correct.
25
+ Layout/FirstArrayElementLineBreak:
26
+ Exclude:
27
+ - 'doc/ex/add_noise.rb'
28
+ - 'doc/ex/clip_path.rb'
29
+ - 'doc/ex/crop_with_gravity.rb'
30
+ - 'doc/ex/polyline.rb'
31
+ - 'examples/crop_with_gravity.rb'
32
+ - 'lib/rmagick_internal.rb'
33
+ - 'lib/rvg/stylable.rb'
34
+ - 'test/Image3.rb'
35
+
36
+ # Offense count: 5
37
+ # Cop supports --auto-correct.
38
+ Layout/FirstHashElementLineBreak:
39
+ Exclude:
40
+ - 'doc/ex/writing_mode01.rb'
41
+ - 'doc/ex/writing_mode02.rb'
42
+ - 'lib/rmagick_internal.rb'
43
+
44
+ # Offense count: 23
45
+ # Cop supports --auto-correct.
46
+ Layout/FirstMethodArgumentLineBreak:
47
+ Exclude:
48
+ - 'doc/ex/axes.rb'
49
+ - 'doc/ex/drawcomp.rb'
50
+ - 'doc/ex/fonts.rb'
51
+ - 'doc/ex/get_type_metrics.rb'
52
+ - 'doc/ex/polygon.rb'
53
+ - 'doc/ex/polygon01.rb'
54
+ - 'doc/ex/polyline01.rb'
55
+ - 'doc/ex/sparse_color.rb'
56
+ - 'examples/vignette.rb'
57
+ - 'lib/rmagick_internal.rb'
58
+
59
+ # Offense count: 16
10
60
  # Cop supports --auto-correct.
11
61
  # Configuration parameters: EnforcedStyle.
12
62
  # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
@@ -24,19 +74,38 @@ Layout/IndentHeredoc:
24
74
  - 'ext/RMagick/extconf.rb'
25
75
  - 'lib/rvg/to_c.rb'
26
76
 
27
- # Offense count: 1
77
+ # Offense count: 95
28
78
  # Cop supports --auto-correct.
29
79
  # Configuration parameters: EnforcedStyle.
30
- # SupportedStyles: symmetrical, new_line, same_line
31
- Layout/MultilineArrayBraceLayout:
32
- Exclude:
33
- - 'ext/RMagick/extconf.rb'
80
+ # SupportedTypes: block, case, class, if, kwbegin, module
81
+ # SupportedStyles: same_line, new_line
82
+ Layout/MultilineAssignmentLayout:
83
+ Enabled: false
34
84
 
35
85
  # Offense count: 1
86
+ Lint/EmptyWhen:
87
+ Exclude:
88
+ - 'lib/rvg/misc.rb'
89
+
90
+ # Offense count: 2
36
91
  Lint/HandleExceptions:
37
92
  Exclude:
38
93
  - 'lib/rmagick_internal.rb'
39
94
 
95
+ # Offense count: 88
96
+ Lint/NumberConversion:
97
+ Exclude:
98
+ - 'doc/ex/get_pixels.rb'
99
+ - 'doc/ex/stegano.rb'
100
+ - 'examples/describe.rb'
101
+ - 'examples/thumbnail.rb'
102
+ - 'ext/RMagick/extconf.rb'
103
+ - 'lib/rmagick_internal.rb'
104
+ - 'lib/rvg/misc.rb'
105
+ - 'lib/rvg/to_c.rb'
106
+ - 'test/Import_Export.rb'
107
+ - 'test/Enum.rb'
108
+
40
109
  # Offense count: 1
41
110
  Lint/RescueException:
42
111
  Exclude:
@@ -47,6 +116,10 @@ Lint/ReturnInVoidContext:
47
116
  Exclude:
48
117
  - 'lib/rmagick_internal.rb'
49
118
 
119
+ Lint/UselessComparison:
120
+ Exclude:
121
+ - 'test/Enum.rb'
122
+
50
123
  # Offense count: 6
51
124
  # Configuration parameters: CheckForMethodsWithNoSideEffects.
52
125
  Lint/Void:
@@ -54,11 +127,11 @@ Lint/Void:
54
127
  - 'lib/rmagick_internal.rb'
55
128
  - 'lib/rvg/embellishable.rb'
56
129
 
57
- # Offense count: 170
130
+ # Offense count: 167
58
131
  Metrics/AbcSize:
59
132
  Max: 559
60
133
 
61
- # Offense count: 21
134
+ # Offense count: 22
62
135
  # Configuration parameters: CountComments, ExcludedMethods.
63
136
  # ExcludedMethods: refine
64
137
  Metrics/BlockLength:
@@ -69,11 +142,18 @@ Metrics/BlockLength:
69
142
  Metrics/BlockNesting:
70
143
  Max: 4
71
144
 
145
+ # Offense count: 17
146
+ # Configuration parameters: CountComments.
147
+ Metrics/ClassLength:
148
+ Max: 500
149
+ Exclude:
150
+ - 'test/**/*.rb'
151
+
72
152
  # Offense count: 22
73
153
  Metrics/CyclomaticComplexity:
74
154
  Max: 42
75
155
 
76
- # Offense count: 172
156
+ # Offense count: 167
77
157
  # Configuration parameters: CountComments, ExcludedMethods.
78
158
  Metrics/MethodLength:
79
159
  Max: 146
@@ -102,7 +182,7 @@ Naming/ClassAndModuleCamelCase:
102
182
  - 'test/Image3.rb'
103
183
  - 'test/Image_attributes.rb'
104
184
 
105
- # Offense count: 123
185
+ # Offense count: 122
106
186
  Naming/ConstantName:
107
187
  Exclude:
108
188
  - 'doc/ex/arcs02.rb'
@@ -119,9 +199,8 @@ Naming/ConstantName:
119
199
  - 'examples/demo.rb'
120
200
  - 'lib/rmagick_internal.rb'
121
201
  - 'test/Image3.rb'
122
- - 'test/test_all_basic.rb'
123
202
 
124
- # Offense count: 16
203
+ # Offense count: 17
125
204
  # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
126
205
  # 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
127
206
  Naming/FileName:
@@ -135,7 +214,7 @@ Naming/MethodName:
135
214
  - 'lib/rvg/misc.rb'
136
215
  - 'lib/rvg/transformable.rb'
137
216
 
138
- # Offense count: 5
217
+ # Offense count: 4
139
218
  # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
140
219
  # NamePrefix: is_, has_, have_
141
220
  # NamePrefixBlacklist: is_, has_, have_
@@ -153,6 +232,11 @@ Naming/PredicateName:
153
232
  Naming/UncommunicativeMethodParamName:
154
233
  Enabled: false
155
234
 
235
+ # Offense count: 1
236
+ Performance/ChainArrayAllocation:
237
+ Exclude:
238
+ - 'lib/rvg/embellishable.rb'
239
+
156
240
  # Offense count: 6
157
241
  Performance/FixedSize:
158
242
  Exclude:
@@ -165,6 +249,108 @@ Performance/RedundantMatch:
165
249
  - 'examples/demo.rb'
166
250
  - 'test/Image2.rb'
167
251
 
252
+ # Offense count: 3
253
+ # Cop supports --auto-correct.
254
+ RSpec/AlignLeftLetBrace:
255
+ Exclude:
256
+ - 'spec/rmagick/image/constitute_spec.rb'
257
+ - 'spec/rmagick/image/from_blob_spec.rb'
258
+ - 'spec/rmagick/image/properties_spec.rb'
259
+
260
+ # Offense count: 3
261
+ # Cop supports --auto-correct.
262
+ RSpec/AlignRightLetBrace:
263
+ Exclude:
264
+ - 'spec/rmagick/image/constitute_spec.rb'
265
+ - 'spec/rmagick/image/from_blob_spec.rb'
266
+ - 'spec/rmagick/image/properties_spec.rb'
267
+
268
+ # Offense count: 6
269
+ # Configuration parameters: Max.
270
+ RSpec/ExampleLength:
271
+ Exclude:
272
+ - 'spec/rmagick/ImageList1_spec.rb'
273
+ - 'spec/rmagick/draw_spec.rb'
274
+ - 'spec/rmagick/image/composite_spec.rb'
275
+ - 'spec/rmagick/image/dispatch_spec.rb'
276
+ - 'spec/rmagick/image/ping_spec.rb'
277
+
278
+ # Offense count: 1
279
+ # Configuration parameters: CustomTransform, IgnoreMethods.
280
+ RSpec/FilePath:
281
+ Exclude:
282
+ - 'spec/rmagick/ImageList1_spec.rb'
283
+
284
+ # Offense count: 1
285
+ # Cop supports --auto-correct.
286
+ # Configuration parameters: EnforcedStyle.
287
+ # SupportedStyles: implicit, each, example
288
+ RSpec/HookArgument:
289
+ Exclude:
290
+ - 'spec/rmagick/image/properties_spec.rb'
291
+
292
+ # Offense count: 2
293
+ # Configuration parameters: AssignmentOnly.
294
+ RSpec/InstanceVariable:
295
+ Exclude:
296
+ - 'spec/rmagick/image/read_spec.rb'
297
+
298
+ # Offense count: 15
299
+ # Configuration parameters: AggregateFailuresByDefault.
300
+ RSpec/MultipleExpectations:
301
+ Max: 6
302
+
303
+ # Offense count: 3
304
+ RSpec/Pending:
305
+ Exclude:
306
+ - 'spec/rmagick/draw_spec.rb'
307
+ - 'spec/rmagick/image/read_spec.rb'
308
+
309
+ # Offense count: 2
310
+ # Cop supports --auto-correct.
311
+ # Configuration parameters: Strict, EnforcedStyle.
312
+ # SupportedStyles: inflected, explicit
313
+ RSpec/PredicateMatcher:
314
+ Exclude:
315
+ - 'spec/rmagick/image/read_spec.rb'
316
+
317
+ # Offense count: 13
318
+ # Cop supports --auto-correct.
319
+ # Configuration parameters: Include.
320
+ # Include: **/test/**/*
321
+ Rails/AssertNot:
322
+ Exclude:
323
+ - 'test/Image1.rb'
324
+ - 'test/Image2.rb'
325
+ - 'test/ImageList1.rb'
326
+ - 'test/Image_attributes.rb'
327
+ - 'test/Info.rb'
328
+ - 'test/Pixel.rb'
329
+
330
+ # Offense count: 2
331
+ # Configuration parameters: EnforcedStyle.
332
+ # SupportedStyles: strict, flexible
333
+ Rails/Date:
334
+ Exclude:
335
+ - 'doc/ex/polaroid.rb'
336
+ - 'rmagick.gemspec'
337
+
338
+ # Offense count: 7
339
+ # Configuration parameters: Include.
340
+ # Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
341
+ Rails/Output:
342
+ Exclude:
343
+ - 'lib/rvg/deep_equal.rb'
344
+ - 'lib/rvg/rvg.rb'
345
+
346
+ # Offense count: 3
347
+ # Configuration parameters: EnforcedStyle.
348
+ # SupportedStyles: strict, flexible
349
+ Rails/TimeZone:
350
+ Exclude:
351
+ - 'Rakefile'
352
+ - 'ext/RMagick/extconf.rb'
353
+
168
354
  # Offense count: 4
169
355
  Security/MarshalLoad:
170
356
  Exclude:
@@ -173,6 +359,16 @@ Security/MarshalLoad:
173
359
  - 'test/Image2.rb'
174
360
  - 'test/ImageList2.rb'
175
361
 
362
+ # Offense count: 2
363
+ Style/AutoResourceCleanup:
364
+ Exclude:
365
+ - 'lib/rvg/to_c.rb'
366
+ - 'test/ImageList2.rb'
367
+
368
+ Style/CaseEquality:
369
+ Exclude:
370
+ - 'test/Enum.rb'
371
+
176
372
  # Offense count: 6
177
373
  # Cop supports --auto-correct.
178
374
  # Configuration parameters: AutoCorrect, EnforcedStyle.
@@ -184,14 +380,44 @@ Style/ClassAndModuleChildren:
184
380
  - 'spec/rmagick/draw_spec.rb'
185
381
  - 'test/Magick.rb'
186
382
 
383
+ # Offense count: 24
384
+ # Cop supports --auto-correct.
385
+ # Configuration parameters: PreferredMethods.
386
+ Style/CollectionMethods:
387
+ Exclude:
388
+ - 'doc/ex/composite_layers.rb'
389
+ - 'lib/rmagick_internal.rb'
390
+ - 'lib/rvg/embellishable.rb'
391
+ - 'lib/rvg/misc.rb'
392
+ - 'lib/rvg/transformable.rb'
393
+ - 'test/ImageList1.rb'
394
+ - 'test/Import_Export.rb'
395
+
187
396
  # Offense count: 90
188
397
  Style/CommentedKeyword:
189
398
  Enabled: false
190
399
 
400
+ # Offense count: 253
401
+ # Cop supports --auto-correct.
402
+ # Configuration parameters: Notice, AutocorrectNotice.
403
+ Style/Copyright:
404
+ Enabled: false
405
+
406
+ # Offense count: 1
407
+ # Configuration parameters: AllowCoercion.
408
+ Style/DateTime:
409
+ Exclude:
410
+ - 'ext/RMagick/extconf.rb'
411
+
191
412
  # Offense count: 36
192
413
  Style/Documentation:
193
414
  Enabled: false
194
415
 
416
+ # Offense count: 74
417
+ # Configuration parameters: RequireForNonPublicMethods.
418
+ Style/DocumentationMethod:
419
+ Enabled: false
420
+
195
421
  # Offense count: 4
196
422
  Style/EvalWithLocation:
197
423
  Exclude:
@@ -208,19 +434,62 @@ Style/FormatStringToken:
208
434
  - 'lib/rmagick_internal.rb'
209
435
  - 'lib/rvg/pathdata.rb'
210
436
 
211
- # Offense count: 65
437
+ # Offense count: 253
438
+ # Cop supports --auto-correct.
439
+ # Configuration parameters: EnforcedStyle.
440
+ # SupportedStyles: when_needed, always, never
441
+ Style/FrozenStringLiteralComment:
442
+ Enabled: false
443
+
444
+ # Offense count: 40
212
445
  # Configuration parameters: AllowedVariables.
213
446
  Style/GlobalVars:
214
447
  Exclude:
215
448
  - 'examples/histogram.rb'
216
449
  - 'ext/RMagick/extconf.rb'
217
450
 
451
+ # Offense count: 2
452
+ # Configuration parameters: MinBodyLength.
453
+ Style/GuardClause:
454
+ Exclude:
455
+ - 'ext/RMagick/extconf.rb'
456
+
457
+ # Offense count: 1
458
+ # Cop supports --auto-correct.
459
+ Style/IfUnlessModifier:
460
+ Exclude:
461
+ - 'ext/RMagick/extconf.rb'
462
+
463
+ # Offense count: 163
464
+ Style/InlineComment:
465
+ Enabled: false
466
+
467
+ # Offense count: 1051
468
+ # Cop supports --auto-correct.
469
+ # Configuration parameters: IgnoreMacros, IgnoredMethods, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, EnforcedStyle.
470
+ # SupportedStyles: require_parentheses, omit_parentheses
471
+ Style/MethodCallWithArgsParentheses:
472
+ Enabled: false
473
+
474
+ # Offense count: 8
475
+ Style/MethodCalledOnDoEndBlock:
476
+ Exclude:
477
+ - 'spec/rmagick/ImageList1_spec.rb'
478
+ - 'spec/rmagick/image/composite_spec.rb'
479
+ - 'spec/rmagick/image/dispatch_spec.rb'
480
+
218
481
  # Offense count: 2
219
482
  Style/MethodMissingSuper:
220
483
  Exclude:
221
484
  - 'lib/rmagick_internal.rb'
222
485
  - 'lib/rvg/misc.rb'
223
486
 
487
+ # Offense count: 68
488
+ # Configuration parameters: EnforcedStyle.
489
+ # SupportedStyles: if, case, both
490
+ Style/MissingElse:
491
+ Enabled: false
492
+
224
493
  # Offense count: 3
225
494
  Style/MissingRespondToMissing:
226
495
  Exclude:
@@ -243,12 +512,77 @@ Style/MixinUsage:
243
512
  - 'examples/thumbnail.rb'
244
513
  - 'examples/vignette.rb'
245
514
 
246
- # Offense count: 158
515
+ # Offense count: 162
247
516
  # Cop supports --auto-correct.
248
517
  Style/MutableConstant:
249
518
  Enabled: false
250
519
 
251
- # Offense count: 672
520
+ # Offense count: 34
521
+ # Cop supports --auto-correct.
522
+ # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
523
+ # SupportedStyles: predicate, comparison
524
+ Style/NumericPredicate:
525
+ Exclude:
526
+ - 'spec/**/*'
527
+ - 'lib/rmagick_internal.rb'
528
+ - 'lib/rvg/embellishable.rb'
529
+ - 'test/Image2.rb'
530
+
531
+ # Offense count: 1
532
+ # Cop supports --auto-correct.
533
+ Style/RescueModifier:
534
+ Exclude:
535
+ - 'test/Image3.rb'
536
+
537
+ # Offense count: 3
538
+ # Cop supports --auto-correct.
539
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
540
+ # Whitelist: present?, blank?, presence, try, try!
541
+ Style/SafeNavigation:
542
+ Exclude:
543
+ - 'lib/rmagick_internal.rb'
544
+
545
+ # Offense count: 5
546
+ Style/Send:
547
+ Exclude:
548
+ - 'lib/rmagick_internal.rb'
549
+ - 'test/Image2.rb'
550
+
551
+ # Offense count: 2
552
+ # Configuration parameters: Methods.
553
+ # Methods: {"reduce"=>["acc", "elem"]}, {"inject"=>["acc", "elem"]}
554
+ Style/SingleLineBlockParams:
555
+ Exclude:
556
+ - 'lib/rvg/misc.rb'
557
+
558
+ # Offense count: 20
559
+ # Cop supports --auto-correct.
560
+ Style/StringHashKeys:
561
+ Exclude:
562
+ - 'Rakefile'
563
+ - 'lib/rmagick_internal.rb'
564
+ - 'lib/rvg/misc.rb'
565
+ - 'spec/rmagick/image/properties_spec.rb'
566
+
567
+ # Offense count: 8
568
+ # Cop supports --auto-correct.
569
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
570
+ # SupportedStyles: single_quotes, double_quotes
571
+ Style/StringLiterals:
572
+ Exclude:
573
+ - 'Rakefile'
574
+ - 'test/Image1.rb'
575
+ - 'test/ImageList2.rb'
576
+ - 'test/PolaroidOptions.rb'
577
+
578
+ # Offense count: 5
579
+ # Cop supports --auto-correct.
580
+ # Configuration parameters: PreferredMethods.
581
+ Style/StringMethods:
582
+ Exclude:
583
+ - 'lib/rvg/misc.rb'
584
+
585
+ # Offense count: 640
252
586
  # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
253
587
  # URISchemes: http, https
254
588
  Metrics/LineLength: