# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 100`
# on 2026-03-06 12:51:37 UTC using RuboCop version 1.85.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: 3495
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
# URISchemes: http, https
Layout/LineLength:
  Max: 200

# Offense count: 8
# Configuration parameters: MaximumRangeSize.
Lint/MissingCopEnableDirective:
  Exclude:
    - 'test/functional/channel_maintenance_test.rb'
    - 'test/functional/kgraft_maintenance_test.rb'
    - 'test/functional/maintenance_test.rb'
    - 'test/functional/request_controller_test.rb'

# Offense count: 2
# Configuration parameters: AllowedParentClasses.
Lint/MissingSuper:
  Exclude:
    - 'app/lib/backend/remember_location.rb'
    - 'app/queries/open_requests_with_project_as_source_or_target_finder.rb'

# Offense count: 4
Lint/NonLocalExitFromIterator:
  Exclude:
    - 'app/controllers/build_controller.rb'
    - 'app/controllers/configurations_controller.rb'
    - 'app/models/patchinfo.rb'

# Offense count: 1
Lint/StructNewOverride:
  Exclude:
    - 'app/models/buildresult.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/UselessOr:
  Exclude:
    - 'app/lib/routes_helper/api_matcher.rb'

# Offense count: 923
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
  Max: 255

# Offense count: 7
# Configuration parameters: CountBlocks, CountModifierForms, Max.
Metrics/BlockNesting:
  Exclude:
    - 'app/controllers/build_controller.rb'
    - 'app/controllers/webui/request_controller.rb'
    - 'app/models/bs_request.rb'
    - 'app/models/bs_request_action.rb'
    - 'lib/xpath_engine.rb'

# Offense count: 86
# Configuration parameters: CountComments, Max, CountAsOne.
Metrics/ClassLength:
  Exclude:
    - 'app/controllers/application_controller.rb'
    - 'app/controllers/build_controller.rb'
    - 'app/controllers/person_controller.rb'
    - 'app/controllers/public_controller.rb'
    - 'app/controllers/request_controller.rb'
    - 'app/controllers/search_controller.rb'
    - 'app/controllers/source_package_command_controller.rb'
    - 'app/controllers/source_package_controller.rb'
    - 'app/controllers/source_project_command_controller.rb'
    - 'app/controllers/source_project_controller.rb'
    - 'app/controllers/webui/comments_controller.rb'
    - 'app/controllers/webui/kiwi/images_controller.rb'
    - 'app/controllers/webui/package_controller.rb'
    - 'app/controllers/webui/packages/binaries_controller.rb'
    - 'app/controllers/webui/packages/files_controller.rb'
    - 'app/controllers/webui/patchinfo_controller.rb'
    - 'app/controllers/webui/project_controller.rb'
    - 'app/controllers/webui/projects/status_controller.rb'
    - 'app/controllers/webui/repositories_controller.rb'
    - 'app/controllers/webui/request_controller.rb'
    - 'app/controllers/webui/search_controller.rb'
    - 'app/controllers/webui/staging/workflows_controller.rb'
    - 'app/controllers/webui/users/notifications_controller.rb'
    - 'app/controllers/webui/users_controller.rb'
    - 'app/controllers/webui/webui_controller.rb'
    - 'app/lib/backend/connection.rb'
    - 'app/models/attrib.rb'
    - 'app/models/branch_package.rb'
    - 'app/models/bs_request_action.rb'
    - 'app/models/bs_request_action_maintenance_incident.rb'
    - 'app/models/bs_request_action_maintenance_release.rb'
    - 'app/models/bs_request_action_submit.rb'
    - 'app/models/bs_request_permission_check.rb'
    - 'app/models/buildresult.rb'
    - 'app/models/channel.rb'
    - 'app/models/comment.rb'
    - 'app/models/event/base.rb'
    - 'app/models/event/request.rb'
    - 'app/models/group.rb'
    - 'app/models/issue.rb'
    - 'app/models/issue_tracker.rb'
    - 'app/models/kiwi/image.rb'
    - 'app/models/kiwi/image/xml_parser.rb'
    - 'app/models/package_build_status.rb'
    - 'app/models/patchinfo.rb'
    - 'app/models/product.rb'
    - 'app/models/project/update_from_xml_command.rb'
    - 'app/models/relationship.rb'
    - 'app/models/repository.rb'
    - 'app/models/review.rb'
    - 'app/models/staging/staged_requests.rb'
    - 'app/models/user.rb'
    - 'app/models/workflow/step/branch_package_step.rb'
    - 'app/services/diff_parser.rb'
    - 'app/services/user_service/involved.rb'
    - 'db/migrate/20230727110437_migrate_to_utf8mb4.rb'
    - 'lib/xpath_engine.rb'
    - 'test/functional/attributes_test.rb'
    - 'test/functional/build_controller_test.rb'
    - 'test/functional/channel_maintenance_test.rb'
    - 'test/functional/comments_controller_test.rb'
    - 'test/functional/group_test.rb'
    - 'test/functional/interconnect_test.rb'
    - 'test/functional/issue_controller_test.rb'
    - 'test/functional/kgraft_maintenance_test.rb'
    - 'test/functional/person_controller_test.rb'
    - 'test/functional/product_test.rb'
    - 'test/functional/public_controller_test.rb'
    - 'test/functional/published_controller_test.rb'
    - 'test/functional/read_permission_test.rb'
    - 'test/functional/release_management_test.rb'
    - 'test/functional/request_events_test.rb'
    - 'test/functional/search_binary_release_test.rb'
    - 'test/functional/search_controller_test.rb'
    - 'test/functional/source_services_test.rb'
    - 'test/functional/statistics_controller_test.rb'
    - 'test/functional/webui/spider_test.rb'
    - 'test/node_matcher.rb'
    - 'test/unit/attrib_test.rb'
    - 'test/unit/attribute_test.rb'
    - 'test/unit/bs_request_test.rb'
    - 'test/unit/build_flag_test.rb'
    - 'test/unit/debug_flag_test.rb'
    - 'test/unit/package_test.rb'
    - 'test/unit/project_test.rb'
    - 'test/unit/publish_flag_test.rb'

# Offense count: 185
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
Metrics/CyclomaticComplexity:
  Exclude:
    - 'app/components/workflow_artifacts_per_step_component.rb'
    - 'app/controllers/application_controller.rb'
    - 'app/controllers/build_controller.rb'
    - 'app/controllers/concerns/backend_proxy.rb'
    - 'app/controllers/concerns/webui/project_build_result_parsing.rb'
    - 'app/controllers/configurations_controller.rb'
    - 'app/controllers/issue_trackers_controller.rb'
    - 'app/controllers/person_controller.rb'
    - 'app/controllers/public_controller.rb'
    - 'app/controllers/request_controller.rb'
    - 'app/controllers/search_controller.rb'
    - 'app/controllers/source_controller.rb'
    - 'app/controllers/source_package_command_controller.rb'
    - 'app/controllers/source_project_command_controller.rb'
    - 'app/controllers/source_project_controller.rb'
    - 'app/controllers/source_project_meta_controller.rb'
    - 'app/controllers/trigger_controller.rb'
    - 'app/controllers/webui/monitor_controller.rb'
    - 'app/controllers/webui/package_controller.rb'
    - 'app/controllers/webui/packages/branches_controller.rb'
    - 'app/controllers/webui/packages/files_controller.rb'
    - 'app/controllers/webui/patchinfo_controller.rb'
    - 'app/controllers/webui/project_controller.rb'
    - 'app/controllers/webui/projects/status_controller.rb'
    - 'app/controllers/webui/request_controller.rb'
    - 'app/controllers/webui/search_controller.rb'
    - 'app/controllers/webui/staging/workflows_controller.rb'
    - 'app/helpers/flag_helper.rb'
    - 'app/helpers/maintenance_helper.rb'
    - 'app/helpers/model_helper.rb'
    - 'app/helpers/webui/package_helper.rb'
    - 'app/helpers/webui/project_helper.rb'
    - 'app/helpers/webui/projects/status_helper.rb'
    - 'app/helpers/webui/request_helper.rb'
    - 'app/helpers/webui/webui_helper.rb'
    - 'app/jobs/consistency_check_job.rb'
    - 'app/jobs/update_released_binaries_job.rb'
    - 'app/lib/backend/connection.rb'
    - 'app/lib/backend/connection_helper.rb'
    - 'app/lib/backend/test.rb'
    - 'app/lib/suse/validator.rb'
    - 'app/models/attrib.rb'
    - 'app/models/binary_release.rb'
    - 'app/models/branch_package.rb'
    - 'app/models/branch_package/check_for_update.rb'
    - 'app/models/bs_request.rb'
    - 'app/models/bs_request/find_for/query.rb'
    - 'app/models/bs_request_action.rb'
    - 'app/models/bs_request_action/differ/query_builder.rb'
    - 'app/models/bs_request_action_maintenance_incident.rb'
    - 'app/models/bs_request_action_submit.rb'
    - 'app/models/bs_request_permission_check.rb'
    - 'app/models/channel.rb'
    - 'app/models/channel_binary.rb'
    - 'app/models/concerns/package_medium_container.rb'
    - 'app/models/event/base.rb'
    - 'app/models/event/request.rb'
    - 'app/models/event_subscription/find_for_event.rb'
    - 'app/models/group.rb'
    - 'app/models/kiwi/image/xml_parser.rb'
    - 'app/models/notification_report.rb'
    - 'app/models/owner_search/assignee.rb'
    - 'app/models/package.rb'
    - 'app/models/package_build_status.rb'
    - 'app/models/patchinfo.rb'
    - 'app/models/product.rb'
    - 'app/models/project.rb'
    - 'app/models/project/update_from_xml_command.rb'
    - 'app/models/project_status/calculator.rb'
    - 'app/models/relationship.rb'
    - 'app/models/repository.rb'
    - 'app/models/search_finder.rb'
    - 'app/models/update_notification_events.rb'
    - 'app/models/user.rb'
    - 'app/policies/attrib_policy.rb'
    - 'app/policies/comment_lock_policy.rb'
    - 'lib/memory_debugger.rb'
    - 'lib/xpath_engine.rb'
    - 'script/import_database.rb'
    - 'test/functional/backend_test.rb'
    - 'test/functional/maintenance_test.rb'
    - 'test/functional/published_controller_test.rb'
    - 'test/functional/read_permission_test.rb'
    - 'test/functional/webui/spider_test.rb'
    - 'test/functional/zzz_post_consistency_test.rb'
    - 'test/node_matcher.rb'

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

# Offense count: 7
# Configuration parameters: CountComments, Max, CountAsOne.
Metrics/ModuleLength:
  Exclude:
    - 'app/controllers/concerns/webui/project_build_result_parsing.rb'
    - 'app/helpers/flag_helper.rb'
    - 'app/helpers/maintenance_helper.rb'
    - 'app/helpers/webui/notification_helper.rb'
    - 'app/helpers/webui/request_helper.rb'
    - 'app/helpers/webui/user_helper.rb'
    - 'app/models/concerns/has_relationships.rb'

# Offense count: 18
# Configuration parameters: Max, CountKeywordArgs, MaxOptionalParameters.
Metrics/ParameterLists:
  Exclude:
    - 'app/helpers/maintenance_helper.rb'
    - 'app/lib/backend/api/build_results/binaries.rb'
    - 'app/lib/backend/api/build_results/status.rb'
    - 'app/lib/backend/api/sources/package.rb'
    - 'app/mixins/build_log_support.rb'
    - 'app/services/gitea_status_reporter.rb'
    - 'app/services/github_status_reporter.rb'
    - 'app/services/gitlab_status_reporter.rb'
    - 'lib/statistics_calculations.rb'
    - 'test/functional/read_permission_test.rb'
    - 'test/functional/source_controller_test.rb'

# Offense count: 153
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
Metrics/PerceivedComplexity:
  Exclude:
    - 'app/controllers/application_controller.rb'
    - 'app/controllers/build_controller.rb'
    - 'app/controllers/concerns/webui/project_build_result_parsing.rb'
    - 'app/controllers/configurations_controller.rb'
    - 'app/controllers/issue_trackers_controller.rb'
    - 'app/controllers/person_controller.rb'
    - 'app/controllers/public_controller.rb'
    - 'app/controllers/request_controller.rb'
    - 'app/controllers/search_controller.rb'
    - 'app/controllers/source_controller.rb'
    - 'app/controllers/source_package_command_controller.rb'
    - 'app/controllers/source_project_command_controller.rb'
    - 'app/controllers/source_project_controller.rb'
    - 'app/controllers/source_project_meta_controller.rb'
    - 'app/controllers/webui/monitor_controller.rb'
    - 'app/controllers/webui/package_controller.rb'
    - 'app/controllers/webui/packages/branches_controller.rb'
    - 'app/controllers/webui/packages/files_controller.rb'
    - 'app/controllers/webui/patchinfo_controller.rb'
    - 'app/controllers/webui/project_controller.rb'
    - 'app/controllers/webui/projects/status_controller.rb'
    - 'app/controllers/webui/request_controller.rb'
    - 'app/controllers/webui/search_controller.rb'
    - 'app/helpers/flag_helper.rb'
    - 'app/helpers/maintenance_helper.rb'
    - 'app/helpers/model_helper.rb'
    - 'app/helpers/webui/package_helper.rb'
    - 'app/helpers/webui/projects/status_helper.rb'
    - 'app/helpers/webui/webui_helper.rb'
    - 'app/jobs/consistency_check_job.rb'
    - 'app/jobs/update_released_binaries_job.rb'
    - 'app/lib/backend/connection.rb'
    - 'app/lib/backend/test.rb'
    - 'app/lib/suse/validator.rb'
    - 'app/models/attrib.rb'
    - 'app/models/attrib_type.rb'
    - 'app/models/binary_release.rb'
    - 'app/models/branch_package.rb'
    - 'app/models/branch_package/check_for_update.rb'
    - 'app/models/bs_request.rb'
    - 'app/models/bs_request_action.rb'
    - 'app/models/bs_request_action/differ/query_builder.rb'
    - 'app/models/bs_request_action_maintenance_incident.rb'
    - 'app/models/bs_request_action_submit.rb'
    - 'app/models/bs_request_permission_check.rb'
    - 'app/models/channel.rb'
    - 'app/models/concerns/has_relationships.rb'
    - 'app/models/concerns/package_medium_container.rb'
    - 'app/models/event/request.rb'
    - 'app/models/event_subscription/find_for_event.rb'
    - 'app/models/group.rb'
    - 'app/models/issue_tracker.rb'
    - 'app/models/kiwi/image/xml_parser.rb'
    - 'app/models/notification_report.rb'
    - 'app/models/owner_search/assignee.rb'
    - 'app/models/package.rb'
    - 'app/models/package_build_status.rb'
    - 'app/models/patchinfo.rb'
    - 'app/models/product.rb'
    - 'app/models/project.rb'
    - 'app/models/project/update_from_xml_command.rb'
    - 'app/models/project_status/calculator.rb'
    - 'app/models/relationship.rb'
    - 'app/models/repository.rb'
    - 'app/policies/attrib_policy.rb'
    - 'lib/memory_debugger.rb'
    - 'lib/xpath_engine.rb'
    - 'script/import_database.rb'
    - 'test/functional/backend_test.rb'
    - 'test/functional/maintenance_test.rb'
    - 'test/functional/published_controller_test.rb'
    - 'test/functional/read_permission_test.rb'
    - 'test/functional/webui/spider_test.rb'
    - 'test/functional/zzz_post_consistency_test.rb'
    - 'test/node_matcher.rb'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
  Exclude:
    - 'app/controllers/application_controller.rb'

# Offense count: 4
# Configuration parameters: EnforcedStyle, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
# SupportedStyles: snake_case, camelCase
# ForbiddenIdentifiers: __id__, __send__
Naming/MethodName:
  Exclude:
    - 'test/functional/maintenance_test.rb'
    - 'test/functional/search_controller_test.rb'
    - 'test/test_helper.rb'

# Offense count: 29
# 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:
    - 'app/controllers/search_controller.rb'
    - 'app/controllers/webui/projects/status_controller.rb'
    - 'app/lib/suse/permission.rb'
    - 'app/mixins/parse_package_diff.rb'
    - 'app/models/branch_package.rb'
    - 'app/models/branch_package/dry_run.rb'
    - 'app/models/bs_request_action.rb'
    - 'app/models/bs_request_action_maintenance_release.rb'
    - 'app/models/concerns/has_relationships.rb'
    - 'app/models/event/request.rb'
    - 'app/models/issue_tracker.rb'
    - 'app/models/package.rb'
    - 'app/models/patchinfo.rb'
    - 'app/models/product.rb'
    - 'app/models/worker_status.rb'
    - 'app/services/monitor_controller_service/building_information_updater.rb'
    - 'lib/memory_debugger.rb'
    - 'script/reformat_memprof'

# Offense count: 12
# Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
# AllowedMethods: call
# WaywardPredicates: infinite?, nonzero?
Naming/PredicateMethod:
  Exclude:
    - 'app/controllers/webui/package_controller.rb'
    - 'app/controllers/webui/request_controller.rb'
    - 'app/lib/suse/permission.rb'
    - 'app/models/concerns/staging_project.rb'
    - 'app/models/project.rb'
    - 'app/models/service.rb'
    - 'app/models/status_message.rb'
    - 'app/models/user.rb'

# Offense count: 20
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
  Exclude:
    - 'test/functional/request_controller_test.rb'
    - 'test/functional/search_controller_test.rb'
    - 'test/functional/source_controller_test.rb'
    - 'test/unit/project_test.rb'

# Offense count: 54
RSpec/AnyInstance:
  Exclude:
    - 'spec/controllers/staging/excluded_requests_controller_spec.rb'
    - 'spec/controllers/status_project_controller_spec.rb'
    - 'spec/controllers/webui/architectures_controller_spec.rb'
    - 'spec/controllers/webui/attribute_controller_spec.rb'
    - 'spec/controllers/webui/packages/files_controller_spec.rb'
    - 'spec/controllers/webui/packages/meta_controller_spec.rb'
    - 'spec/controllers/webui/patchinfo_controller_spec.rb'
    - 'spec/controllers/webui/project_controller_spec.rb'
    - 'spec/controllers/webui/projects/maintenance_incident_requests_controller_spec.rb'
    - 'spec/controllers/webui/projects/rebuild_times_controller_spec.rb'
    - 'spec/controllers/webui/repositories_controller_spec.rb'
    - 'spec/controllers/webui/staging/excluded_requests_controller_spec.rb'
    - 'spec/controllers/webui/staging/projects_controller_spec.rb'
    - 'spec/controllers/webui/staging/workflows_controller_spec.rb'
    - 'spec/controllers/webui/status_messages_controller_spec.rb'
    - 'spec/features/webui/projects_spec.rb'
    - 'spec/features/webui/sign_up_spec.rb'
    - 'spec/jobs/send_event_emails_job_spec.rb'
    - 'spec/mailers/event_mailer_spec.rb'
    - 'spec/models/branch_package/lookup_incident_package_spec.rb'
    - 'spec/models/issue_tracker_spec.rb'
    - 'spec/models/package_spec.rb'
    - 'spec/models/project_spec.rb'

# Offense count: 1245
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
  Enabled: false

# Offense count: 404
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
  Enabled: false

# Offense count: 214
# Configuration parameters: Max, CountAsOne.
RSpec/ExampleLength:
  Exclude:
    - 'spec/controllers/attribute_controller_spec.rb'
    - 'spec/controllers/source_attribute_controller_spec.rb'
    - 'spec/controllers/staging/excluded_requests_controller_spec.rb'
    - 'spec/controllers/staging/staging_projects_controller_spec.rb'
    - 'spec/controllers/status/required_checks_controller_spec.rb'
    - 'spec/controllers/webui/request_controller_spec.rb'
    - 'spec/controllers/webui/requests/devel_project_changes_controller_spec.rb'
    - 'spec/controllers/webui/requests/submissions_controller_spec.rb'
    - 'spec/controllers/webui/status_messages_controller_spec.rb'
    - 'spec/controllers/webui/users/notifications_controller_spec.rb'
    - 'spec/db/data/backfill_notified_projects_spec.rb'
    - 'spec/db/data/regenerate_notifications_spec.rb'
    - 'spec/features/beta/webui/my_requests_spec.rb'
    - 'spec/features/beta/webui/package_requests_spec.rb'
    - 'spec/features/beta/webui/project_requests_spec.rb'
    - 'spec/features/webui/attributes_spec.rb'
    - 'spec/features/webui/change_bugowner_spec.rb'
    - 'spec/features/webui/comments_spec.rb'
    - 'spec/features/webui/groups_spec.rb'
    - 'spec/features/webui/image_templates_spec.rb'
    - 'spec/features/webui/interconnects_spec.rb'
    - 'spec/features/webui/kiwi/images_spec.rb'
    - 'spec/features/webui/login_spec.rb'
    - 'spec/features/webui/main_page_spec.rb'
    - 'spec/features/webui/maintained_projects_spec.rb'
    - 'spec/features/webui/maintenance_workflow_spec.rb'
    - 'spec/features/webui/packages_spec.rb'
    - 'spec/features/webui/patchinfo_spec.rb'
    - 'spec/features/webui/projects_spec.rb'
    - 'spec/features/webui/repositories_spec.rb'
    - 'spec/features/webui/requests/submissions_spec.rb'
    - 'spec/features/webui/requests_spec.rb'
    - 'spec/features/webui/search_spec.rb'
    - 'spec/features/webui/sign_up_spec.rb'
    - 'spec/features/webui/subscriptions_spec.rb'
    - 'spec/features/webui/users/admin_configuration_spec.rb'
    - 'spec/features/webui/users/user_admin_edit_spec.rb'
    - 'spec/features/webui/users/user_home_page_spec.rb'
    - 'spec/features/webui/watchlists_spec.rb'
    - 'spec/helpers/webui/markdown_helper_spec.rb'
    - 'spec/lib/rubocop/cop/view_component/avoid_global_state_spec.rb'
    - 'spec/lib/rubocop/cop/view_component/class_name_spec.rb'
    - 'spec/lib/rubocop/cop/view_component/file_name_spec.rb'
    - 'spec/lib/rubocop/cop/view_component/missing_preview_file_spec.rb'
    - 'spec/models/bs_request_spec.rb'
    - 'spec/models/kiwi/image_spec.rb'
    - 'spec/models/kiwi/repository_spec.rb'
    - 'spec/models/owner_search_spec.rb'
    - 'spec/models/package_spec.rb'
    - 'spec/models/project/staging_project_spec.rb'
    - 'spec/models/project/update_from_xml_command_spec.rb'
    - 'spec/models/project_spec.rb'
    - 'spec/models/review_spec.rb'
    - 'spec/models/update_notification_events_spec.rb'
    - 'spec/models/user_spec.rb'
    - 'spec/routing/api_matcher_spec.rb'
    - 'spec/shared/examples/a_project_status_controller.rb'
    - 'spec/shared/examples/features/boostrap_flag_tables.rb'
    - 'spec/shared/examples/features/bootstrap_user_tab.rb'
    - 'spec/shared/examples/features/flags_tables.rb'

# Offense count: 114
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
RSpec/IndexedLet:
  Exclude:
    - 'spec/controllers/search_controller_spec.rb'
    - 'spec/controllers/staging/excluded_requests_controller_spec.rb'
    - 'spec/controllers/webui/attribute_controller_spec.rb'
    - 'spec/controllers/webui/project_controller_spec.rb'
    - 'spec/db/data/backfill_notified_projects_spec.rb'
    - 'spec/db/data/generate_web_notifications_spec.rb'
    - 'spec/db/data/project_log_entry_user_name_spec.rb'
    - 'spec/db/data/remove_duplicated_flags_spec.rb'
    - 'spec/db/data/remove_notifications_for_missing_notifiables_spec.rb'
    - 'spec/features/webui/groups_spec.rb'
    - 'spec/features/webui/image_templates_spec.rb'
    - 'spec/features/webui/requests_spec.rb'
    - 'spec/jobs/create_project_log_entry_job_spec.rb'
    - 'spec/jobs/send_event_emails_job_spec.rb'
    - 'spec/jobs/update_package_meta_job_spec.rb'
    - 'spec/lib/statistics_calculations_spec.rb'
    - 'spec/lib/tasks/rollout_spec.rb'
    - 'spec/lib/tasks/workflows_spec.rb'
    - 'spec/models/attrib_spec.rb'
    - 'spec/models/package_spec.rb'
    - 'spec/models/project/maintenance_incidents_spec.rb'
    - 'spec/models/project/staging_project_spec.rb'
    - 'spec/models/project/subprojects_spec.rb'
    - 'spec/models/project/update_from_xml_command_spec.rb'
    - 'spec/models/project_spec.rb'
    - 'spec/models/review_spec.rb'
    - 'spec/models/user_spec.rb'
    - 'spec/models/workflow/step/configure_repositories_spec.rb'
    - 'spec/shared/contexts/a_set_of_bs_requests.rb'
    - 'spec/shared/contexts/a_user_and_subscriptions.rb'
    - 'spec/shared/contexts/a_user_and_subscriptions_with_defaults.rb'

# Offense count: 1728
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
  Max: 28

# Offense count: 1
RSpec/SpecFilePathSuffix:
  Exclude:
    - 'spec/models/package_datatable_spec_backup.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/ApplicationController:
  Exclude:
    - 'app/controllers/webui/webui_controller.rb'

# Offense count: 27
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Rails/FilePath:
  Exclude:
    - 'test/functional/backend_test.rb'
    - 'test/functional/channel_maintenance_test.rb'
    - 'test/functional/kgraft_maintenance_test.rb'
    - 'test/functional/maintenance_test.rb'
    - 'test/functional/product_test.rb'
    - 'test/functional/request_controller_test.rb'
    - 'test/functional/search_controller_test.rb'
    - 'test/functional/source_controller_test.rb'
    - 'test/functional/source_services_test.rb'
    - 'test/functional/zzz_post_consistency_test.rb'
    - 'test/test_helper.rb'

# Offense count: 31
Rails/HasManyOrHasOneDependent:
  Exclude:
    - 'app/models/architecture.rb'
    - 'app/models/attrib.rb'
    - 'app/models/bs_request.rb'
    - 'app/models/package.rb'
    - 'app/models/project.rb'
    - 'app/models/repository.rb'
    - 'app/models/review.rb'
    - 'app/models/static_permission.rb'
    - 'app/models/user.rb'

# Offense count: 16
Rails/HelperInstanceVariable:
  Exclude:
    - 'app/helpers/webui/markdown_helper.rb'
    - 'app/helpers/webui/project_helper.rb'
    - 'app/helpers/webui/webui_helper.rb'

# Offense count: 47
# Configuration parameters: IgnoreScopes.
Rails/InverseOf:
  Exclude:
    - 'app/models/attrib.rb'
    - 'app/models/attrib_type.rb'
    - 'app/models/bs_request.rb'
    - 'app/models/bs_request_action.rb'
    - 'app/models/comment.rb'
    - 'app/models/concerns/project_links.rb'
    - 'app/models/concerns/project_maintenance.rb'
    - 'app/models/concerns/staging_project.rb'
    - 'app/models/group.rb'
    - 'app/models/kiwi/image.rb'
    - 'app/models/linked_project.rb'
    - 'app/models/maintenance_incident.rb'
    - 'app/models/package.rb'
    - 'app/models/project.rb'
    - 'app/models/repository.rb'
    - 'app/models/review.rb'
    - 'app/models/staging/workflow.rb'
    - 'app/models/status/check.rb'
    - 'app/models/status/report.rb'
    - 'app/models/user.rb'

# Offense count: 5
Rails/OutputSafety:
  Exclude:
    - 'app/helpers/webui/package_helper.rb'
    - 'app/helpers/webui/request_helper.rb'
    - 'app/helpers/webui/user_helper.rb'

# Offense count: 15
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/RakeEnvironment:
  Exclude:
    - 'lib/tasks/coverage.rake'
    - 'lib/tasks/dev.rake'
    - 'lib/tasks/dev/lint.rake'
    - 'lib/tasks/dev/minitest.rake'
    - 'lib/tasks/migrate_options_yml.rake'

# Offense count: 4
# Configuration parameters: ForbiddenMethods, AllowedMethods.
# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
Rails/SkipsModelValidations:
  Exclude:
    - 'app/jobs/update_released_binaries_job.rb'
    - 'db/data/20210505160000_backfill_add_kind_to_path_element.rb'
    - 'db/migrate/20170621100321_add_channel_to_event_subscriptions.rb'
    - 'db/migrate/20170630144825_convert_tokens_to_service_tokens.rb'

# Offense count: 18
Rails/ThreeStateBooleanColumn:
  Exclude:
    - 'db/migrate/20170516140442_add_several_fields_to_kiwi_repositories.rb'
    - 'db/migrate/20170614083014_create_notifications.rb'
    - 'db/migrate/20170710134059_create_kiwi_packages.rb'
    - 'db/migrate/20170905101113_add_use_project_repositories_to_image.rb'
    - 'db/migrate/20180307074538_add_local_user_flag.rb'
    - 'db/migrate/20180814112739_add_in_beta_to_user.rb'
    - 'db/migrate/20180911123709_create_kiwi_profiles.rb'
    - 'db/migrate/20190704072437_add_column_in_rollout_to_users.rb'
    - 'db/migrate/20200422134122_add_rss_and_web_to_notification.rb'
    - 'db/migrate/20200423160517_add_enabled_to_event_subscription.rb'
    - 'db/migrate/20201209105103_add_channel_disable_flag.rb'
    - 'db/migrate/20210520150000_add_remote_to_distribution.rb'
    - 'db/migrate/20210707134455_publish_issues.rb'
    - 'db/migrate/20211005112031_add_web_to_groups_users.rb'

# Offense count: 66
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/TimeZone:
  Exclude:
    - 'app/controllers/issue_trackers_controller.rb'
    - 'app/controllers/request_controller.rb'
    - 'app/controllers/webui/monitor_controller.rb'
    - 'app/datatables/package_datatable.rb'
    - 'app/jobs/status_history_rescaler_job.rb'
    - 'app/jobs/update_released_binaries_job.rb'
    - 'app/lib/backend/connection.rb'
    - 'app/mailers/admin_mailer.rb'
    - 'app/models/binary_release.rb'
    - 'app/models/branch_package.rb'
    - 'app/models/bs_request.rb'
    - 'app/models/bs_request_action_maintenance_release.rb'
    - 'app/models/concerns/staging_project.rb'
    - 'app/models/issue_tracker.rb'
    - 'app/models/package.rb'
    - 'app/models/package_build_reason.rb'
    - 'app/models/project_log_entry.rb'
    - 'app/models/review.rb'
    - 'app/models/staging/staged_requests.rb'
    - 'app/services/monitor_controller_service/building_information_updater.rb'
    - 'app/views/result/packageresult.xml.builder'
    - 'app/views/result/projectresult.xml.builder'
    - 'app/views/webui/feeds/notifications.rss.builder'
    - 'lib/statistics_calculations.rb'
    - 'script/import_database.rb'
    - 'spec/factories/attribs.rb'
    - 'spec/factories/issue_tracker.rb'
    - 'spec/features/webui/requests_spec.rb'
    - 'spec/models/package_spec.rb'
    - 'spec/models/project_status/pack_info_spec.rb'
    - 'spec/services/monitor_controller_service/building_information_updater_spec.rb'
    - 'test/functional/channel_maintenance_test.rb'
    - 'test/functional/maintenance_test.rb'
    - 'test/test_helper.rb'
    - 'test/unit/binary_release_test.rb'
    - 'test/unit/package_remove_test.rb'

# Offense count: 160
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
# SupportedStyles: nested, compact
# SupportedStylesForClasses: ~, nested, compact
# SupportedStylesForModules: ~, nested, compact
Style/ClassAndModuleChildren:
  Enabled: false

# Offense count: 4
Style/ClassVars:
  Exclude:
    - 'test/functional/branch_publish_flag_test.rb'
    - 'test/test_helper.rb'

# Offense count: 7
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CombinableLoops:
  Exclude:
    - 'app/models/branch_package.rb'
    - 'app/models/bs_request.rb'
    - 'app/models/project.rb'
    - 'spec/factories/staging_workflow.rb'
    - 'test/functional/release_management_test.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
  Exclude:
    - 'app/models/bs_request_action_submit.rb'

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

# Offense count: 5
Style/FileOpen:
  Exclude:
    - 'app/controllers/webui/projects/rebuild_times_controller.rb'
    - 'app/lib/backend/file.rb'
    - 'script/start_test_backend'
    - 'test/test_helper.rb'

# Offense count: 1928
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
  Enabled: false

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

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: InverseMethods, InverseBlocks.
Style/InverseMethods:
  Exclude:
    - 'app/models/bs_request_action.rb'
    - 'app/models/channel_binary.rb'
    - 'app/models/concerns/has_attributes.rb'
    - 'app/models/project.rb'
    - 'app/models/repository.rb'

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MapJoin:
  Exclude:
    - 'app/models/event_subscription/find_for_event.rb'
    - 'app/models/full_text_search.rb'

# Offense count: 2
Style/MissingRespondToMissing:
  Exclude:
    - 'app/lib/suse/permission.rb'
    - 'app/models/configuration.rb'

# Offense count: 34
# Configuration parameters: AllowedClasses.
Style/OneClassPerFile:
  Exclude:
    - 'db/data/20170831143534_convert_notifications_event_payload_to_json.rb'
    - 'db/data/20250717152701_delete_orphan_records_from_groups_notifications.rb'
    - 'lib/api_error.rb'
    - 'spec/controllers/concerns/rescue_authorization_handler_spec.rb'
    - 'spec/lib/pretty_nested_errors_spec.rb'
    - 'test/test_helper.rb'

# Offense count: 14
Style/OpenStructUse:
  Exclude:
    - 'spec/controllers/webui/projects/meta_controller_spec.rb'
    - 'spec/controllers/webui/projects/project_configuration_controller_spec.rb'
    - 'spec/services/trigger_controller_service/token_extractor_spec.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/ReduceToHash:
  Exclude:
    - 'app/services/package_service/templater.rb'

# Offense count: 80
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
  Exclude:
    - 'config/initializers/nokogiri_builder.rb'
    - 'test/functional/aaa_pre_consistency_test.rb'
    - 'test/functional/about_controller_test.rb'
    - 'test/functional/architectures_controller_test.rb'
    - 'test/functional/attributes_test.rb'
    - 'test/functional/backend_test.rb'
    - 'test/functional/branch_publish_flag_test.rb'
    - 'test/functional/build_controller_test.rb'
    - 'test/functional/channel_maintenance_test.rb'
    - 'test/functional/configurations_controller_test.rb'
    - 'test/functional/distributions_controller_test.rb'
    - 'test/functional/group_test.rb'
    - 'test/functional/interconnect_test.rb'
    - 'test/functional/issue_controller_test.rb'
    - 'test/functional/issue_trackers_controller_test.rb'
    - 'test/functional/kgraft_maintenance_test.rb'
    - 'test/functional/person_controller_test.rb'
    - 'test/functional/product_test.rb'
    - 'test/functional/public_controller_test.rb'
    - 'test/functional/published_controller_test.rb'
    - 'test/functional/read_permission_test.rb'
    - 'test/functional/release_management_test.rb'
    - 'test/functional/request_controller_test.rb'
    - 'test/functional/search_controller_test.rb'
    - 'test/functional/source_controller_test.rb'
    - 'test/functional/source_services_test.rb'
    - 'test/functional/statistics_controller_test.rb'
    - 'test/functional/status_controller_test.rb'
    - 'test/functional/zzz_post_consistency_test.rb'
    - 'test/integration/last_events_test.rb'

# Offense count: 2
ViewComponent/AvoidGlobalState:
  Exclude:
    - 'app/components/bs_request_activity_timeline_component.rb'

# Offense count: 22
ViewComponent/MissingPreviewFile:
  Exclude:
    - 'app/components/action_seen_by_user_component.rb'
    - 'app/components/add_review_collapsible_component.rb'
    - 'app/components/add_review_dropdown_component.rb'
    - 'app/components/bs_request_action_source_and_target_component.rb'
    - 'app/components/bs_request_activity_timeline_component.rb'
    - 'app/components/bs_request_comment_component.rb'
    - 'app/components/bs_request_overview_avatars_component.rb'
    - 'app/components/bs_request_priority_badge_component.rb'
    - 'app/components/bs_request_state_badge_component.rb'
    - 'app/components/copy_to_clipboard_input_component.rb'
    - 'app/components/delete_confirmation_dialog_component.rb'
    - 'app/components/request_decision_component.rb'
    - 'app/components/staging_project_link_component.rb'
    - 'app/components/token_card_component.rb'
    - 'app/components/user_avatar_component.rb'
    - 'app/components/watched_items_list_component.rb'
    - 'app/components/watchlist_component.rb'
    - 'app/components/workflow_run_detail_component.rb'
    - 'app/components/workflow_run_filter_component.rb'
    - 'app/components/workflow_run_header_component.rb'
    - 'app/components/workflow_run_row_component.rb'
    - 'app/components/workflow_run_status_badge_component.rb'
