cloudfoundry/cloud_controller_ng

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-09-30 07:29:13 UTC using RuboCop version 1.66.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: 14
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: RequireParenthesesForMethodChains.
Lint/AmbiguousRange:
  Exclude:
    - 'lib/cloud_controller/resource_match.rb'
    - 'spec/unit/messages/validators/metadata_validator_spec.rb'

# Offense count: 77
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
  Enabled: false

# Offense count: 83
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
  Enabled: false

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect, AllowComments.
Lint/EmptyConditionalBody:
  Exclude:
    - 'lib/cloud_controller/diego/failure_reason_sanitizer.rb'
    - 'spec/support/shared_examples/jobs/delayed_job.rb'

# Offense count: 57
# Configuration parameters: AllowedParentClasses.
Lint/MissingSuper:
  Enabled: false

# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/NonAtomicFileOperation:
  Exclude:
    - 'spec/support/integration/setup.rb'
    - 'spec/unit/lib/cloud_controller/blobstore/client_shared.rb'
    - 'spec/unit/lib/cloud_controller/blobstore/webdav/dav_client_spec.rb'

# Offense count: 15
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/OrAssignmentToConstant:
  Exclude:
    - 'app/controllers/base/base_controller.rb'
    - 'lib/cloud_controller/permissions.rb'

# Offense count: 21
# Configuration parameters: AllowComments, AllowNil.
Lint/SuppressedException:
  Exclude:
    - 'app/messages/app_manifest_message.rb'
    - 'app/models/services/service_broker.rb'
    - 'lib/cloud_controller/database_uri_generator.rb'
    - 'lib/vcap/pid_file.rb'
    - 'spec/unit/actions/v2/route_create_spec.rb'
    - 'spec/unit/lib/cloud_controller/blobstore/fog/fog_client_spec.rb'
    - 'spec/unit/lib/services/service_brokers/service_broker_registration_spec.rb'
    - 'spec/unit/models/services/service_broker_spec.rb'

# Offense count: 28
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Lint/UnusedMethodArgument:
  Exclude:
    - 'app/fetchers/feature_flag_list_fetcher.rb'
    - 'app/presenters/v3/app_manifest_presenters/route_properties_presenter.rb'
    - 'lib/cloud_controller/blobstore/client_provider.rb'
    - 'lib/services/service_brokers/null_client.rb'
    - 'lib/services/service_brokers/user_provided/client.rb'
    - 'lib/services/service_brokers/v2/response_parser.rb'
    - 'spec/support/fakes/fake_service_broker_v2_client.rb'

# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
Lint/UselessMethodDefinition:
  Exclude:
    - 'app/messages/route_destination_update_message.rb'
    - 'app/presenters/v3/buildpack_presenter.rb'
    - 'app/presenters/v3/process_presenter.rb'
    - 'spec/support/fake_front_controller.rb'

# Offense count: 791
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
  Max: 99

# Offense count: 114
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
  Max: 446

# Offense count: 62
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
Metrics/ParameterLists:
  Max: 9

# Offense count: 162
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
  Max: 30

# Offense count: 24
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
  Exclude:
    - 'spec/api/documentation/app_bits_api_spec.rb'
    - 'spec/api/documentation/apps_api_spec.rb'
    - 'spec/api/documentation/buildpack_cache_api_spec.rb'
    - 'spec/api/documentation/routes_api_spec.rb'
    - 'spec/api/documentation/service_instances_api_spec.rb'
    - 'spec/api/documentation/services_api_spec.rb'
    - 'spec/unit/jobs/deserialization_spec.rb'
    - 'spec/unit/lib/app_packager_spec.rb'

# Offense count: 84
# 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:
  Enabled: false

# Offense count: 862
# 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:
  Enabled: false

# Offense count: 409
RSpec/AnyInstance:
  Enabled: false

# Offense count: 164
RSpec/Be:
  Enabled: false

# Offense count: 6
RSpec/BeforeAfterAll:
  Exclude:
    - 'spec/integration/app_log_emitter_spec.rb'
    - 'spec/integration/cors_spec.rb'
    - 'spec/unit/lib/vcap/rest_api/event_query_spec.rb'
    - 'spec/unit/lib/vcap/rest_api/query_spec.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: NegatedMatcher.
RSpec/ChangeByZero:
  Exclude:
    - 'spec/unit/actions/update_route_destinations_spec.rb'

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

# Offense count: 99
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
  Enabled: false

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

# Offense count: 49
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
RSpec/EmptyExampleGroup:
  Enabled: false

# Offense count: 4303
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
  Max: 158

# Offense count: 34
# This cop supports safe autocorrection (--autocorrect).
RSpec/ExpectActual:
  Exclude:
    - 'spec/unit/support/matchers/be_a_response_like_spec.rb'
    - 'spec/unit/support/matchers/match_json_response_spec.rb'

# Offense count: 120
RSpec/ExpectInHook:
  Enabled: false

# Offense count: 79
RSpec/ExpectInLet:
  Enabled: false

# Offense count: 1501
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
RSpec/IndexedLet:
  Enabled: false

# Offense count: 718
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
  Enabled: false

# Offense count: 2
RSpec/IteratedExpectation:
  Exclude:
    - 'spec/unit/lib/cloud_controller/diego/main_lrp_action_builder_spec.rb'
    - 'spec/unit/lib/services/service_brokers/service_broker_remover_spec.rb'

# Offense count: 71
RSpec/LeakyConstantDeclaration:
  Enabled: false

# Offense count: 943
RSpec/LetSetup:
  Enabled: false

# Offense count: 9
RSpec/MessageChain:
  Exclude:
    - 'spec/unit/actions/route_create_spec.rb'
    - 'spec/unit/messages/organization_quotas_update_message_spec.rb'
    - 'spec/unit/messages/space_quota_update_message_spec.rb'
    - 'spec/unit/messages/space_quotas_create_message_spec.rb'

# Offense count: 798
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
  Enabled: false

# Offense count: 2
RSpec/MultipleDescribes:
  Exclude:
    - 'spec/request/knowledge_bombs/verify_old_lrps_can_download_assets_spec.rb'
    - 'spec/unit/lib/vcap/json_message_spec.rb'

# Offense count: 8101
RSpec/MultipleExpectations:
  Max: 48

# Offense count: 8945
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
  Max: 36

# Offense count: 2557
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
  Enabled: false

# Offense count: 1602
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
  Max: 8

# Offense count: 89
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: ^expect_, ^assert_
RSpec/NoExpectationExample:
  Enabled: false

# Offense count: 8
RSpec/OverwritingSetup:
  Exclude:
    - 'spec/request/routes_spec.rb'
    - 'spec/request/spaces_spec.rb'
    - 'spec/unit/actions/service_credential_binding_key_create_spec.rb'
    - 'spec/unit/controllers/runtime/quota_definitions_controller_spec.rb'
    - 'spec/unit/models/runtime/constraints/readiness_health_check_policy_spec.rb'
    - 'spec/unit/queries/deployment_list_fetcher_spec.rb'
    - 'spec/unit/repositories/user_event_repository_spec.rb'

# Offense count: 4
RSpec/PendingWithoutReason:
  Exclude:
    - 'spec/unit/fetchers/label_selector_query_generator_spec.rb'

# Offense count: 44
RSpec/RepeatedDescription:
  Exclude:
    - 'spec/linters/match_requires_with_includes_spec.rb'
    - 'spec/linters/migration/include_string_size_spec.rb'
    - 'spec/request/apps_spec.rb'
    - 'spec/request/domains_spec.rb'
    - 'spec/request/organizations_spec.rb'
    - 'spec/request/routes_spec.rb'
    - 'spec/unit/actions/route_delete_spec.rb'
    - 'spec/unit/controllers/runtime/apps_controller_spec.rb'
    - 'spec/unit/controllers/runtime/shared_domains_controller_spec.rb'
    - 'spec/unit/controllers/v3/application_controller_spec.rb'
    - 'spec/unit/fetchers/label_selector_query_generator_spec.rb'
    - 'spec/unit/lib/app_log_emitter_spec.rb'
    - 'spec/unit/lib/cloud_controller/diego/runner_spec.rb'
    - 'spec/unit/lib/vcap/json_message_spec.rb'
    - 'spec/unit/models/runtime/pollable_job_model_spec.rb'

# Offense count: 30
RSpec/RepeatedExample:
  Exclude:
    - 'spec/unit/controllers/runtime/organizations_controller_spec.rb'
    - 'spec/unit/controllers/runtime/spaces_controller_spec.rb'
    - 'spec/unit/controllers/services/service_instances_controller_spec.rb'
    - 'spec/unit/controllers/v3/apps_controller_spec.rb'
    - 'spec/unit/lib/vcap/rest_api/attribute_spec.rb'
    - 'spec/unit/messages/feature_flags_list_message_spec.rb'
    - 'spec/unit/messages/service_instances_list_message_spec.rb'
    - 'spec/unit/messages/space_security_groups_list_message_spec.rb'
    - 'spec/unit/messages/validators/security_group_rule_validator_spec.rb'
    - 'spec/unit/models/runtime/process_model_spec.rb'
    - 'spec/unit/models/runtime/route_spec.rb'
    - 'spec/unit/models/runtime/user_spec.rb'

# Offense count: 6
RSpec/RepeatedExampleGroupBody:
  Exclude:
    - 'spec/unit/lib/rest_controller/paginated_collection_renderer_spec.rb'
    - 'spec/unit/messages/process_update_message_spec.rb'

# Offense count: 28
RSpec/RepeatedExampleGroupDescription:
  Exclude:
    - 'spec/unit/actions/app_apply_manifest_spec.rb'
    - 'spec/unit/actions/app_assign_droplet_spec.rb'
    - 'spec/unit/controllers/runtime/organizations_controller_spec.rb'
    - 'spec/unit/controllers/v3/resource_matches_controller_spec.rb'
    - 'spec/unit/jobs/services/service_binding_state_fetch_spec.rb'
    - 'spec/unit/lib/app_packager_spec.rb'
    - 'spec/unit/lib/cloud_controller/backends/staging_disk_calculator_spec.rb'
    - 'spec/unit/lib/cloud_controller/permissions_spec.rb'
    - 'spec/unit/lib/cloud_controller/route_validator_spec.rb'
    - 'spec/unit/lib/locket/lock_worker_spec.rb'
    - 'spec/unit/messages/list_message_spec.rb'
    - 'spec/unit/models/runtime/organization_routes_spec.rb'
    - 'spec/unit/models/runtime/security_group_spec.rb'
    - 'spec/unit/presenters/v3/role_presenter_spec.rb'

# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: and_return, block
RSpec/ReturnFromStub:
  Exclude:
    - 'spec/unit/lib/cloud_controller/errands/rotate_database_key_spec.rb'

# Offense count: 206
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect.
RSpec/ScatteredLet:
  Enabled: false

# Offense count: 35
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
# Include: **/*_spec.rb
RSpec/SpecFilePathFormat:
  Enabled: false

# Offense count: 203
RSpec/StubbedMock:
  Enabled: false

# Offense count: 16
RSpec/SubjectDeclaration:
  Exclude:
    - 'spec/support/shared_examples/jobs/create_binding_job.rb'
    - 'spec/support/shared_examples/jobs/delete_binding_job.rb'
    - 'spec/unit/actions/v3/service_plan_visibility_update_spec.rb'
    - 'spec/unit/fetchers/app_builds_list_fetcher_spec.rb'
    - 'spec/unit/jobs/v3/create_binding_async_job_spec.rb'
    - 'spec/unit/jobs/v3/create_service_route_binding_job_actor_spec.rb'
    - 'spec/unit/jobs/v3/delete_binding_job_spec.rb'
    - 'spec/unit/jobs/v3/delete_service_route_binding_job_actor_spec.rb'
    - 'spec/unit/lib/cloud_controller/blobstore/blob_key_generator_spec.rb'
    - 'spec/unit/lib/cloud_controller/encryptor_spec.rb'
    - 'spec/unit/messages/service_plan_visibility_update_message_spec.rb'

# Offense count: 10
RSpec/SubjectStub:
  Exclude:
    - 'spec/unit/lib/cloud_controller/dependency_locator_spec.rb'
    - 'spec/unit/lib/locket/lock_worker_spec.rb'
    - 'spec/unit/lib/vcap/host_system_spec.rb'
    - 'spec/unit/support/stepper_spec.rb'

# Offense count: 72
# Configuration parameters: EnforcedStyle, AllowedPatterns.
# SupportedStyles: snake_case, camelCase
RSpec/VariableName:
  Exclude:
    - 'spec/request/buildpacks_spec.rb'
    - 'spec/request/droplets_spec.rb'
    - 'spec/request/isolation_segments_spec.rb'
    - 'spec/request/revisions_spec.rb'
    - 'spec/request/spaces_spec.rb'

# Offense count: 536
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
  Enabled: false

# Offense count: 7
RSpec/VoidExpect:
  Exclude:
    - 'spec/unit/controllers/runtime/organizations_controller_spec.rb'
    - 'spec/unit/controllers/runtime/spaces_controller_spec.rb'
    - 'spec/unit/jobs/runtime/prune_excess_app_revisions_spec.rb'
    - 'spec/unit/lib/cloud_controller/integer_array_serializer_spec.rb'

# Offense count: 1591
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: ResponseMethods.
# ResponseMethods: response, last_response
RSpecRails/HaveHttpStatus:
  Enabled: false

# Offense count: 8
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/ActiveRecordAliases:
  Exclude:
    - 'app/actions/services/locks/updater_lock.rb'
    - 'app/actions/services/service_instance_update.rb'
    - 'app/models/services/managed_service_instance.rb'
    - 'app/models/services/service_instance.rb'
    - 'spec/support/shared_examples/models/operations.rb'
    - 'spec/unit/models/services/service_instance_operation_spec.rb'

# Offense count: 2
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/ThreeStateBooleanColumn:
  Exclude:
    - 'db/migrations/20141022211551_add_updateable_column_to_services.rb'
    - 'db/migrations/20151217235335_remove_unused_package_cols.rb'

# Offense count: 260
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/TimeZone:
  Enabled: false

# Offense count: 8
# Configuration parameters: TransactionMethods.
Rails/TransactionExitStatement:
  Exclude:
    - 'app/actions/deployment_create.rb'
    - 'app/jobs/v2/services/service_binding_state_fetch.rb'
    - 'app/jobs/v2/services/service_instance_state_fetch.rb'
    - 'lib/cloud_controller/deployment_updater/updater.rb'

# Offense count: 2
# Configuration parameters: Severity.
Rails/UnusedRenderContent:
  Exclude:
    - 'app/controllers/v3/security_groups_controller.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
Security/IoMethods:
  Exclude:
    - 'lib/logcache/client.rb'
    - 'spec/unit/lib/cloud_controller/diagnostics_spec.rb'

# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/ArrayIntersect:
  Exclude:
    - 'app/access/space_quota_definition_access.rb'
    - 'app/models/runtime/organization.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: MinBranchesCount.
Style/CaseLikeIf:
  Exclude:
    - 'app/controllers/runtime/users_controller.rb'
    - 'app/fetchers/base_list_fetcher.rb'
    - 'lib/vcap/host_system.rb'
    - 'spec/support/shared_examples/jobs/delayed_job.rb'

# Offense count: 2014
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
  Enabled: false

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedReceivers.
# AllowedReceivers: params
Style/CollectionCompact:
  Exclude:
    - 'app/presenters/v3/app_presenter.rb'
    - 'app/presenters/v3/package_presenter.rb'
    - 'lib/vcap/json_message.rb'

# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CombinableLoops:
  Exclude:
    - 'app/controllers/runtime/organizations_controller.rb'
    - 'app/controllers/runtime/spaces_controller.rb'
    - 'lib/cloud_controller/diego/reporters/instances_reporter.rb'
    - 'spec/linters/migration/add_constraint_name.rb'
    - 'spec/unit/models/runtime/organization_spec.rb'

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

# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: allowed_in_returns, forbidden
Style/DoubleNegation:
  Exclude:
    - 'app/models/runtime/shared_domain.rb'
    - 'lib/cloud_controller/dependency_locator.rb'
    - 'spec/support/matchers/be_a_response_like.rb'
    - 'spec/support/matchers/have_attributes.rb'
    - 'spec/unit/lib/services/service_brokers/v2/response_parser_spec.rb'

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

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowSplatArgument.
Style/HashConversion:
  Exclude:
    - 'lib/cloud_controller/controller_factory.rb'
    - 'spec/support/matchers/sequel_validations.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MapIntoArray:
  Exclude:
    - 'app/actions/space_delete.rb'
    - 'lib/cloud_controller/install_buildpacks.rb'
    - 'spec/unit/controllers/v3/isolation_segments_controller_spec.rb'
    - 'spec/unit/presenters/v3/relationship_presenter_spec.rb'
    - 'spec/unit/presenters/v3/to_many_relationship_presenter_spec.rb'

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MapToHash:
  Exclude:
    - 'app/controllers/v3/space_manifests_controller.rb'
    - 'app/models/runtime/app_model.rb'
    - 'lib/cloud_controller/diego/reporters/instances_stats_reporter.rb'

# Offense count: 76
Style/MultilineBlockChain:
  Enabled: false

# Offense count: 53
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
  Enabled: false

# Offense count: 7
Style/OpenStructUse:
  Exclude:
    - 'app/jobs/v2/services/delete_orphaned_binding.rb'
    - 'app/messages/package_create_message.rb'
    - 'spec/unit/lib/cloud_controller/runners/thin_runner_spec.rb'
    - 'spec/unit/lib/cloud_controller/seeds_spec.rb'

# Offense count: 14
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
  Exclude:
    - 'app/access/route_access.rb'
    - 'app/actions/security_group_unapply.rb'
    - 'app/actions/v2/services/service_binding_delete.rb'
    - 'app/models/services/service_plan.rb'
    - 'app/presenters/error_presenter.rb'
    - 'app/presenters/v2/process_model_presenter.rb'
    - 'lib/cloud_controller/diego/stager.rb'
    - 'lib/cloud_controller/diego/staging_completion_handler.rb'
    - 'lib/cloud_controller/uaa/uaa_client.rb'
    - 'lib/sequel_plugins/vcap_user_visibility.rb'
    - 'lib/vcap/pid_file.rb'
    - 'spec/request/deployments_spec.rb'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect, AllowComments.
Style/RedundantInitialize:
  Exclude:
    - 'app/messages/route_destination_update_message.rb'
    - 'spec/support/fake_front_controller.rb'

# Offense count: 7
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns.
Style/ReturnNilInPredicateMethodDefinition:
  Exclude:
    - 'app/access/service_broker_access.rb'
    - 'app/controllers/v3/service_credential_bindings_controller.rb'
    - 'app/messages/route_destination_update_message.rb'
    - 'app/messages/route_update_destinations_message.rb'
    - 'app/messages/space_delete_unmapped_routes_message.rb'
    - 'spec/support/legacy_api_dsl.rb'

# Offense count: 114
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
# AllowedMethods: present?, blank?, presence, try, try!
Style/SafeNavigation:
  Enabled: false

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SelectByRegexp:
  Exclude:
    - 'app/controllers/v3/service_credential_bindings_controller.rb'
    - 'app/controllers/v3/service_instances_controller.rb'
    - 'app/controllers/v3/service_route_bindings_controller.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowSend.
Style/SendWithLiteralMethodName:
  Exclude:
    - 'app/jobs/runtime/orphaned_blobs_cleanup.rb'
    - 'app/jobs/v3/buildpack_cache_delete.rb'

# Offense count: 91
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
  Enabled: false

# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/StructInheritance:
  Exclude:
    - 'app/models/helpers/metadata_error.rb'
    - 'app/models/runtime/custom_buildpack.rb'
    - 'app/presenters/base_error_hasher.rb'
    - 'lib/cloud_controller/deployments/deployment_target_state.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses:
  Exclude:
    - 'lib/cloud_controller/errors/api_error.rb'
    - 'lib/vcap/rest_api/errors.rb'