# This configuration was generated by # `rubocop --auto-gen-config` # on 2024-04-18 19:59:34 UTC using RuboCop version 1.63.2. # 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: 11 # Configuration parameters: Include, IgnoredGems, OnlyFor. # Include: **/*.gemfile, **/Gemfile, **/gems.rb Bundler/GemComment: Exclude: - 'Gemfile' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: Severity, Include. # Include: **/*.gemspec Gemspec/RequireMFA: Exclude: - 'rmagick.gemspec' # 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. 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: 66 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: InspectBlocks. Layout/RedundantLineBreak: Enabled: false # Offense count: 1905 # 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: 1 # This cop supports safe autocorrection (--autocorrect). Layout/SpaceBeforeBrackets: Exclude: - 'lib/rmagick_internal.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: 5517 # Configuration parameters: Only, Ignore. Lint/ConstantResolution: Enabled: false # Offense count: 3 # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. 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: 1 # This cop supports safe autocorrection (--autocorrect). Lint/IdentityComparison: Exclude: - 'lib/rmagick_internal.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: 1 # Configuration parameters: AllowComments, AllowNil. Lint/SuppressedException: Exclude: - 'lib/rmagick_internal.rb' # Offense count: 39 # 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. Metrics/BlockNesting: Max: 4 # Offense count: 9 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: Max: 500 # Offense count: 1 # Configuration parameters: LengthThreshold. Metrics/CollectionLiteralLength: Exclude: - 'doc/ex/smile.rb' # Offense count: 17 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/CyclomaticComplexity: Max: 44 # Offense count: 58 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: Max: 146 # Offense count: 23 # Configuration parameters: CountKeywordArgs. Metrics/ParameterLists: MaxOptionalParameters: 5 Max: 8 # Offense count: 13 # 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: 428 # Configuration parameters: CountAsOne. RSpec/ExampleLength: Max: 126 # Offense count: 538 # 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: 543 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: 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: 2 # This cop supports unsafe autocorrection (--autocorrect-all). Style/ConcatArrayLiterals: Exclude: - 'spec/rmagick/image_list/concat_spec.rb' # Offense count: 129 # 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: 9 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowedCops. Style/DisableCopsWithinSourceCodeDirective: Exclude: - 'lib/rmagick_internal.rb' - 'spec/magick_spec.rb' - 'spec/rmagick/image_list/collect_spec.rb' - 'spec/rmagick/image_list/find_all_spec.rb' - 'spec/rmagick/image_list_spec.rb' # Offense count: 3 Style/DocumentDynamicEvalDefinition: Exclude: - 'lib/rmagick_internal.rb' # Offense count: 36 # Configuration parameters: AllowedConstants. Style/Documentation: Enabled: false # Offense count: 163 # Configuration parameters: 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: 802 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Enabled: false # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). Style/GlobalStdStream: Exclude: - 'Rakefile' # Offense count: 46 # 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: 4 # This cop supports safe autocorrection (--autocorrect). Style/IfUnlessModifier: Exclude: - 'ext/RMagick/extconf.rb' # Offense count: 146 Style/InlineComment: Enabled: false # Offense count: 10 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: InverseMethods. Style/InvertibleUnlessCondition: Exclude: - 'doc/ex/get_type_metrics.rb' - 'examples/identify.rb' - 'ext/RMagick/extconf.rb' - 'lib/rmagick_internal.rb' - 'lib/rvg/embellishable.rb' - 'lib/rvg/stretchable.rb' # Offense count: 4509 # 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: 59 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: literals, strict Style/MutableConstant: Enabled: false # Offense count: 32 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns. # SupportedStyles: predicate, comparison Style/NumericPredicate: Exclude: - 'spec/**/*' - 'lib/rmagick_internal.rb' - 'lib/rvg/embellishable.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: 16 # 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' - 'ext/RMagick/extconf.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: 185 # 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: 233 # 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: 110 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: . # SupportedOperators: *, +, &, |, ^ Style/YodaExpression: Enabled: false # Offense count: 135 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. # URISchemes: http, https Layout/LineLength: Max: 217