# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 50`
# on 2024-07-02 02:15:28 UTC using RuboCop version 1.64.1.
# 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: 151
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
Layout/ExtraSpacing:
  Exclude:
    - 'bin/nokogiri'
    - 'ext/nokogiri/extconf.rb'
    - 'lib/nokogiri/xml/document.rb'
    - 'lib/nokogiri/xml/element_content.rb'
    - 'lib/nokogiri/xml/node/save_options.rb'
    - 'lib/nokogiri/xml/parse_options.rb'
    - 'lib/nokogiri/xml/reader.rb'
    - 'lib/nokogiri/xml/sax/parser.rb'
    - 'rakelib/extensions.rake'
    - 'test/helper.rb'
    - 'test/html4/sax/test_parser_text.rb'
    - 'test/html4/test_attributes.rb'
    - 'test/html5/test_encoding.rb'
    - 'test/html5/test_quirks_mode.rb'
    - 'test/namespaces/test_namespaces_in_builder_doc.rb'
    - 'test/namespaces/test_namespaces_in_created_doc.rb'
    - 'test/namespaces/test_namespaces_in_parsed_doc.rb'
    - 'test/xml/sax/test_parser_context.rb'
    - 'test/xml/sax/test_parser_text.rb'
    - 'test/xml/test_document_fragment.rb'
    - 'test/xml/test_namespace.rb'
    - 'test/xml/test_node.rb'
    - 'test/xml/test_node_attributes.rb'
    - 'test/xml/test_node_set.rb'
    - 'test/xml/test_text.rb'

# Offense count: 15
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
  Exclude:
    - 'rakelib/css-generate.rake'
    - 'rakelib/extensions.rake'
    - 'test/html4/test_document_encoding.rb'
    - 'test/test_memory_usage.rb'
    - 'test/xml/test_document.rb'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/RedundantRequireStatement:
  Exclude:
    - 'lib/nokogiri/css/parser_extras.rb'
    - 'test/helper.rb'

# Offense count: 5
Lint/ReturnInVoidContext:
  Exclude:
    - 'lib/nokogiri/html4/document.rb'
    - 'lib/nokogiri/html4/document_fragment.rb'
    - 'lib/nokogiri/html5/document_fragment.rb'
    - 'lib/nokogiri/xml/document_fragment.rb'
    - 'lib/nokogiri/xml/node.rb'

# Offense count: 1
Lint/SelfAssignment:
  Exclude:
    - 'test/xml/test_xpath.rb'

# Offense count: 19
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, consistent
Lint/SymbolConversion:
  Exclude:
    - 'test/html5/test_api.rb'
    - 'test/html5/test_encoding.rb'
    - 'test/html5/test_serialize.rb'

# Offense count: 82
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: lowercase, uppercase
Naming/HeredocDelimiterCase:
  Exclude:
    - 'test/decorators/test_slop.rb'
    - 'test/html4/sax/test_parser.rb'
    - 'test/html4/sax/test_parser_text.rb'
    - 'test/html4/test_document_encoding.rb'
    - 'test/html4/test_node.rb'
    - 'test/namespaces/test_namespaces_in_parsed_doc.rb'
    - 'test/namespaces/test_namespaces_preservation.rb'
    - 'test/test_xslt_transforms.rb'
    - 'test/xml/node/test_attribute_methods.rb'
    - 'test/xml/sax/test_parser_text.rb'
    - 'test/xml/test_attribute_decl.rb'
    - 'test/xml/test_c14n.rb'
    - 'test/xml/test_document.rb'
    - 'test/xml/test_element_content.rb'
    - 'test/xml/test_element_decl.rb'
    - 'test/xml/test_entity_decl.rb'
    - 'test/xml/test_namespace.rb'
    - 'test/xml/test_node_encoding.rb'
    - 'test/xml/test_node_reparenting.rb'
    - 'test/xml/test_node_set.rb'
    - 'test/xml/test_reader.rb'
    - 'test/xml/test_reader_encoding.rb'
    - 'test/xml/test_unparented_node.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/nokogiri.rb'
    - 'lib/nokogiri/html5.rb'

# Offense count: 20
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowInnerBackticks.
# SupportedStyles: backticks, percent_x, mixed
Style/CommandLiteral:
  Exclude:
    - 'ext/nokogiri/extconf.rb'
    - 'rakelib/extensions.rake'
    - 'scripts/files-modified-by-open-prs'
    - 'scripts/test-exported-symbols'
    - 'scripts/test-gem-file-contents'
    - 'test/helper.rb'
    - 'test/test_version.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/Dir:
  Exclude:
    - 'test/xml/sax/test_parser.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/EmptyBlockParameter:
  Exclude:
    - 'test/html4/test_builder.rb'
    - 'test/html5/test_builder.rb'

# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
  Exclude:
    - 'test/xml/test_document.rb'
    - 'test/xml/test_node.rb'
    - 'test/xml/test_node_set.rb'
    - 'test/xml/test_xpath.rb'

# Offense count: 53
# This cop supports safe autocorrection (--autocorrect).
Style/Encoding:
  Enabled: false

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/EvalWithLocation:
  Exclude:
    - 'lib/nokogiri/xml/builder.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/FileWrite:
  Exclude:
    - 'ext/nokogiri/extconf.rb'
    - 'rakelib/docker.rake'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowSplatArgument.
Style/HashConversion:
  Exclude:
    - 'lib/nokogiri/html4/encoding_reader.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Style/KeywordParametersOrder:
  Exclude:
    - 'ext/nokogiri/extconf.rb'

# Offense count: 2
Style/MissingRespondToMissing:
  Exclude:
    - 'lib/nokogiri/xml/builder.rb'

# Offense count: 22
# This cop supports safe autocorrection (--autocorrect).
Style/MultilineIfModifier:
  Exclude:
    - 'ext/nokogiri/extconf.rb'
    - 'lib/nokogiri/xml/node.rb'
    - 'lib/nokogiri/xslt.rb'
    - 'scripts/test-gem-file-contents'
    - 'scripts/test-gem-installation'
    - 'test/html5/test_api.rb'
    - 'test/html5/test_attributes.rb'
    - 'test/html5/test_builder.rb'
    - 'test/html5/test_encoding.rb'
    - 'test/html5/test_monkey_patch.rb'
    - 'test/html5/test_nokogumbo.rb'
    - 'test/html5/test_null.rb'
    - 'test/html5/test_quirks_mode.rb'
    - 'test/html5/test_serialize.rb'
    - 'test/html5/test_tree_construction.rb'
    - 'test/test_memory_usage.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/OrAssignment:
  Exclude:
    - 'lib/nokogiri/html5/document.rb'

# Offense count: 44
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
  Exclude:
    - 'ext/nokogiri/extconf.rb'
    - 'lib/nokogiri/css/xpath_visitor.rb'
    - 'lib/nokogiri/xml/document_fragment.rb'
    - 'lib/nokogiri/xslt.rb'
    - 'rakelib/test.rake'
    - 'test/css/test_xpath_visitor.rb'
    - 'test/helper.rb'
    - 'test/html4/test_document.rb'
    - 'test/html4/test_document_fragment.rb'
    - 'test/html4/test_node.rb'
    - 'test/html5/test_nokogumbo.rb'
    - 'test/html5/test_serialize.rb'
    - 'test/test_xslt_transforms.rb'
    - 'test/xml/test_attr.rb'
    - 'test/xml/test_namespace.rb'
    - 'test/xml/test_node.rb'
    - 'test/xml/test_node_attributes.rb'
    - 'test/xml/test_node_reparenting.rb'
    - 'test/xml/test_xpath.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantAssignment:
  Exclude:
    - 'scripts/files-modified-by-open-prs'

# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpEscape:
  Exclude:
    - 'test/xml/test_node.rb'
    - 'test/xml/test_node_reparenting.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/RedundantSort:
  Exclude:
    - 'scripts/test-gem-installation'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
  Exclude:
    - 'scripts/redos-radar.rb'
    - 'test/xml/test_builder.rb'

# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowIfMethodIsEmpty.
Style/SingleLineMethods:
  Exclude:
    - 'test/xml/test_document.rb'
    - 'test/xml/test_node.rb'
    - 'test/xml/test_node_set.rb'
    - 'test/xml/test_xpath.rb'

# Offense count: 8
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SlicingWithRange:
  Exclude:
    - 'lib/nokogiri/css/xpath_visitor.rb'
    - 'scripts/generate-html5-entities'
    - 'scripts/redos-radar.rb'
    - 'test/html5/test_api.rb'
    - 'test/html5/test_tree_construction.rb'
    - 'test/xml/test_node_set.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/StderrPuts:
  Exclude:
    - 'rakelib/check-manifest.rake'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/StringChars:
  Exclude:
    - 'test/html4/test_document.rb'

# Offense count: 9
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses:
  Exclude:
    - 'lib/nokogiri/css/xpath_visitor.rb'
    - 'lib/nokogiri/decorators/slop.rb'
    - 'lib/nokogiri/html5/node.rb'
    - 'lib/nokogiri/xml/node.rb'
    - 'test/html5/test_tree_construction.rb'
    - 'test/xml/test_node_reparenting.rb'

# Offense count: 1
# Configuration parameters: EnforcedStyle.
# SupportedStyles: forbid_mixed_logical_operators, forbid_logical_operators
Style/UnlessLogicalOperators:
  Exclude:
    - 'lib/nokogiri/xml/node_set.rb'

# 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:
    - 'lib/nokogiri/css/xpath_visitor.rb'
