rmagick 2.16.0 → 3.0.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 (238) hide show
  1. checksums.yaml +5 -5
  2. data/.appveyor.yml +19 -0
  3. data/.circleci/config.yml +56 -0
  4. data/.rubocop.yml +8 -335
  5. data/.rubocop_todo.yml +255 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +6 -49
  8. data/CHANGELOG.md +23 -0
  9. data/CONTRIBUTING.md +34 -0
  10. data/Gemfile +0 -6
  11. data/README.textile +11 -3
  12. data/Rakefile +23 -15
  13. data/before_install_linux.sh +12 -15
  14. data/doc/ex/InitialCoords.rb +4 -4
  15. data/doc/ex/NewCoordSys.rb +4 -4
  16. data/doc/ex/OrigCoordSys.rb +2 -2
  17. data/doc/ex/PreserveAspectRatio.rb +34 -34
  18. data/doc/ex/RotateScale.rb +7 -7
  19. data/doc/ex/Skew.rb +7 -7
  20. data/doc/ex/Use01.rb +1 -1
  21. data/doc/ex/Use02.rb +4 -4
  22. data/doc/ex/Use03.rb +2 -2
  23. data/doc/ex/ViewBox.rb +4 -4
  24. data/doc/ex/affine.rb +5 -5
  25. data/doc/ex/affine_transform.rb +3 -3
  26. data/doc/ex/arc.rb +9 -9
  27. data/doc/ex/arcpath.rb +2 -2
  28. data/doc/ex/arcs01.rb +6 -6
  29. data/doc/ex/arcs02.rb +8 -8
  30. data/doc/ex/axes.rb +11 -11
  31. data/doc/ex/baseline_shift01.rb +5 -5
  32. data/doc/ex/bilevel_channel.rb +1 -1
  33. data/doc/ex/blur_image.rb +1 -1
  34. data/doc/ex/border.rb +1 -1
  35. data/doc/ex/bounding_box.rb +11 -11
  36. data/doc/ex/cbezier1.rb +12 -12
  37. data/doc/ex/cbezier2.rb +13 -13
  38. data/doc/ex/cbezier3.rb +13 -13
  39. data/doc/ex/cbezier4.rb +13 -13
  40. data/doc/ex/cbezier5.rb +13 -13
  41. data/doc/ex/cbezier6.rb +19 -19
  42. data/doc/ex/channel.rb +2 -2
  43. data/doc/ex/chop.rb +2 -2
  44. data/doc/ex/circle.rb +7 -7
  45. data/doc/ex/circle01.rb +2 -2
  46. data/doc/ex/clip_path.rb +6 -6
  47. data/doc/ex/coalesce.rb +6 -6
  48. data/doc/ex/color_fill_to_border.rb +8 -8
  49. data/doc/ex/color_floodfill.rb +8 -8
  50. data/doc/ex/color_histogram.rb +2 -2
  51. data/doc/ex/color_reset.rb +2 -2
  52. data/doc/ex/colors.rb +4 -4
  53. data/doc/ex/compose_mask.rb +2 -2
  54. data/doc/ex/composite.rb +39 -39
  55. data/doc/ex/composite_layers.rb +1 -2
  56. data/doc/ex/contrast.rb +3 -3
  57. data/doc/ex/crop.rb +2 -2
  58. data/doc/ex/crop_with_gravity.rb +5 -5
  59. data/doc/ex/cubic01.rb +12 -12
  60. data/doc/ex/cubic02.rb +22 -22
  61. data/doc/ex/cycle_colormap.rb +3 -3
  62. data/doc/ex/dissolve.rb +0 -0
  63. data/doc/ex/drawcomp.rb +8 -9
  64. data/doc/ex/drop_shadow.rb +4 -4
  65. data/doc/ex/ellipse.rb +9 -9
  66. data/doc/ex/ellipse01.rb +3 -3
  67. data/doc/ex/enhance.rb +2 -2
  68. data/doc/ex/evenodd.rb +19 -19
  69. data/doc/ex/fill_pattern.rb +3 -3
  70. data/doc/ex/flatten_images.rb +1 -1
  71. data/doc/ex/font_styles.rb +13 -13
  72. data/doc/ex/fonts.rb +2 -6
  73. data/doc/ex/frame.rb +1 -1
  74. data/doc/ex/get_multiline_type_metrics.rb +3 -3
  75. data/doc/ex/get_pixels.rb +4 -6
  76. data/doc/ex/get_type_metrics.rb +26 -25
  77. data/doc/ex/gradientfill.rb +2 -2
  78. data/doc/ex/grav.rb +12 -12
  79. data/doc/ex/gravity.rb +14 -16
  80. data/doc/ex/group.rb +11 -11
  81. data/doc/ex/hatchfill.rb +2 -2
  82. data/doc/ex/image.rb +9 -9
  83. data/doc/ex/implode.rb +2 -2
  84. data/doc/ex/line.rb +10 -10
  85. data/doc/ex/line01.rb +7 -7
  86. data/doc/ex/mask.rb +0 -0
  87. data/doc/ex/matte_fill_to_border.rb +3 -3
  88. data/doc/ex/matte_floodfill.rb +2 -2
  89. data/doc/ex/matte_replace.rb +3 -3
  90. data/doc/ex/median_filter.rb +2 -2
  91. data/doc/ex/mono.rb +2 -2
  92. data/doc/ex/morph.rb +1 -1
  93. data/doc/ex/mosaic.rb +7 -5
  94. data/doc/ex/motion_blur.rb +1 -1
  95. data/doc/ex/negate_channel.rb +0 -0
  96. data/doc/ex/nested_rvg.rb +2 -2
  97. data/doc/ex/nonzero.rb +19 -19
  98. data/doc/ex/opacity.rb +9 -9
  99. data/doc/ex/path.rb +17 -17
  100. data/doc/ex/pattern1.rb +4 -4
  101. data/doc/ex/pattern2.rb +2 -2
  102. data/doc/ex/polaroid.rb +0 -1
  103. data/doc/ex/polygon.rb +7 -7
  104. data/doc/ex/polygon01.rb +7 -7
  105. data/doc/ex/polyline.rb +7 -7
  106. data/doc/ex/polyline01.rb +8 -8
  107. data/doc/ex/posterize.rb +0 -0
  108. data/doc/ex/qbezierpath.rb +16 -16
  109. data/doc/ex/quad01.rb +6 -6
  110. data/doc/ex/quantize-m.rb +2 -2
  111. data/doc/ex/random_threshold_channel.rb +1 -1
  112. data/doc/ex/rect01.rb +2 -2
  113. data/doc/ex/rect02.rb +3 -3
  114. data/doc/ex/rectangle.rb +6 -6
  115. data/doc/ex/reduce_noise.rb +2 -2
  116. data/doc/ex/remap.rb +0 -0
  117. data/doc/ex/resize_to_fill.rb +0 -0
  118. data/doc/ex/resize_to_fit.rb +0 -0
  119. data/doc/ex/roll.rb +1 -1
  120. data/doc/ex/rotate.rb +8 -8
  121. data/doc/ex/rotate_f.rb +1 -1
  122. data/doc/ex/roundrect.rb +6 -6
  123. data/doc/ex/rubyname.rb +4 -4
  124. data/doc/ex/rvg_clippath.rb +3 -3
  125. data/doc/ex/rvg_linecap.rb +7 -7
  126. data/doc/ex/rvg_linejoin.rb +7 -7
  127. data/doc/ex/rvg_opacity.rb +5 -5
  128. data/doc/ex/rvg_pattern.rb +8 -8
  129. data/doc/ex/rvg_stroke_dasharray.rb +2 -2
  130. data/doc/ex/sepiatone.rb +0 -0
  131. data/doc/ex/shadow.rb +6 -6
  132. data/doc/ex/shear.rb +2 -2
  133. data/doc/ex/skewx.rb +8 -8
  134. data/doc/ex/skewy.rb +9 -9
  135. data/doc/ex/smile.rb +5 -4
  136. data/doc/ex/sparse_color.rb +0 -4
  137. data/doc/ex/splice.rb +1 -1
  138. data/doc/ex/stegano.rb +4 -5
  139. data/doc/ex/stroke_dasharray.rb +10 -10
  140. data/doc/ex/stroke_fill.rb +2 -2
  141. data/doc/ex/stroke_linecap.rb +12 -12
  142. data/doc/ex/stroke_linejoin.rb +12 -12
  143. data/doc/ex/stroke_width.rb +11 -11
  144. data/doc/ex/swirl.rb +2 -2
  145. data/doc/ex/text.rb +6 -6
  146. data/doc/ex/text01.rb +4 -4
  147. data/doc/ex/text_align.rb +5 -5
  148. data/doc/ex/text_antialias.rb +2 -2
  149. data/doc/ex/text_styles.rb +8 -8
  150. data/doc/ex/text_undercolor.rb +4 -4
  151. data/doc/ex/texture_fill_to_border.rb +8 -8
  152. data/doc/ex/texture_floodfill.rb +8 -8
  153. data/doc/ex/texturefill.rb +2 -2
  154. data/doc/ex/threshold.rb +2 -2
  155. data/doc/ex/to_blob.rb +1 -1
  156. data/doc/ex/translate.rb +8 -8
  157. data/doc/ex/transparent.rb +6 -6
  158. data/doc/ex/transpose.rb +0 -0
  159. data/doc/ex/transverse.rb +0 -0
  160. data/doc/ex/tref01.rb +6 -6
  161. data/doc/ex/triangle01.rb +2 -2
  162. data/doc/ex/trim.rb +2 -2
  163. data/doc/ex/tspan01.rb +5 -5
  164. data/doc/ex/tspan02.rb +5 -5
  165. data/doc/ex/tspan03.rb +5 -5
  166. data/doc/ex/unsharp_mask.rb +3 -3
  167. data/doc/ex/viewex.rb +5 -5
  168. data/doc/ex/vignette.rb +0 -0
  169. data/doc/ex/watermark.rb +6 -6
  170. data/doc/ex/wet_floor.rb +2 -2
  171. data/doc/ex/writing_mode01.rb +12 -12
  172. data/doc/ex/writing_mode02.rb +12 -12
  173. data/examples/constitute.rb +1 -1
  174. data/examples/crop_with_gravity.rb +5 -5
  175. data/examples/demo.rb +6 -7
  176. data/examples/describe.rb +8 -10
  177. data/examples/find_similar_region.rb +3 -3
  178. data/examples/histogram.rb +192 -201
  179. data/examples/identify.rb +62 -73
  180. data/examples/image_opacity.rb +0 -1
  181. data/examples/import_export.rb +1 -1
  182. data/examples/pattern_fill.rb +3 -4
  183. data/examples/rotating_text.rb +5 -4
  184. data/examples/spinner.rb +5 -5
  185. data/examples/thumbnail.rb +3 -3
  186. data/examples/vignette.rb +5 -5
  187. data/ext/RMagick/extconf.rb +213 -230
  188. data/ext/RMagick/rmagick.c +1 -0
  189. data/ext/RMagick/rmagick.h +26 -29
  190. data/ext/RMagick/rmdraw.c +3 -38
  191. data/ext/RMagick/rmenum.c +36 -0
  192. data/ext/RMagick/rmimage.c +166 -10
  193. data/ext/RMagick/rminfo.c +7 -2
  194. data/ext/RMagick/rmkinfo.c +247 -0
  195. data/ext/RMagick/rmmain.c +96 -0
  196. data/ext/RMagick/rmutil.c +4 -0
  197. data/lib/rmagick/version.rb +3 -3
  198. data/lib/rmagick_internal.rb +226 -308
  199. data/lib/rvg/clippath.rb +2 -4
  200. data/lib/rvg/container.rb +25 -22
  201. data/lib/rvg/deep_equal.rb +11 -11
  202. data/lib/rvg/describable.rb +2 -2
  203. data/lib/rvg/embellishable.rb +60 -66
  204. data/lib/rvg/misc.rb +122 -128
  205. data/lib/rvg/pathdata.rb +15 -17
  206. data/lib/rvg/rvg.rb +41 -44
  207. data/lib/rvg/stretchable.rb +22 -28
  208. data/lib/rvg/stylable.rb +10 -10
  209. data/lib/rvg/text.rb +164 -165
  210. data/lib/rvg/transformable.rb +15 -15
  211. data/lib/rvg/units.rb +2 -2
  212. data/rmagick.gemspec +9 -33
  213. data/spec/rmagick/draw_spec.rb +5 -6
  214. data/spec/rmagick/image/blue_shift_spec.rb +1 -3
  215. data/spec/rmagick/image/channel_entropy_spec.rb +9 -0
  216. data/spec/rmagick/image/composite_spec.rb +2 -4
  217. data/spec/rmagick/image/constitute_spec.rb +2 -4
  218. data/spec/rmagick/image/dispatch_spec.rb +1 -3
  219. data/spec/rmagick/image/from_blob_spec.rb +1 -3
  220. data/spec/rmagick/image/ping_spec.rb +1 -3
  221. data/spec/rmagick/image/properties_spec.rb +0 -2
  222. data/spec/rmagick/image/read_spec.rb +28 -0
  223. data/spec/spec_helper.rb +7 -1
  224. data/spec/support/issue_200/app.rb +8 -0
  225. data/test/Image1.rb +70 -70
  226. data/test/Image2.rb +369 -361
  227. data/test/Image3.rb +64 -63
  228. data/test/ImageList1.rb +796 -792
  229. data/test/ImageList2.rb +43 -44
  230. data/test/Image_attributes.rb +26 -48
  231. data/test/Import_Export.rb +71 -77
  232. data/test/Info.rb +30 -31
  233. data/test/Magick.rb +47 -46
  234. data/test/Pixel.rb +24 -24
  235. data/test/Preview.rb +7 -6
  236. data/test/test_all_basic.rb +15 -7
  237. data/test/tmpnam_test.rb +3 -3
  238. metadata +57 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cdb0b76b421e905281ea36ab502157f8127ef7f4
4
- data.tar.gz: 7055d7ca36c20dfe2368b86274fcae3b092ce4af
2
+ SHA256:
3
+ metadata.gz: dd1b2d7e462a34be69913fc0315b6617b8043ca67c05b270193d1e974beacd73
4
+ data.tar.gz: 9d9f902fdc9fcc7a6e444bf7e101af46bf85ef5edcdc53897753d48bb23ca942
5
5
  SHA512:
6
- metadata.gz: 3e48587349334725feb46115787fe620396220163f61822724f818645d89538b3a0a898f03b9d3af20a959ed023619ac3d268d8597f34b3dacc4ce7e2af7fd95
7
- data.tar.gz: 830620183fb702cd38df0bd0d227e1a3d094198cb4d8a6d94b6354c4a854412ae795700f25584e4470c8078fe52a8208275f758fdb249aa2dc109261316b665b
6
+ metadata.gz: baa7de09c1c1691354b11f7734d447c5f25cd78d1f2633c493e4f53bf0947b7aa235a6d4e2ee97608359edf7e9569bfc7f4a2298fedd8211de82595c250ecc34
7
+ data.tar.gz: 4ade0d3f0c83db16296321c1dabe4f0e8d5e886ac6b7a8449f3db6022783fa1d95553dbafc8843ca883fe76176e4054bde2329795850b453906b45804e538791
@@ -0,0 +1,19 @@
1
+ environment:
2
+ matrix:
3
+ - RUBY_VERSION: "24-x64"
4
+
5
+ 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
10
+
11
+ build: off
12
+
13
+ before_test:
14
+ - ruby -v
15
+ - gem -v
16
+ - bundle -v
17
+
18
+ test_script:
19
+ - rake -rdevkit
@@ -0,0 +1,56 @@
1
+ # Ruby CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
+ #
5
+ version: 2
6
+ jobs:
7
+ build:
8
+ docker:
9
+ # specify the version you desire here
10
+ - image: circleci/ruby:2.3.8-stretch
11
+
12
+ working_directory: ~/repo
13
+
14
+ steps:
15
+ - checkout
16
+
17
+ - run:
18
+ name: setup linux
19
+ command: |
20
+ IMAGEMAGICK_VERSION=6.8.9-10 bash before_install_linux.sh
21
+
22
+ - run:
23
+ name: install dependencies
24
+ command: |
25
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
26
+
27
+ - save_cache:
28
+ paths:
29
+ - ./vendor/bundle
30
+ - ./ccache
31
+ key: v1-dependencies-{{ checksum "Gemfile.lock" }}
32
+
33
+ # run tests!
34
+ - run:
35
+ name: run tests
36
+ command: |
37
+ bundle exec rake test
38
+
39
+ - run:
40
+ name: run specs
41
+ command: |
42
+ mkdir /tmp/test-results
43
+ TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
44
+
45
+ bundle exec rspec --format progress \
46
+ --format RspecJunitFormatter \
47
+ --out /tmp/test-results/rspec.xml \
48
+ --format progress \
49
+ $TEST_FILES
50
+
51
+ # collect reports
52
+ - store_test_results:
53
+ path: /tmp/test-results
54
+ - store_artifacts:
55
+ path: /tmp/test-results
56
+ destination: test-results
@@ -1,340 +1,13 @@
1
- # Custom configuration, edit with care! This gem needs to be backwards
2
- # compatible with Ruby 1.8:
1
+ inherit_from:
2
+ - .rubocop_todo.yml
3
3
 
4
- Style/HashSyntax:
5
- EnforcedStyle: hash_rockets
4
+ # Custom configuration, edit with care!
6
5
 
7
- Style/DeprecatedHashMethods:
6
+ # Fixing this issues cause some test to fail
7
+ Lint/UnifiedInteger:
8
8
  Enabled: false
9
9
 
10
- # TODO: How to warn if stabby proc is used?
11
- Style/Lambda:
12
- Enabled: false
13
-
14
- Style/StringLiterals:
15
- EnforcedStyle: single_quotes
16
-
17
- Style/DotPosition:
18
- EnforcedStyle: leading
19
-
20
- # Auto-generated config to be cleaned up and deleted:
21
-
22
- # Offense count: 2
23
- # Cop supports --auto-correct.
24
- Lint/BlockAlignment:
25
- Enabled: false
26
-
27
- Lint/FormatParameterMismatch:
28
- Enabled: false
29
-
30
- # Offense count: 1
31
- Lint/HandleExceptions:
32
- Enabled: false
33
-
34
- # Offense count: 1
35
- Lint/RescueException:
36
- Enabled: false
37
-
38
- # Offense count: 1
39
- Lint/ShadowingOuterLocalVariable:
40
- Enabled: false
41
-
42
- # Offense count: 1
43
- Lint/UnderscorePrefixedVariableName:
44
- Enabled: false
45
-
46
- # Offense count: 9
47
- # Cop supports --auto-correct.
48
- Lint/UnusedBlockArgument:
49
- Enabled: false
50
-
51
- # Offense count: 17
52
- # Cop supports --auto-correct.
53
- Lint/UnusedMethodArgument:
54
- Enabled: false
55
-
56
- # Offense count: 22
57
- Lint/UselessAssignment:
58
- Enabled: false
59
-
60
- # Offense count: 183
61
- Metrics/AbcSize:
62
- Max: 559
63
-
64
- # Offense count: 1
65
- Metrics/BlockNesting:
66
- Max: 4
67
-
68
- # Offense count: 17
69
- # Configuration parameters: CountComments.
70
10
  Metrics/ClassLength:
71
- Max: 1099
72
-
73
- # Offense count: 22
74
- Metrics/CyclomaticComplexity:
75
- Max: 42
76
-
77
- # Offense count: 844
78
- # Configuration parameters: AllowURI, URISchemes.
79
- Metrics/LineLength:
80
- Max: 276
81
-
82
- # Offense count: 178
83
- # Configuration parameters: CountComments.
84
- Metrics/MethodLength:
85
- Max: 157
86
-
87
- # Offense count: 13
88
- # Configuration parameters: CountKeywordArgs.
89
- Metrics/ParameterLists:
90
- Max: 8
91
-
92
- # Offense count: 14
93
- Metrics/PerceivedComplexity:
94
- Max: 41
95
-
96
- Performance/StringReplacement:
97
- Enabled: false
98
-
99
- # Offense count: 4
100
- Style/AccessorMethodName:
101
- Enabled: false
102
-
103
- Style/AlignArray:
104
- Enabled: false
105
-
106
- # Offense count: 3
107
- # Cop supports --auto-correct.
108
- # Configuration parameters: EnforcedStyle, SupportedStyles.
109
- Style/BarePercentLiterals:
110
- Enabled: false
111
-
112
- # Offense count: 7
113
- Style/CaseEquality:
114
- Enabled: false
115
-
116
- # Offense count: 63
117
- # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
118
- Style/CaseIndentation:
119
- Enabled: false
120
-
121
- # Offense count: 13
122
- Style/ClassAndModuleCamelCase:
123
- Enabled: false
124
-
125
- # Offense count: 6
126
- # Configuration parameters: EnforcedStyle, SupportedStyles.
127
- Style/ClassAndModuleChildren:
128
- Enabled: false
129
-
130
- # Offense count: 1
131
- # Cop supports --auto-correct.
132
- Style/ClosingParenthesisIndentation:
133
- Enabled: false
134
-
135
- Style/CollectionMethods:
136
- Enabled: false
137
-
138
- # Offense count: 5
139
- # Cop supports --auto-correct.
140
- Style/CommentIndentation:
141
- Enabled: false
142
-
143
- # Offense count: 126
144
- Style/ConstantName:
145
- Enabled: false
146
-
147
- # Offense count: 62
148
- Style/Documentation:
149
- Enabled: false
150
-
151
- Style/EmptyLinesAroundBlockBody:
152
- Enabled: false
153
-
154
- Style/ExtraSpacing:
155
- Enabled: false
156
-
157
- # Offense count: 23
158
- # Configuration parameters: Exclude.
159
- Style/FileName:
160
- Enabled: false
161
-
162
- # Offense count: 68
163
- # Configuration parameters: EnforcedStyle, SupportedStyles.
164
- Style/FormatString:
165
- Enabled: false
166
-
167
- # Offense count: 45
168
- # Configuration parameters: AllowedVariables.
169
- Style/GlobalVars:
170
- Enabled: false
171
-
172
- # Offense count: 8
173
- # Configuration parameters: MinBodyLength.
174
- Style/GuardClause:
175
- Enabled: false
176
-
177
- # Offense count: 29
178
- # Cop supports --auto-correct.
179
- # Configuration parameters: MaxLineLength.
180
- Style/IfUnlessModifier:
181
- Enabled: false
182
-
183
- Style/IndentArray:
184
- Enabled: false
185
-
186
- Style/IndentationConsistency:
187
- Enabled: false
188
-
189
- # Offense count: 1049
190
- # Cop supports --auto-correct.
191
- # Configuration parameters: Width.
192
- Style/IndentationWidth:
193
- Enabled: false
194
-
195
- # Offense count: 47
196
- # Cop supports --auto-correct.
197
- Style/LeadingCommentSpace:
198
- Enabled: false
199
-
200
- # Offense count: 4
201
- # Configuration parameters: EnforcedStyle, SupportedStyles.
202
- Style/MethodName:
203
- Enabled: false
204
-
205
- # Offense count: 9
206
- # Cop supports --auto-correct.
207
- # Configuration parameters: EnforcedStyle, SupportedStyles.
208
- Style/MultilineOperationIndentation:
209
- Enabled: false
210
-
211
- # Offense count: 1
212
- Style/MultilineTernaryOperator:
213
- Enabled: false
214
-
215
- # Offense count: 3
216
- # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
217
- Style/Next:
218
- Enabled: false
219
-
220
- # Offense count: 21
221
- # Cop supports --auto-correct.
222
- Style/NumericLiterals:
223
- MinDigits: 18
224
-
225
- # Offense count: 1
226
- Style/OpMethod:
227
- Enabled: false
228
-
229
- # Offense count: 9
230
- # Cop supports --auto-correct.
231
- # Configuration parameters: PreferredDelimiters.
232
- Style/PercentLiteralDelimiters:
233
- Enabled: false
234
-
235
- # Offense count: 10
236
- # Cop supports --auto-correct.
237
- Style/PerlBackrefs:
238
- Enabled: false
239
-
240
- # Offense count: 4
241
- # Configuration parameters: NamePrefix, NamePrefixBlacklist.
242
- Style/PredicateName:
243
- Enabled: false
244
-
245
- # Offense count: 1
246
- # Cop supports --auto-correct.
247
- # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
248
- Style/RegexpLiteral:
249
- Enabled: false
250
-
251
- Style/RescueEnsureAlignment:
252
- Enabled: false
253
-
254
- # Offense count: 2
255
- Style/RescueModifier:
256
- Enabled: false
257
-
258
- # Offense count: 2
259
- # Cop supports --auto-correct.
260
- # Configuration parameters: AllowAsExpressionSeparator.
261
- Style/Semicolon:
262
- Enabled: false
263
-
264
- # Offense count: 2
265
- # Configuration parameters: Methods.
266
- Style/SingleLineBlockParams:
267
- Enabled: false
268
-
269
- # Offense count: 7
270
- # Cop supports --auto-correct.
271
- Style/SingleSpaceBeforeFirstArg:
272
- Enabled: false
273
-
274
- # Offense count: 1114
275
- # Cop supports --auto-correct.
276
- Style/SpaceAfterComma:
277
- Enabled: false
278
-
279
- # Offense count: 91
280
- # Cop supports --auto-correct.
281
- # Configuration parameters: EnforcedStyle, SupportedStyles.
282
- Style/SpaceAroundEqualsInParameterDefault:
283
- Enabled: false
284
-
285
- # Offense count: 1066
286
- # Cop supports --auto-correct.
287
- # Configuration parameters: MultiSpaceAllowedForOperators.
288
- Style/SpaceAroundOperators:
289
- Enabled: false
290
-
291
- # Offense count: 3
292
- # Cop supports --auto-correct.
293
- # Configuration parameters: EnforcedStyle, SupportedStyles.
294
- Style/SpaceBeforeBlockBraces:
295
- Enabled: false
296
-
297
- # Offense count: 204
298
- # Cop supports --auto-correct.
299
- # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
300
- Style/SpaceInsideBlockBraces:
301
- Enabled: false
302
-
303
- # Offense count: 6
304
- # Cop supports --auto-correct.
305
- Style/SpaceInsideBrackets:
306
- Enabled: false
307
-
308
- # Offense count: 68
309
- # Cop supports --auto-correct.
310
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
311
- Style/SpaceInsideHashLiteralBraces:
312
- Enabled: false
313
-
314
- # Offense count: 35
315
- # Cop supports --auto-correct.
316
- Style/SpaceInsideParens:
317
- Enabled: false
318
-
319
- # Offense count: 12
320
- # Cop supports --auto-correct.
321
- # Configuration parameters: IgnoredMethods.
322
- Style/SymbolProc:
323
- Enabled: false
324
-
325
- # Offense count: 3
326
- # Cop supports --auto-correct.
327
- # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
328
- Style/TrailingComma:
329
- Enabled: false
330
-
331
- # Offense count: 2
332
- # Configuration parameters: EnforcedStyle, SupportedStyles.
333
- Style/VariableName:
334
- Enabled: false
335
-
336
- # Offense count: 7
337
- # Cop supports --auto-correct.
338
- # Configuration parameters: WordRegex.
339
- Style/WordArray:
340
- MinSize: 3
11
+ Max: 500
12
+ Exclude:
13
+ - test/**/*
@@ -0,0 +1,255 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-10-08 19:33:24 +0300 using RuboCop version 0.59.2.
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: 18
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: EnforcedStyle.
12
+ # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
13
+ Layout/IndentHeredoc:
14
+ Exclude:
15
+ - 'Rakefile'
16
+ - 'examples/describe.rb'
17
+ - 'examples/histogram.rb'
18
+ - 'examples/image_opacity.rb'
19
+ - 'examples/import_export.rb'
20
+ - 'examples/pattern_fill.rb'
21
+ - 'examples/rotating_text.rb'
22
+ - 'examples/spinner.rb'
23
+ - 'examples/thumbnail.rb'
24
+ - 'ext/RMagick/extconf.rb'
25
+ - 'lib/rvg/to_c.rb'
26
+
27
+ # Offense count: 1
28
+ # Cop supports --auto-correct.
29
+ # Configuration parameters: EnforcedStyle.
30
+ # SupportedStyles: symmetrical, new_line, same_line
31
+ Layout/MultilineArrayBraceLayout:
32
+ Exclude:
33
+ - 'ext/RMagick/extconf.rb'
34
+
35
+ # Offense count: 1
36
+ Lint/HandleExceptions:
37
+ Exclude:
38
+ - 'lib/rmagick_internal.rb'
39
+
40
+ # Offense count: 1
41
+ Lint/RescueException:
42
+ Exclude:
43
+ - 'lib/rmagick_internal.rb'
44
+
45
+ # Offense count: 1
46
+ Lint/ReturnInVoidContext:
47
+ Exclude:
48
+ - 'lib/rmagick_internal.rb'
49
+
50
+ # Offense count: 6
51
+ # Configuration parameters: CheckForMethodsWithNoSideEffects.
52
+ Lint/Void:
53
+ Exclude:
54
+ - 'lib/rmagick_internal.rb'
55
+ - 'lib/rvg/embellishable.rb'
56
+
57
+ # Offense count: 170
58
+ Metrics/AbcSize:
59
+ Max: 559
60
+
61
+ # Offense count: 21
62
+ # Configuration parameters: CountComments, ExcludedMethods.
63
+ # ExcludedMethods: refine
64
+ Metrics/BlockLength:
65
+ Max: 155
66
+
67
+ # Offense count: 1
68
+ # Configuration parameters: CountBlocks.
69
+ Metrics/BlockNesting:
70
+ Max: 4
71
+
72
+ # Offense count: 22
73
+ Metrics/CyclomaticComplexity:
74
+ Max: 42
75
+
76
+ # Offense count: 172
77
+ # Configuration parameters: CountComments, ExcludedMethods.
78
+ Metrics/MethodLength:
79
+ Max: 146
80
+
81
+ # Offense count: 13
82
+ # Configuration parameters: CountKeywordArgs.
83
+ Metrics/ParameterLists:
84
+ Max: 8
85
+
86
+ # Offense count: 15
87
+ Metrics/PerceivedComplexity:
88
+ Max: 40
89
+
90
+ # Offense count: 4
91
+ Naming/AccessorMethodName:
92
+ Exclude:
93
+ - 'lib/rmagick_internal.rb'
94
+ - 'lib/rvg/misc.rb'
95
+
96
+ # Offense count: 6
97
+ Naming/ClassAndModuleCamelCase:
98
+ Exclude:
99
+ - 'lib/rmagick_internal.rb'
100
+ - 'test/Image1.rb'
101
+ - 'test/Image2.rb'
102
+ - 'test/Image3.rb'
103
+ - 'test/Image_attributes.rb'
104
+
105
+ # Offense count: 123
106
+ Naming/ConstantName:
107
+ Exclude:
108
+ - 'doc/ex/arcs02.rb'
109
+ - 'doc/ex/cubic01.rb'
110
+ - 'doc/ex/cubic02.rb'
111
+ - 'doc/ex/drop_shadow.rb'
112
+ - 'doc/ex/flatten_images.rb'
113
+ - 'doc/ex/get_type_metrics.rb'
114
+ - 'doc/ex/gradientfill.rb'
115
+ - 'doc/ex/hatchfill.rb'
116
+ - 'doc/ex/rubyname.rb'
117
+ - 'doc/ex/smile.rb'
118
+ - 'doc/ex/tref01.rb'
119
+ - 'examples/demo.rb'
120
+ - 'lib/rmagick_internal.rb'
121
+ - 'test/Image3.rb'
122
+ - 'test/test_all_basic.rb'
123
+
124
+ # Offense count: 16
125
+ # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
126
+ # 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
+ Naming/FileName:
128
+ Enabled: false
129
+
130
+ # Offense count: 4
131
+ # Configuration parameters: EnforcedStyle.
132
+ # SupportedStyles: snake_case, camelCase
133
+ Naming/MethodName:
134
+ Exclude:
135
+ - 'lib/rvg/misc.rb'
136
+ - 'lib/rvg/transformable.rb'
137
+
138
+ # Offense count: 5
139
+ # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
140
+ # NamePrefix: is_, has_, have_
141
+ # NamePrefixBlacklist: is_, has_, have_
142
+ # NameWhitelist: is_a?
143
+ # MethodDefinitionMacros: define_method, define_singleton_method
144
+ Naming/PredicateName:
145
+ Exclude:
146
+ - 'spec/**/*'
147
+ - 'ext/RMagick/extconf.rb'
148
+ - 'lib/rmagick_internal.rb'
149
+
150
+ # Offense count: 222
151
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
152
+ # AllowedNames: io, id, to, by, on, in, at, ip, db
153
+ Naming/UncommunicativeMethodParamName:
154
+ Enabled: false
155
+
156
+ # Offense count: 6
157
+ Performance/FixedSize:
158
+ Exclude:
159
+ - 'test/Image2.rb'
160
+
161
+ # Offense count: 2
162
+ # Cop supports --auto-correct.
163
+ Performance/RedundantMatch:
164
+ Exclude:
165
+ - 'examples/demo.rb'
166
+ - 'test/Image2.rb'
167
+
168
+ # Offense count: 4
169
+ Security/MarshalLoad:
170
+ Exclude:
171
+ - 'lib/rmagick_internal.rb'
172
+ - 'spec/rmagick/draw_spec.rb'
173
+ - 'test/Image2.rb'
174
+ - 'test/ImageList2.rb'
175
+
176
+ # Offense count: 6
177
+ # Cop supports --auto-correct.
178
+ # Configuration parameters: AutoCorrect, EnforcedStyle.
179
+ # SupportedStyles: nested, compact
180
+ Style/ClassAndModuleChildren:
181
+ Exclude:
182
+ - 'doc/ex/composite_layers.rb'
183
+ - 'lib/rvg/to_c.rb'
184
+ - 'spec/rmagick/draw_spec.rb'
185
+ - 'test/Magick.rb'
186
+
187
+ # Offense count: 90
188
+ Style/CommentedKeyword:
189
+ Enabled: false
190
+
191
+ # Offense count: 36
192
+ Style/Documentation:
193
+ Enabled: false
194
+
195
+ # Offense count: 4
196
+ Style/EvalWithLocation:
197
+ Exclude:
198
+ - 'lib/rmagick_internal.rb'
199
+ - 'lib/rvg/units.rb'
200
+
201
+ # Offense count: 158
202
+ # Configuration parameters: EnforcedStyle.
203
+ # SupportedStyles: annotated, template, unannotated
204
+ Style/FormatStringToken:
205
+ Exclude:
206
+ - 'examples/identify.rb'
207
+ - 'ext/RMagick/extconf.rb'
208
+ - 'lib/rmagick_internal.rb'
209
+ - 'lib/rvg/pathdata.rb'
210
+
211
+ # Offense count: 65
212
+ # Configuration parameters: AllowedVariables.
213
+ Style/GlobalVars:
214
+ Exclude:
215
+ - 'examples/histogram.rb'
216
+ - 'ext/RMagick/extconf.rb'
217
+
218
+ # Offense count: 2
219
+ Style/MethodMissingSuper:
220
+ Exclude:
221
+ - 'lib/rmagick_internal.rb'
222
+ - 'lib/rvg/misc.rb'
223
+
224
+ # Offense count: 3
225
+ Style/MissingRespondToMissing:
226
+ Exclude:
227
+ - 'lib/rmagick_internal.rb'
228
+ - 'lib/rvg/misc.rb'
229
+
230
+ # Offense count: 12
231
+ Style/MixinUsage:
232
+ Exclude:
233
+ - 'doc/ex/colors.rb'
234
+ - 'doc/ex/composite.rb'
235
+ - 'doc/ex/crop_with_gravity.rb'
236
+ - 'doc/ex/smile.rb'
237
+ - 'examples/crop_with_gravity.rb'
238
+ - 'examples/demo.rb'
239
+ - 'examples/image_opacity.rb'
240
+ - 'examples/import_export.rb'
241
+ - 'examples/pattern_fill.rb'
242
+ - 'examples/rotating_text.rb'
243
+ - 'examples/thumbnail.rb'
244
+ - 'examples/vignette.rb'
245
+
246
+ # Offense count: 158
247
+ # Cop supports --auto-correct.
248
+ Style/MutableConstant:
249
+ Enabled: false
250
+
251
+ # Offense count: 672
252
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
253
+ # URISchemes: http, https
254
+ Metrics/LineLength:
255
+ Max: 278