# This configuration was generated by # `rubocop --auto-gen-config` # on 2020-10-10 21:34:21 +0900 using RuboCop version 0.81.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: TreatCommentsAsGroupSeparators, Include. # Include: **/*.gemspec Gemspec/OrderedDependencies: Exclude: - 'rmagick.gemspec' # Offense count: 12 # Cop supports --auto-correct. # Configuration parameters: Categories, ExpectedOrder. # ExpectedOrder: module_inclusion, constants, public_class_methods, initializer, public_methods, protected_methods, private_methods Layout/ClassStructure: Exclude: - 'examples/histogram.rb' - 'lib/rmagick_internal.rb' - 'lib/rvg/embellishable.rb' - 'lib/rvg/misc.rb' - 'lib/rvg/pathdata.rb' - 'lib/rvg/rvg.rb' - 'lib/rvg/to_c.rb' # Offense count: 2312 # Cop supports --auto-correct. Layout/MultilineArrayLineBreaks: Exclude: - 'doc/ex/add_noise.rb' - 'doc/ex/clip_path.rb' - 'doc/ex/crop_with_gravity.rb' - 'doc/ex/polyline.rb' - 'doc/ex/smile.rb' - 'examples/crop_with_gravity.rb' - 'lib/rmagick_internal.rb' - 'lib/rvg/stylable.rb' # Offense count: 192 # Cop supports --auto-correct. Layout/MultilineMethodArgumentLineBreaks: Exclude: - 'doc/ex/axes.rb' - 'doc/ex/drawcomp.rb' - 'doc/ex/fonts.rb' - 'doc/ex/get_type_metrics.rb' - 'doc/ex/polygon.rb' - 'doc/ex/polygon01.rb' - 'doc/ex/polyline01.rb' - 'doc/ex/sparse_color.rb' - 'examples/vignette.rb' - 'lib/rmagick_internal.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. # SupportedStylesForExponentOperator: space, no_space Layout/SpaceAroundOperators: Exclude: - 'rmagick.gemspec' # Offense count: 1 Lint/EmptyWhen: Exclude: - 'lib/rvg/misc.rb' # Offense count: 94 # Cop supports --auto-correct. Lint/NumberConversion: Exclude: - 'doc/ex/get_pixels.rb' - 'doc/ex/stegano.rb' - 'examples/describe.rb' - 'examples/thumbnail.rb' - 'lib/rmagick_internal.rb' - 'lib/rvg/misc.rb' - 'lib/rvg/to_c.rb' - 'spec/magick_spec.rb' - 'spec/rmagick/align_type/class_methods/values_spec.rb' - 'spec/rmagick/enum/bitwise_or_spec.rb' - 'spec/rmagick/enum/to_i_spec.rb' - 'spec/rmagick/image/export_pixels_spec.rb' # Offense count: 2 # Cop supports --auto-correct. Lint/RedundantStringCoercion: Exclude: - 'spec/rmagick/font/initialize_spec.rb' # Offense count: 1 Lint/RescueException: Exclude: - 'lib/rmagick_internal.rb' # Offense count: 1 # Configuration parameters: AllowComments. Lint/SuppressedException: Exclude: - 'lib/rmagick_internal.rb' # Offense count: 1 Lint/UselessComparison: Exclude: - 'spec/rmagick/enum/case_equality_spec.rb' # Offense count: 45 # Configuration parameters: IgnoredMethods. Metrics/AbcSize: Max: 537 # Offense count: 77 # Configuration parameters: CountComments, ExcludedMethods. # ExcludedMethods: refine Metrics/BlockLength: Max: 155 # Offense count: 1 # Configuration parameters: CountBlocks. Metrics/BlockNesting: Max: 4 # Offense count: 9 # Configuration parameters: CountComments. Metrics/ClassLength: Max: 460 # Offense count: 21 # Configuration parameters: IgnoredMethods. Metrics/CyclomaticComplexity: Max: 42 # Offense count: 55 # Configuration parameters: CountComments, ExcludedMethods. Metrics/MethodLength: Max: 146 # Offense count: 14 # Configuration parameters: CountKeywordArgs. Metrics/ParameterLists: Max: 8 # Offense count: 15 # Configuration parameters: IgnoredMethods. Metrics/PerceivedComplexity: Max: 40 # Offense count: 4 Naming/AccessorMethodName: Exclude: - 'lib/rmagick_internal.rb' - 'lib/rvg/misc.rb' # Offense count: 2 Naming/ClassAndModuleCamelCase: Exclude: - 'lib/rmagick_internal.rb' # Offense count: 120 Naming/ConstantName: Exclude: - 'doc/ex/arcs02.rb' - 'doc/ex/cubic01.rb' - 'doc/ex/cubic02.rb' - 'doc/ex/drop_shadow.rb' - 'doc/ex/flatten_images.rb' - 'doc/ex/get_type_metrics.rb' - 'doc/ex/gradientfill.rb' - 'doc/ex/hatchfill.rb' - 'doc/ex/rubyname.rb' - 'doc/ex/smile.rb' - 'doc/ex/tref01.rb' - 'examples/demo.rb' - 'lib/rmagick_internal.rb' # Offense count: 12 # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms. # 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 Naming/FileName: Exclude: - 'doc/ex/InitialCoords.rb' - 'doc/ex/NewCoordSys.rb' - 'doc/ex/OrigCoordSys.rb' - 'doc/ex/PreserveAspectRatio.rb' - 'doc/ex/RotateScale.rb' - 'doc/ex/Skew.rb' - 'doc/ex/Use01.rb' - 'doc/ex/Use02.rb' - 'doc/ex/Use03.rb' - 'doc/ex/ViewBox.rb' - 'doc/ex/quantize-m.rb' # Offense count: 4 # Configuration parameters: EnforcedStyle, IgnoredPatterns. # SupportedStyles: snake_case, camelCase Naming/MethodName: Exclude: - 'lib/rvg/misc.rb' - 'lib/rvg/transformable.rb' # Offense count: 222 # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. # AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp Naming/MethodParameterName: Enabled: false # Offense count: 421 # Configuration parameters: Max. RSpec/ExampleLength: Enabled: false # Offense count: 539 # Configuration parameters: AggregateFailuresByDefault. RSpec/MultipleExpectations: Max: 72 # Offense count: 4 Security/MarshalLoad: Exclude: - 'lib/rmagick_internal.rb' - 'spec/rmagick/draw/marshal_dump_spec.rb' - 'spec/rmagick/image/marshal_spec.rb' - 'spec/rmagick/image_list/marshal_spec.rb' # Offense count: 1 Style/AutoResourceCleanup: Exclude: - 'lib/rvg/to_c.rb' # Offense count: 7 Style/CaseEquality: Exclude: - 'spec/rmagick/enum/case_equality_spec.rb' - 'spec/rmagick/pixel/dup_spec.rb' - 'spec/rmagick/pixel/threequals_spec.rb' # Offense count: 89 Style/CommentedKeyword: Enabled: false # Offense count: 126 Style/ConstantVisibility: Exclude: - 'examples/histogram.rb' - 'ext/RMagick/extconf.rb' - 'lib/rmagick/version.rb' - 'lib/rmagick_internal.rb' - 'lib/rvg/misc.rb' - 'lib/rvg/rvg.rb' - 'lib/rvg/stylable.rb' - 'spec/support/helpers.rb' # Offense count: 809 # Cop supports --auto-correct. # Configuration parameters: Notice, AutocorrectNotice. Style/Copyright: Enabled: false # Offense count: 37 Style/Documentation: Enabled: false # Offense count: 72 # Configuration parameters: RequireForNonPublicMethods. Style/DocumentationMethod: Exclude: - 'spec/**/*' - 'test/**/*' - 'Rakefile' - 'doc/ex/ViewBox.rb' - 'doc/ex/sparse_color.rb' - 'examples/histogram.rb' - 'examples/pattern_fill.rb' - 'ext/RMagick/extconf.rb' - 'lib/rmagick_internal.rb' - 'lib/rvg/container.rb' - 'lib/rvg/deep_equal.rb' - 'lib/rvg/embellishable.rb' - 'lib/rvg/misc.rb' - 'lib/rvg/stylable.rb' - 'lib/rvg/transformable.rb' - 'lib/rvg/units.rb' # Offense count: 208 # Configuration parameters: EnforcedStyle. # SupportedStyles: annotated, template, unannotated Style/FormatStringToken: Exclude: - 'doc/ex/colors.rb' - 'doc/ex/fonts.rb' - 'doc/ex/implode.rb' - 'doc/ex/stegano.rb' - 'examples/identify.rb' - 'lib/rmagick_internal.rb' - 'lib/rvg/pathdata.rb' # Offense count: 808 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Enabled: false # Offense count: 42 # Configuration parameters: AllowedVariables. Style/GlobalVars: Exclude: - 'ext/RMagick/extconf.rb' # Offense count: 12 # Cop supports --auto-correct. Style/HashEachMethods: Exclude: - 'doc/ex/preview.rb' - 'spec/rmagick/image/auto_orient_spec.rb' - 'spec/rmagick/image/channel_spec.rb' - 'spec/rmagick/image/colorspace_spec.rb' - 'spec/rmagick/image/info/colorspace_spec.rb' - 'spec/rmagick/image/info/compression_spec.rb' - 'spec/rmagick/image/info/dispose_spec.rb' - 'spec/rmagick/image/info/gravity_spec.rb' - 'spec/rmagick/image/info/image_type_spec.rb' - 'spec/rmagick/image/info/interlace_spec.rb' - 'spec/rmagick/image/info/orientation_spec.rb' - 'spec/rmagick/image/info/units_spec.rb' # Offense count: 6 # Cop supports --auto-correct. Style/IfUnlessModifier: Exclude: - 'ext/RMagick/extconf.rb' # Offense count: 148 Style/InlineComment: Enabled: false # Offense count: 4804 # Cop supports --auto-correct. # Configuration parameters: IgnoreMacros, IgnoredMethods, IgnoredPatterns, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, EnforcedStyle. # SupportedStyles: require_parentheses, omit_parentheses Style/MethodCallWithArgsParentheses: Enabled: false # Offense count: 2 Style/MethodMissingSuper: Exclude: - 'lib/rmagick_internal.rb' - 'lib/rvg/misc.rb' # Offense count: 64 # Configuration parameters: EnforcedStyle. # SupportedStyles: if, case, both Style/MissingElse: Enabled: false # Offense count: 3 Style/MissingRespondToMissing: Exclude: - 'lib/rmagick_internal.rb' - 'lib/rvg/misc.rb' # Offense count: 12 Style/MixinUsage: Exclude: - 'doc/ex/colors.rb' - 'doc/ex/composite.rb' - 'doc/ex/crop_with_gravity.rb' - 'doc/ex/smile.rb' - 'examples/crop_with_gravity.rb' - 'examples/demo.rb' - 'examples/image_opacity.rb' - 'examples/import_export.rb' - 'examples/pattern_fill.rb' - 'examples/rotating_text.rb' - 'examples/thumbnail.rb' - 'examples/vignette.rb' # Offense count: 152 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: literals, strict Style/MutableConstant: Enabled: false # Offense count: 32 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods. # SupportedStyles: predicate, comparison Style/NumericPredicate: Exclude: - 'spec/**/*' - 'lib/rmagick_internal.rb' - 'lib/rvg/embellishable.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowMultipleReturnValues. Style/RedundantReturn: Exclude: - 'examples/histogram.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods. # AllowedMethods: present?, blank?, presence, try, try! Style/SafeNavigation: Exclude: - 'lib/rmagick_internal.rb' # Offense count: 5 Style/Send: Exclude: - 'lib/rmagick_internal.rb' - 'spec/rmagick/image/destroy_spec.rb' # Offense count: 2 # Configuration parameters: Methods. # Methods: {"reduce"=>["acc", "elem"]}, {"inject"=>["acc", "elem"]} Style/SingleLineBlockParams: Exclude: - 'lib/rvg/misc.rb' # Offense count: 20 # Cop supports --auto-correct. Style/StringHashKeys: Exclude: - 'Rakefile' - 'lib/rmagick_internal.rb' - 'lib/rvg/misc.rb' - 'spec/rmagick/image/properties_spec.rb' # Offense count: 226 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Enabled: false # Offense count: 975 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Layout/LineLength: Max: 217