# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-11-04 02:41:41 UTC using RuboCop version 1.68.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: 12
# Configuration parameters: Include, IgnoredGems, OnlyFor.
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
Bundler/GemComment:
  Exclude:
    - 'Gemfile'

# Offense count: 1
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
  Exclude:
    - 'rmagick.gemspec'

# Offense count: 11
# This cop supports unsafe autocorrection (--autocorrect-all).
# 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'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultilineFinalElement, AllowedMethods.
Layout/FirstMethodArgumentLineBreak:
  Exclude:
    - 'doc/ex/arcpath.rb'
    - 'doc/ex/evenodd.rb'
    - 'doc/ex/get_type_metrics.rb'
    - 'doc/ex/nonzero.rb'

# Offense count: 2311
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultilineFinalElement.
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
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultilineFinalElement.
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: 83
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: InspectBlocks.
Layout/RedundantLineBreak:
  Enabled: false

# Offense count: 1911
# This cop supports safe autocorrection (--autocorrect).
Layout/SingleLineBlockChain:
  Enabled: false

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
# SupportedStylesForExponentOperator: space, no_space
# SupportedStylesForRationalLiterals: space, no_space
Layout/SpaceAroundOperators:
  Exclude:
    - 'lib/rvg/misc.rb'

# Offense count: 39
# This cop supports safe autocorrection (--autocorrect).
Lint/AmbiguousOperatorPrecedence:
  Exclude:
    - 'doc/ex/coalesce.rb'
    - 'doc/ex/get_type_metrics.rb'
    - 'doc/ex/rvg_clippath.rb'
    - 'doc/ex/skewx.rb'
    - 'examples/histogram.rb'
    - 'examples/vignette.rb'
    - 'lib/rmagick_internal.rb'
    - 'lib/rvg/embellishable.rb'
    - 'lib/rvg/misc.rb'
    - 'lib/rvg/stretchable.rb'

# Offense count: 1
Lint/BinaryOperatorWithIdenticalOperands:
  Exclude:
    - 'spec/rmagick/enum/case_equality_spec.rb'

# Offense count: 2
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
  Exclude:
    - 'Rakefile'

# Offense count: 5522
# Configuration parameters: Only, Ignore.
Lint/ConstantResolution:
  Enabled: false

# Offense count: 3
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
Lint/DuplicateBranch:
  Exclude:
    - 'lib/rvg/embellishable.rb'
    - 'lib/rvg/misc.rb'

# Offense count: 8
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
  Exclude:
    - 'spec/rmagick/draw/pattern_spec.rb'
    - 'spec/rmagick/image/change_geometry_spec.rb'
    - 'spec/rmagick/image/each_profile_spec.rb'

# Offense count: 1
# Configuration parameters: AllowComments.
Lint/EmptyFile:
  Exclude:
    - 'spec/rmagick/image/info/view_spec.rb'

# Offense count: 1
# Configuration parameters: AllowComments.
Lint/EmptyWhen:
  Exclude:
    - 'lib/rvg/misc.rb'

# Offense count: 2
Lint/FloatComparison:
  Exclude:
    - 'lib/rvg/stretchable.rb'

# Offense count: 91
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredClasses.
# IgnoredClasses: Time, DateTime
Lint/NumberConversion:
  Exclude:
    - 'doc/ex/get_pixels.rb'
    - 'examples/describe.rb'
    - 'examples/thumbnail.rb'
    - 'lib/rmagick_internal.rb'
    - 'lib/rvg/misc.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: 1
Lint/RescueException:
  Exclude:
    - 'lib/rmagick_internal.rb'

# Offense count: 36
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
  Max: 537

# Offense count: 18
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
  Max: 155

# Offense count: 1
# Configuration parameters: CountBlocks, CountModifierForms.
Metrics/BlockNesting:
  Max: 4

# Offense count: 9
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
  Max: 467

# Offense count: 1
# Configuration parameters: LengthThreshold.
Metrics/CollectionLiteralLength:
  Exclude:
    - 'doc/ex/smile.rb'

# Offense count: 15
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
  Max: 44

# Offense count: 57
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
  Max: 146

# Offense count: 23
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
  MaxOptionalParameters: 5
  Max: 8

# Offense count: 12
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
  Max: 42

# Offense count: 4
Naming/AccessorMethodName:
  Exclude:
    - 'lib/rmagick_internal.rb'
    - 'lib/rvg/misc.rb'

# Offense count: 2
# Configuration parameters: AllowedNames.
# AllowedNames: module_parent
Naming/ClassAndModuleCamelCase:
  Exclude:
    - 'lib/rmagick_internal.rb'

# Offense count: 4
# Configuration parameters: EnforcedStyle, AllowedPatterns.
# SupportedStyles: snake_case, camelCase
Naming/MethodName:
  Exclude:
    - 'lib/rvg/misc.rb'
    - 'lib/rvg/transformable.rb'

# Offense count: 220
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
  Exclude:
    - 'doc/ex/get_type_metrics.rb'
    - 'examples/histogram.rb'
    - 'lib/rmagick_internal.rb'
    - 'lib/rvg/clippath.rb'
    - 'lib/rvg/container.rb'
    - 'lib/rvg/embellishable.rb'
    - 'lib/rvg/misc.rb'
    - 'lib/rvg/paint.rb'
    - 'lib/rvg/pathdata.rb'
    - 'lib/rvg/rvg.rb'
    - 'lib/rvg/stretchable.rb'
    - 'lib/rvg/stylable.rb'
    - 'lib/rvg/text.rb'
    - 'lib/rvg/transformable.rb'
    - 'lib/rvg/units.rb'

# Offense count: 432
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
  Max: 126

# Offense count: 540
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
# DisallowedExamples: works
RSpec/ExampleWording:
  Enabled: false

# Offense count: 1
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
  Exclude:
    - 'spec/magick_spec.rb'

# Offense count: 1
RSpec/IdenticalEqualityAssertion:
  Exclude:
    - 'spec/rmagick/image/spaceship_spec.rb'

# Offense count: 544
RSpec/MultipleExpectations:
  Max: 72

# Offense count: 4
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: ^expect_, ^assert_
RSpec/NoExpectationExample:
  Exclude:
    - 'spec/rmagick/image/destroy_bang_spec.rb'
    - 'spec/rmagick/image/export_pixels_spec.rb'
    - 'spec/rmagick/image/import_pixels_spec.rb'
    - 'spec/rmagick/image_list/write_spec.rb'

# 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: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames.
# RedundantRestArgumentNames: args, arguments
# RedundantKeywordRestArgumentNames: kwargs, options, opts
# RedundantBlockArgumentNames: blk, block, proc
Style/ArgumentsForwarding:
  Exclude:
    - 'lib/rmagick_internal.rb'
    - 'lib/rvg/misc.rb'

# Offense count: 153
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/ArrayFirstLast:
  Enabled: false

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/BitwisePredicate:
  Exclude:
    - 'spec/rmagick/image_list/partition_spec.rb'

# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
Style/CaseEquality:
  Exclude:
    - 'spec/rmagick/enum/case_equality_spec.rb'
    - 'spec/rmagick/pixel/dup_spec.rb'
    - 'spec/rmagick/pixel/threequals_spec.rb'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns.
# AllowedMethods: ==, equal?, eql?
Style/ClassEqualityComparison:
  Exclude:
    - 'spec/rmagick/image_list/all_predicate_spec.rb'
    - 'spec/rmagick/image_list/any_predicate_spec.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: def_self, self_class
Style/ClassMethodsDefinitions:
  Exclude:
    - 'lib/rmagick_internal.rb'
    - 'lib/rvg/units.rb'

# Offense count: 88
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CommentedKeyword:
  Enabled: false

# Offense count: 128
# Configuration parameters: IgnoreModules.
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: 3
Style/DocumentDynamicEvalDefinition:
  Exclude:
    - 'lib/rmagick_internal.rb'

# Offense count: 37
# Configuration parameters: AllowedConstants.
Style/Documentation:
  Enabled: false

# Offense count: 164
# Configuration parameters: AllowedMethods, RequireForNonPublicMethods.
Style/DocumentationMethod:
  Enabled: false

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedVars.
Style/FetchEnvVar:
  Exclude:
    - 'ext/RMagick/extconf.rb'

# Offense count: 191
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
  EnforcedStyle: unannotated

# Offense count: 40
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
  Exclude:
    - 'ext/RMagick/extconf.rb'

# Offense count: 12
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedReceivers.
# AllowedReceivers: Thread.current
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: 2
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
  Exclude:
    - 'ext/RMagick/extconf.rb'

# Offense count: 145
Style/InlineComment:
  Enabled: false

# Offense count: 8
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: InverseMethods.
Style/InvertibleUnlessCondition:
  Exclude:
    - 'doc/ex/get_type_metrics.rb'
    - 'examples/identify.rb'
    - 'lib/rmagick_internal.rb'
    - 'lib/rvg/embellishable.rb'
    - 'lib/rvg/stretchable.rb'

# Offense count: 4514
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IgnoreMacros, AllowedMethods, AllowedPatterns, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, AllowParenthesesInStringInterpolation, EnforcedStyle.
# SupportedStyles: require_parentheses, omit_parentheses
Style/MethodCallWithArgsParentheses:
  Enabled: false

# Offense count: 57
# This cop supports safe autocorrection (--autocorrect).
# 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: 46
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: literals, strict
Style/MutableConstant:
  Exclude:
    - 'doc/ex/add_noise.rb'
    - 'doc/ex/arcs02.rb'
    - 'doc/ex/cubic01.rb'
    - 'doc/ex/cubic02.rb'
    - 'doc/ex/rvg_linecap.rb'
    - 'doc/ex/rvg_linejoin.rb'
    - 'doc/ex/rvg_opacity.rb'
    - 'doc/ex/smile.rb'
    - 'doc/ex/tref01.rb'
    - 'doc/ex/writing_mode01.rb'
    - 'doc/ex/writing_mode02.rb'
    - 'lib/rvg/misc.rb'
    - 'lib/rvg/stylable.rb'
    - 'spec/support/helpers.rb'

# Offense count: 32
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
  Exclude:
    - 'lib/rmagick_internal.rb'
    - 'lib/rvg/embellishable.rb'
    - 'spec/rmagick/image/destroy_spec.rb'

# Offense count: 4
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
  Exclude:
    - 'doc/ex/sparse_color.rb'
    - 'lib/rmagick_internal.rb'
    - 'lib/rvg/pathdata.rb'

# Offense count: 94
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: .
# SupportedStyles: same_as_string_literals, single_quotes, double_quotes
Style/QuotedSymbols:
  EnforcedStyle: double_quotes

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantBegin:
  Exclude:
    - 'lib/rvg/stylable.rb'

# Offense count: 19
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/RequireOrder:
  Exclude:
    - 'Rakefile'
    - 'doc/ex/polaroid.rb'
    - 'lib/rmagick_internal.rb'
    - 'lib/rvg/rvg.rb'
    - 'rmagick.gemspec'
    - 'spec/spec_helper.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/StaticClass:
  Exclude:
    - 'spec/rmagick/draw/class_methods/_dummy_img__spec.rb'

# Offense count: 186
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
  Enabled: false

# Offense count: 18
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/StringHashKeys:
  Exclude:
    - 'Rakefile'
    - 'lib/rmagick_internal.rb'
    - 'lib/rvg/misc.rb'
    - 'spec/rmagick/image/properties_spec.rb'

# Offense count: 308
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
  Enabled: false

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
Style/YodaCondition:
  Exclude:
    - 'spec/rmagick/image/destroy_spec.rb'

# Offense count: 113
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: .
# SupportedOperators: *, +, &, |, ^
Style/YodaExpression:
  Enabled: false

# Offense count: 134
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
  Max: 217
