openSUSE/open-build-service

View on GitHub
src/api/.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 100`
# on 2024-05-10 11:31:30 UTC using RuboCop version 1.63.5.
# 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: 275
# Configuration parameters: EnforcedStyle.
# SupportedStyles: link_or_button, strict
Capybara/ClickLinkOrButtonStyle:
  Exclude:
    - 'spec/features/beta/webui/appeals_spec.rb'
    - 'spec/features/beta/webui/decisions_spec.rb'
    - 'spec/features/beta/webui/maintenance_workflow_spec.rb'
    - 'spec/features/beta/webui/reports_spec.rb'
    - 'spec/features/webui/attributes_spec.rb'
    - 'spec/features/webui/canned_responses_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/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/status_spec.rb'
    - 'spec/features/webui/projects_spec.rb'
    - 'spec/features/webui/repositories_spec.rb'
    - 'spec/features/webui/requests/delete_actions_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/users/admin_configuration_spec.rb'
    - 'spec/features/webui/users/notifications_spec.rb'
    - 'spec/features/webui/users/user_admin_edit_spec.rb'
    - 'spec/features/webui/users/user_contributions_spec.rb'
    - 'spec/features/webui/users/user_home_page_spec.rb'
    - 'spec/features/webui/watchlists_spec.rb'
    - 'spec/shared/examples/features/boostrap_flag_tables.rb'
    - 'spec/shared/examples/features/bootstrap_user_tab.rb'
    - 'spec/support/features/features_attribute.rb'
    - 'spec/support/features/features_authentication.rb'
    - 'spec/support/features/features_responsive.rb'
    - 'test/test_helper.rb'

# Offense count: 3
Capybara/SpecificMatcher:
  Exclude:
    - 'spec/features/webui/users/user_home_page_spec.rb'

# Offense count: 2
# Configuration parameters: Include, MaxAmount.
# Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb
FactoryBot/ExcessiveCreateList:
  Exclude:
    - 'spec/controllers/webui/monitor_controller_spec.rb'

# Offense count: 25
# Configuration parameters: Include.
# Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb
FactoryBot/FactoryAssociationWithStrategy:
  Exclude:
    - 'spec/factories/attribs.rb'
    - 'spec/factories/bs_request_actions.rb'
    - 'spec/factories/bs_requests.rb'
    - 'spec/factories/comments.rb'
    - 'spec/factories/download_repository_factory.rb'
    - 'spec/factories/groups.rb'
    - 'spec/factories/kiwi_package.rb'
    - 'spec/factories/packages.rb'
    - 'spec/factories/path_element.rb'
    - 'spec/factories/project.rb'
    - 'spec/factories/release_target.rb'
    - 'spec/factories/review.rb'
    - 'spec/factories/status_reports.rb'
    - 'spec/factories/tokens.rb'
    - 'spec/factories/watched_items.rb'
    - 'spec/factories/workflow_runs.rb'

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

# Offense count: 7
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
  Exclude:
    - 'app/controllers/concerns/webui/rescue_handler.rb'
    - 'config/initializers/git.rb'
    - 'lib/tasks/statistics/github/issues.rake'
    - 'lib/tasks/statistics/github/pull_requests.rake'
    - 'spec/support/database_cleaner.rb'

# Offense count: 3
# Configuration parameters: DebuggerMethods, DebuggerRequires.
Lint/Debugger:
  Exclude:
    - 'spec/support/capybara.rb'
    - 'test/test_helper.rb'

# 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: 8
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/NonAtomicFileOperation:
  Exclude:
    - 'script/start_test_backend'
    - 'test/test_helper.rb'

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

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/RedundantDirGlobSort:
  Exclude:
    - 'spec/browser_helper.rb'
    - 'spec/spec_helper.rb'

# Offense count: 3
Lint/RescueException:
  Exclude:
    - 'app/models/user_ldap_strategy.rb'
    - 'config/environment.rb'
    - 'lib/tasks/extract.rake'

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

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
Lint/UselessMethodDefinition:
  Exclude:
    - 'app/controllers/webui/requests/submissions_controller.rb'

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

# Offense count: 16
# Configuration parameters: CountBlocks, Max.
Metrics/BlockNesting:
  Exclude:
    - 'app/controllers/build_controller.rb'
    - 'app/controllers/webui/request_controller.rb'
    - 'app/models/attrib_type.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'
    - '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_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/build_log_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_controller.rb'
    - 'app/controllers/webui/webui_controller.rb'
    - 'app/lib/authenticator.rb'
    - 'app/lib/backend/connection.rb'
    - 'app/models/attrib.rb'
    - 'app/models/binary_release.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/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/scm_webhook.rb'
    - 'app/models/staging/staged_requests.rb'
    - 'app/models/user.rb'
    - 'app/models/user_ldap_strategy.rb'
    - 'app/models/workflow/step/branch_package_step.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'
    - 'test/unit/user_test.rb'

# Offense count: 190
# 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_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/build_log_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/validation_helper.rb'
    - 'app/helpers/webui/package_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/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/full_text_search.rb'
    - 'app/models/group.rb'
    - 'app/models/kiwi/image/xml_parser.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/unregistered_user.rb'
    - 'app/models/update_notification_events.rb'
    - 'app/models/user.rb'
    - 'app/models/user_ldap_strategy.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: 989
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
  Max: 221

# Offense count: 6
# 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/request_helper.rb'
    - 'app/helpers/webui/user_helper.rb'
    - 'app/models/concerns/has_relationships.rb'

# Offense count: 19
# 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/lib/backend/logger.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: 161
# 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_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/validation_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/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/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/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/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/unregistered_user.rb'
    - 'app/models/user_ldap_strategy.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: 15
Naming/AccessorMethodName:
  Exclude:
    - 'app/controllers/concerns/backend_proxy.rb'
    - 'app/controllers/person_controller.rb'
    - 'app/controllers/source_controller.rb'
    - 'app/controllers/statistics_controller.rb'
    - 'app/controllers/webui/patchinfo_controller.rb'
    - 'app/models/bs_request_action.rb'
    - 'app/models/bs_request_action_maintenance_release.rb'
    - 'app/models/group.rb'
    - 'app/models/issue_tracker/cve_parser.rb'
    - 'app/models/package.rb'
    - 'app/models/user.rb'
    - 'test/functional/search_controller_test.rb'

# Offense count: 19
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
  Exclude:
    - 'db/seeds.rb'
    - 'spec/models/project/update_from_xml_command_spec.rb'
    - 'test/functional/issue_trackers_controller_test.rb'
    - 'test/functional/source_controller_test.rb'
    - 'test/unit/project_test.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'
    - 'app/lib/authenticator.rb'

# Offense count: 8
# Configuration parameters: EnforcedStyle, AllowedPatterns.
# SupportedStyles: snake_case, camelCase
Naming/MethodName:
  Exclude:
    - 'app/controllers/source_controller.rb'
    - 'app/models/maintenance_incident.rb'
    - 'app/models/product.rb'
    - 'test/functional/maintenance_test.rb'
    - 'test/functional/search_controller_test.rb'
    - 'test/test_helper.rb'

# Offense count: 30
# 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/user_ldap_strategy.rb'
    - 'app/models/worker_status.rb'
    - 'app/services/monitor_controller_service/building_information_updater.rb'
    - 'lib/memory_debugger.rb'
    - 'script/reformat_memprof'

# Offense count: 52
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# ForbiddenPrefixes: is_, has_, have_
# AllowedMethods: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
  Exclude:
    - 'app/models/bs_request.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/channel.rb'
    - 'app/models/concerns/project_distribution.rb'
    - 'app/models/concerns/project_maintenance.rb'
    - 'app/models/package.rb'
    - 'app/models/patchinfo.rb'
    - 'app/models/project.rb'
    - 'app/models/repository.rb'
    - 'app/models/user.rb'
    - 'app/models/user_basic_strategy.rb'
    - 'app/models/user_ldap_strategy.rb'

# Offense count: 106
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
  Exclude:
    - 'app/controllers/source_project_config_controller.rb'
    - 'app/controllers/webui/request_controller.rb'
    - 'spec/controllers/attribute_controller_spec.rb'
    - 'spec/controllers/staging/excluded_requests_controller_spec.rb'
    - 'spec/controllers/staging/staging_projects_controller_spec.rb'
    - 'spec/controllers/webui/attribute_controller_spec.rb'
    - 'spec/controllers/webui/download_on_demand_controller_spec.rb'
    - 'spec/controllers/webui/packages/build_log_controller_spec.rb'
    - 'spec/controllers/webui/project_controller_spec.rb'
    - 'spec/controllers/webui/request_controller_spec.rb'
    - 'spec/db/data/backfill_notified_projects_spec.rb'
    - 'spec/db/data/generate_web_notifications_spec.rb'
    - 'spec/db/data/regenerate_notifications_spec.rb'
    - 'spec/db/data/remove_duplicated_flags_spec.rb'
    - 'spec/features/webui/groups_spec.rb'
    - 'spec/features/webui/repositories_spec.rb'
    - 'spec/features/webui/requests/submissions_spec.rb'
    - 'spec/features/webui/requests_spec.rb'
    - 'spec/lib/statistics_calculations_spec.rb'
    - 'spec/lib/tasks/rollout_spec.rb'
    - 'spec/models/branch_package/lookup_incident_package_spec.rb'
    - 'spec/models/comment_spec.rb'
    - 'spec/models/full_text_search_spec.rb'
    - 'spec/models/owner_search_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/staging/workflow_spec.rb'
    - '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: 57
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/package_controller_spec.rb'
    - 'spec/controllers/webui/packages/files_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/lib/rabbitmq_bus_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'
    - 'spec/policies/package_policy_spec.rb'

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

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

# Offense count: 216
# 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/apidocs_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/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: 1
RSpec/IteratedExpectation:
  Exclude:
    - 'spec/models/user_spec.rb'

# Offense count: 2
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
  Exclude:
    - 'spec/controllers/webui/apidocs_controller_spec.rb'
    - 'spec/models/kiwi/image_spec.rb'

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

# Offense count: 1
RSpec/SubjectStub:
  Exclude:
    - 'spec/models/kiwi/image_spec.rb'

# Offense count: 33
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
  Exclude:
    - 'spec/controllers/webui/session_controller_spec.rb'
    - 'spec/features/webui/login_spec.rb'
    - 'spec/jobs/issue_tracker_fetch_issues_job_spec.rb'
    - 'spec/jobs/issue_tracker_update_issues_job_spec.rb'
    - 'spec/lib/authenticator_spec.rb'
    - 'spec/lib/backend/connection_helper_spec.rb'
    - 'spec/mixins/build_log_support_spec.rb'
    - 'spec/mixins/parse_package_diff_spec.rb'
    - 'spec/models/issue_tracker_spec.rb'
    - 'spec/models/project_spec.rb'
    - 'spec/models/user_ldap_strategy_spec.rb'
    - 'spec/models/user_spec.rb'
    - 'spec/shared/contexts/a_kerberos_mock.rb'
    - 'spec/shared/contexts/setup_ldap_mock.rb'
    - 'spec/shared/examples/a_ldap_connection.rb'

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

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/ApplicationMailer:
  Exclude:
    - 'app/mailers/admin_mailer.rb'
    - 'app/mailers/event_mailer.rb'

# Offense count: 1
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/CreateTableWithTimestamps:
  Exclude:
    - 'db/migrate/20171030143054_create_kiwi_preference_types.rb'

# Offense count: 70
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Rails/FilePath:
  Exclude:
    - 'app/controllers/concerns/backend_proxy.rb'
    - 'app/controllers/source_controller.rb'
    - 'app/controllers/webui/projects/rebuild_times_controller.rb'
    - 'app/lib/backend/file.rb'
    - 'app/lib/backend/logger.rb'
    - 'app/lib/backend/test.rb'
    - 'app/lib/backend/test/tasks.rb'
    - 'config/environment.rb'
    - 'config/initializers/secret_token.rb'
    - 'config/initializers/tempdir.rb'
    - 'lib/tasks/extract.rake'
    - 'script/start_test_backend'
    - 'spec/shared/contexts/rake.rb'
    - 'spec/support/capybara.rb'
    - 'spec/support/vcr.rb'
    - '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: 28
# Configuration parameters: Include.
# Include: app/models/**/*.rb
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: 17
# Configuration parameters: Include.
# Include: app/helpers/**/*.rb
Rails/HelperInstanceVariable:
  Exclude:
    - 'app/helpers/webui/markdown_helper.rb'
    - 'app/helpers/webui/project_helper.rb'
    - 'app/helpers/webui/webui_helper.rb'

# Offense count: 37
# Configuration parameters: IgnoreScopes, Include.
# Include: app/models/**/*.rb
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: 9
# Configuration parameters: Include.
# Include: app/controllers/**/*.rb, app/mailers/**/*.rb
Rails/LexicallyScopedActionFilter:
  Exclude:
    - 'app/controllers/webui/monitor_controller.rb'
    - 'app/controllers/webui/package_controller.rb'
    - 'app/controllers/webui/project_controller.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: 14
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include.
# Include: **/Rakefile, **/*.rake
Rails/RakeEnvironment:
  Exclude:
    - 'lib/tasks/coverage.rake'
    - 'lib/tasks/dev.rake'
    - 'lib/tasks/dev/lint.rake'
    - 'lib/tasks/dev/sre.rake'
    - 'lib/tasks/migrate_options_yml.rake'

# Offense count: 6
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/ReversibleMigration:
  Exclude:
    - 'db/migrate/20170103132257_change_project_package_name_to_string.rb'

# 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/models/binary_release.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
# Configuration parameters: Include.
# Include: db/**/*.rb
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: 73
# 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/lib/backend/connection.rb'
    - 'app/lib/backend/logger.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/cloud/backend/upload_job.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'
    - 'config/initializers/logging.rb'
    - 'lib/statistics_calculations.rb'
    - 'lib/tasks/statistics/github/code_frequency.rake'
    - 'lib/tasks/statistics/github/commit_activity.rake'
    - 'script/import_database.rb'
    - 'spec/factories/attribs.rb'
    - 'spec/factories/issue_tracker.rb'
    - 'spec/features/webui/requests_spec.rb'
    - 'spec/models/cloud/backend/upload_job_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: 163
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
  Enabled: false

# Offense count: 13
Style/ClassVars:
  Exclude:
    - 'app/models/user.rb'
    - 'app/models/user_ldap_strategy.rb'
    - 'spec/models/user_ldap_strategy_spec.rb'
    - 'spec/shared/contexts/setup_ldap_mock.rb'
    - '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: 1069
# Configuration parameters: AllowedConstants.
Style/Documentation:
  Enabled: false

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/ExplicitBlockArgument:
  Exclude:
    - 'app/lib/backend/connection.rb'
    - 'app/models/project.rb'

# Offense count: 1844
# 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/HashExcept:
  Exclude:
    - 'spec/models/user_ldap_strategy_spec.rb'

# Offense count: 305
# 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: 8
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MapIntoArray:
  Exclude:
    - 'app/controllers/statistics_controller.rb'
    - 'app/mixins/parse_package_diff.rb'
    - 'app/models/bs_request.rb'
    - 'app/models/bs_request_action.rb'
    - 'app/models/event/base.rb'
    - 'app/models/group.rb'
    - 'app/models/project.rb'
    - 'app/services/file_service/uploader.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MapToHash:
  Exclude:
    - 'app/models/worker_status.rb'
    - 'app/services/monitor_controller_service/building_information_updater.rb'
    - 'test/node_matcher.rb'

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

# Offense count: 5
Style/MixinUsage:
  Exclude:
    - 'app/controllers/request_controller.rb'
    - 'app/controllers/source_controller.rb'
    - 'app/models/bs_request.rb'
    - 'script/start_test_backend'

# Offense count: 26
Style/OpenStructUse:
  Exclude:
    - 'app/controllers/webui/cloud/azure/upload_jobs_controller.rb'
    - 'app/controllers/webui/cloud/ec2/upload_jobs_controller.rb'
    - 'app/models/cloud/backend/upload_job.rb'
    - 'spec/controllers/webui/projects/meta_controller_spec.rb'
    - 'spec/controllers/webui/projects/project_configuration_controller_spec.rb'
    - 'spec/services/package_controller_service/rebuild_trigger_spec.rb'
    - 'spec/services/trigger_controller_service/token_extractor_spec.rb'
    - 'spec/services/webui_controller_service/user_checker_spec.rb'

# Offense count: 21
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
  Exclude:
    - 'app/controllers/public_controller.rb'
    - 'app/helpers/webui/staging/workflow_helper.rb'
    - 'app/helpers/webui/webui_helper.rb'
    - 'app/jobs/consistency_check_job.rb'
    - 'app/models/attrib_type.rb'
    - 'app/models/maintenance_incident.rb'
    - 'app/models/package.rb'
    - 'app/models/project.rb'
    - 'app/models/user.rb'
    - 'app/policies/package_policy.rb'

# Offense count: 86
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
  Exclude:
    - 'app/helpers/webui/group_helper.rb'
    - 'app/helpers/webui/monitor_helper.rb'
    - 'app/helpers/webui/project_helper.rb'
    - 'app/helpers/webui/user_helper.rb'
    - 'app/helpers/webui/webui_helper.rb'
    - 'app/validators/workflow_steps_validator.rb'
    - '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: 10
ViewComponent/AvoidGlobalState:
  Exclude:
    - 'app/components/bs_request_activity_timeline_component.rb'
    - 'app/components/notification_avatars_component.rb'
    - 'app/components/notification_filter_component.rb'
    - 'app/components/user_avatar_component.rb'

# Offense count: 25
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_state_badge_component.rb'
    - 'app/components/copy_to_clipboard_input_component.rb'
    - 'app/components/delete_confirmation_dialog_component.rb'
    - 'app/components/notification_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'