# This configuration was generated by # `rubocop --auto-gen-config` # on 2018-10-08 19:33:24 +0300 using RuboCop version 0.59.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: 18 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent Layout/IndentHeredoc: Exclude: - 'Rakefile' - 'examples/describe.rb' - 'examples/histogram.rb' - 'examples/image_opacity.rb' - 'examples/import_export.rb' - 'examples/pattern_fill.rb' - 'examples/rotating_text.rb' - 'examples/spinner.rb' - 'examples/thumbnail.rb' - 'ext/RMagick/extconf.rb' - 'lib/rvg/to_c.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: symmetrical, new_line, same_line Layout/MultilineArrayBraceLayout: Exclude: - 'ext/RMagick/extconf.rb' # Offense count: 1 Lint/HandleExceptions: Exclude: - 'lib/rmagick_internal.rb' # Offense count: 1 Lint/RescueException: Exclude: - 'lib/rmagick_internal.rb' # Offense count: 1 Lint/ReturnInVoidContext: Exclude: - 'lib/rmagick_internal.rb' # Offense count: 6 # Configuration parameters: CheckForMethodsWithNoSideEffects. Lint/Void: Exclude: - 'lib/rmagick_internal.rb' - 'lib/rvg/embellishable.rb' # Offense count: 170 Metrics/AbcSize: Max: 559 # Offense count: 21 # Configuration parameters: CountComments, ExcludedMethods. # ExcludedMethods: refine Metrics/BlockLength: Max: 155 # Offense count: 1 # Configuration parameters: CountBlocks. Metrics/BlockNesting: Max: 4 # Offense count: 22 Metrics/CyclomaticComplexity: Max: 42 # Offense count: 172 # Configuration parameters: CountComments, ExcludedMethods. Metrics/MethodLength: Max: 146 # Offense count: 13 # Configuration parameters: CountKeywordArgs. Metrics/ParameterLists: Max: 8 # Offense count: 15 Metrics/PerceivedComplexity: Max: 40 # Offense count: 4 Naming/AccessorMethodName: Exclude: - 'lib/rmagick_internal.rb' - 'lib/rvg/misc.rb' # Offense count: 6 Naming/ClassAndModuleCamelCase: Exclude: - 'lib/rmagick_internal.rb' - 'test/Image1.rb' - 'test/Image2.rb' - 'test/Image3.rb' - 'test/Image_attributes.rb' # Offense count: 123 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' - 'test/Image3.rb' - 'test/test_all_basic.rb' # Offense count: 16 # 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: Enabled: false # Offense count: 4 # Configuration parameters: EnforcedStyle. # SupportedStyles: snake_case, camelCase Naming/MethodName: Exclude: - 'lib/rvg/misc.rb' - 'lib/rvg/transformable.rb' # Offense count: 5 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros. # NamePrefix: is_, has_, have_ # NamePrefixBlacklist: is_, has_, have_ # NameWhitelist: is_a? # MethodDefinitionMacros: define_method, define_singleton_method Naming/PredicateName: Exclude: - 'spec/**/*' - 'ext/RMagick/extconf.rb' - 'lib/rmagick_internal.rb' # Offense count: 222 # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. # AllowedNames: io, id, to, by, on, in, at, ip, db Naming/UncommunicativeMethodParamName: Enabled: false # Offense count: 6 Performance/FixedSize: Exclude: - 'test/Image2.rb' # Offense count: 2 # Cop supports --auto-correct. Performance/RedundantMatch: Exclude: - 'examples/demo.rb' - 'test/Image2.rb' # Offense count: 4 Security/MarshalLoad: Exclude: - 'lib/rmagick_internal.rb' - 'spec/rmagick/draw_spec.rb' - 'test/Image2.rb' - 'test/ImageList2.rb' # Offense count: 6 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, EnforcedStyle. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Exclude: - 'doc/ex/composite_layers.rb' - 'lib/rvg/to_c.rb' - 'spec/rmagick/draw_spec.rb' - 'test/Magick.rb' # Offense count: 90 Style/CommentedKeyword: Enabled: false # Offense count: 36 Style/Documentation: Enabled: false # Offense count: 4 Style/EvalWithLocation: Exclude: - 'lib/rmagick_internal.rb' - 'lib/rvg/units.rb' # Offense count: 158 # Configuration parameters: EnforcedStyle. # SupportedStyles: annotated, template, unannotated Style/FormatStringToken: Exclude: - 'examples/identify.rb' - 'ext/RMagick/extconf.rb' - 'lib/rmagick_internal.rb' - 'lib/rvg/pathdata.rb' # Offense count: 65 # Configuration parameters: AllowedVariables. Style/GlobalVars: Exclude: - 'examples/histogram.rb' - 'ext/RMagick/extconf.rb' # Offense count: 2 Style/MethodMissingSuper: Exclude: - 'lib/rmagick_internal.rb' - 'lib/rvg/misc.rb' # 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: 158 # Cop supports --auto-correct. Style/MutableConstant: Enabled: false # Offense count: 672 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Metrics/LineLength: Max: 278