# This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 99999` # on 2021-02-19 23:39:59 UTC using RuboCop version 1.10.0. # 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: 1 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Layout/LineLength: Max: 125 # Offense count: 3 # Configuration parameters: AllowedMethods. # AllowedMethods: enums Lint/ConstantDefinitionInBlock: Exclude: - 'spec/ddtrace/benchmark/support/benchmark_helper.rb' - 'spec/ddtrace/contrib/rails/rack_spec.rb' - 'spec/ddtrace/workers/async_spec.rb' # Offense count: 2 # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. Lint/DuplicateBranch: Exclude: - 'lib/ddtrace/quantization/http.rb' - 'test/contrib/rails/test_helper.rb' # Offense count: 3 Lint/DuplicateRequire: Exclude: - 'lib/datadog/ci/contrib/cucumber/integration.rb' - 'lib/datadog/ci/contrib/rspec/integration.rb' - 'spec/ddtrace/contrib/presto/client_spec.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: runtime_error, standard_error Lint/InheritException: Exclude: - 'spec/ddtrace/tracer_spec.rb' # Offense count: 52 # Configuration parameters: MaximumRangeSize. Lint/MissingCopEnableDirective: Exclude: - 'Rakefile' - 'lib/ddtrace/analytics.rb' - 'lib/ddtrace/configuration/components.rb' - 'lib/ddtrace/configuration/settings.rb' - 'lib/ddtrace/context.rb' - 'lib/ddtrace/contrib/action_view/instrumentation/template_renderer.rb' - 'lib/ddtrace/contrib/active_support/cache/instrumentation.rb' - 'lib/ddtrace/contrib/aws/services.rb' - 'lib/ddtrace/contrib/elasticsearch/patcher.rb' - 'lib/ddtrace/contrib/excon/middleware.rb' - 'lib/ddtrace/contrib/grape/endpoint.rb' - 'lib/ddtrace/contrib/httprb/instrumentation.rb' - 'lib/ddtrace/contrib/rack/middlewares.rb' - 'lib/ddtrace/contrib/rails/middlewares.rb' - 'lib/ddtrace/contrib/redis/patcher.rb' - 'lib/ddtrace/contrib/sinatra/tracer_middleware.rb' - 'lib/ddtrace/contrib/sucker_punch/instrumentation.rb' - 'lib/ddtrace/ext/ci.rb' - 'lib/ddtrace/pin.rb' - 'lib/ddtrace/span.rb' - 'lib/ddtrace/tracer.rb' - 'lib/ddtrace/workers/async.rb' - 'spec/ddtrace/contrib/elasticsearch/quantize_spec.rb' - 'spec/ddtrace/contrib/http/request_spec.rb' - 'spec/ddtrace/contrib/mongodb/client_spec.rb' - 'spec/ddtrace/contrib/patchable_spec.rb' - 'spec/ddtrace/contrib/presto/client_spec.rb' - 'spec/ddtrace/contrib/qless/support/job.rb' - 'spec/ddtrace/contrib/rails/support/database.rb' - 'spec/ddtrace/contrib/rails/support/middleware.rb' - 'spec/ddtrace/diagnostics/health_spec.rb' - 'spec/support/container_helpers.rb' - 'spec/support/tracer_helpers.rb' - 'test/contrib/rails/controller_test.rb' - 'test/contrib/rails/errors_test.rb' - 'test/tracer_test.rb' # Offense count: 32 Lint/MissingSuper: Exclude: - 'lib/ddtrace/contrib/grpc/datadog_interceptor.rb' - 'lib/ddtrace/opentracer/scope.rb' - 'lib/ddtrace/opentracer/span.rb' - 'lib/ddtrace/opentracer/span_context.rb' - 'lib/ddtrace/profiling/collectors/stack.rb' - 'lib/ddtrace/profiling/pprof/converter.rb' - 'lib/ddtrace/profiling/pprof/template.rb' - 'lib/ddtrace/profiling/recorder.rb' - 'lib/ddtrace/profiling/scheduler.rb' - 'lib/ddtrace/profiling/transport/http/api/instance.rb' - 'lib/ddtrace/profiling/transport/http/api/spec.rb' - 'lib/ddtrace/sampler.rb' - 'lib/ddtrace/sampling/matcher.rb' - 'lib/ddtrace/sampling/rate_limiter.rb' - 'lib/ddtrace/transport/http/adapters/net.rb' - 'lib/ddtrace/transport/http/adapters/unix_socket.rb' - 'lib/ddtrace/transport/http/builder.rb' - 'lib/ddtrace/transport/http/env.rb' - 'lib/ddtrace/transport/http/traces.rb' - 'lib/ddtrace/transport/traces.rb' - 'lib/ddtrace/workers/runtime_metrics.rb' - 'lib/ddtrace/workers/trace_writer.rb' - 'spec/support/faux_transport.rb' - 'spec/support/spy_transport.rb' - 'test/helper.rb' # Offense count: 1 Lint/StructNewOverride: Exclude: - 'lib/ddtrace/profiling/pprof/converter.rb' # Offense count: 1 # Configuration parameters: AllowComments. Lint/SuppressedException: Exclude: - 'lib/ddtrace/contrib/ethon/easy_patch.rb' # Offense count: 2 # Configuration parameters: CheckForMethodsWithNoSideEffects. Lint/Void: Exclude: - 'spec/ddtrace/contrib/grpc/support/grpc_helper.rb' # Offense count: 2 # Configuration parameters: IgnoredMethods. Metrics/CyclomaticComplexity: Max: 17 # Offense count: 2 # Configuration parameters: IgnoredMethods. Metrics/PerceivedComplexity: Max: 18 # Offense count: 4 # Configuration parameters: EnforcedStyleForLeadingUnderscores. # SupportedStylesForLeadingUnderscores: disallowed, required, optional Naming/MemoizedInstanceVariableName: Exclude: - 'lib/ddtrace/configuration.rb' - 'lib/ddtrace/contrib/active_record/configuration/resolver.rb' - 'lib/ddtrace/contrib/extensions.rb' - 'lib/ddtrace/contrib/sequel/database.rb' # Offense count: 6 # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers. # SupportedStyles: snake_case, normalcase, non_integer # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339 Naming/VariableNumber: Exclude: - 'spec/ddtrace/contrib/ethon/typhoeus_integration_spec.rb' - 'spec/ddtrace/contrib/resque/instrumentation_spec.rb' # Offense count: 18 Performance/MethodObjectAsBlock: Exclude: - 'lib/datadog/ci/contrib/cucumber/formatter.rb' - 'lib/ddtrace/contrib/delayed_job/plugin.rb' - 'lib/ddtrace/pipeline.rb' - 'lib/ddtrace/profiling/collectors/stack.rb' - 'lib/ddtrace/profiling/pprof/builder.rb' - 'lib/ddtrace/profiling/pprof/stack_sample.rb' - 'lib/ddtrace/profiling/pprof/template.rb' - 'spec/datadog/ci/contrib/cucumber/patcher_spec.rb' # Offense count: 6 RSpec/EmptyExampleGroup: Exclude: - 'spec/ddtrace/buffer_spec.rb' - 'spec/ddtrace/configuration/components_spec.rb' - 'spec/datadog/ci/ext/environment_spec.rb' - 'spec/ddtrace/opentracer/distributed_headers_spec.rb' # Offense count: 2 # Cop supports --auto-correct. RSpec/ExpectActual: Exclude: - 'spec/routing/**/*' - 'spec/datadog/ci/contrib/rspec/instrumentation_spec.rb' # Offense count: 3 RSpec/IteratedExpectation: Exclude: - 'spec/ddtrace/contrib/grpc/support/grpc_helper.rb' - 'spec/ddtrace/contrib/rack/integration_test_spec.rb' # Offense count: 3 RSpec/LeakyConstantDeclaration: Exclude: - 'spec/ddtrace/benchmark/support/benchmark_helper.rb' - 'spec/ddtrace/contrib/rails/rack_spec.rb' - 'spec/ddtrace/workers/async_spec.rb' # Offense count: 37 RSpec/MissingExampleGroupArgument: Exclude: - 'spec/ddtrace/configuration/settings_spec.rb' - 'spec/ddtrace/transport/http/adapters/net_spec.rb' - 'spec/ddtrace/transport/http/adapters/test_spec.rb' # Offense count: 18 RSpec/MultipleDescribes: Exclude: - 'spec/ddtrace/analytics_spec.rb' - 'spec/ddtrace/buffer_spec.rb' - 'spec/ddtrace/configuration/option_definition_spec.rb' - 'spec/ddtrace/context_flush_spec.rb' - 'spec/ddtrace/context_provider_spec.rb' - 'spec/ddtrace/forced_tracing_spec.rb' - 'spec/ddtrace/metrics_spec.rb' - 'spec/ddtrace/sampler_spec.rb' - 'spec/ddtrace/sampling/matcher_spec.rb' - 'spec/ddtrace/transport/http/adapters/net_spec.rb' - 'spec/ddtrace/transport/http/adapters/test_spec.rb' - 'spec/ddtrace/transport/http/adapters/unix_socket_spec.rb' - 'spec/ddtrace/transport/http/traces_spec.rb' - 'spec/ddtrace/transport/io/traces_spec.rb' - 'spec/ddtrace/transport/response_spec.rb' - 'spec/ddtrace/transport/statistics_spec.rb' - 'spec/ddtrace/transport/traces_spec.rb' - 'spec/ddtrace/workers/trace_writer_spec.rb' # Offense count: 143 # Configuration parameters: IgnoreSharedExamples. RSpec/NamedSubject: Exclude: - 'spec/ddtrace/benchmark/gem_loading_spec.rb' - 'spec/ddtrace/chunker_spec.rb' - 'spec/ddtrace/context_flush_spec.rb' - 'spec/ddtrace/context_provider_spec.rb' - 'spec/ddtrace/context_spec.rb' - 'spec/ddtrace/contrib/active_support/notifications/subscription_spec.rb' - 'spec/ddtrace/contrib/ethon/easy_patch_spec.rb' - 'spec/ddtrace/contrib/ethon/multi_patch_spec.rb' - 'spec/ddtrace/contrib/excon/instrumentation_spec.rb' - 'spec/ddtrace/contrib/faraday/middleware_spec.rb' - 'spec/ddtrace/contrib/grape/tracer_spec.rb' - 'spec/ddtrace/contrib/grpc/datadog_interceptor/client_spec.rb' - 'spec/ddtrace/contrib/grpc/datadog_interceptor/server_spec.rb' - 'spec/ddtrace/contrib/grpc/interception_context_spec.rb' - 'spec/ddtrace/contrib/http/patcher_spec.rb' - 'spec/ddtrace/contrib/mongodb/client_spec.rb' - 'spec/ddtrace/contrib/mongodb/regression_issue_1235_spec.rb' - 'spec/ddtrace/contrib/patcher_spec.rb' - 'spec/ddtrace/contrib/rails/cache_spec.rb' - 'spec/ddtrace/contrib/rails/database_spec.rb' - 'spec/ddtrace/pin_spec.rb' - 'spec/ddtrace/pipeline/span_filter_spec.rb' - 'spec/ddtrace/pipeline/span_processor_spec.rb' - 'spec/ddtrace/pipeline_spec.rb' - 'spec/ddtrace/propagation/grpc_propagator_spec.rb' - 'spec/ddtrace/sampling/rate_limiter_spec.rb' - 'spec/ddtrace/sampling/rule_sampler_spec.rb' - 'spec/ddtrace/span_spec.rb' - 'spec/ddtrace/tracer_spec.rb' - 'spec/ddtrace/transport/traces_spec.rb' # Offense count: 4 RSpec/OverwritingSetup: Exclude: - 'spec/ddtrace/buffer_spec.rb' - 'spec/ddtrace/sampling/rule_spec.rb' # Offense count: 8 RSpec/RepeatedDescription: Exclude: - 'spec/ddtrace/contrib/rest_client/request_patch_spec.rb' # Offense count: 2 RSpec/RepeatedExampleGroupBody: Exclude: - 'spec/ddtrace/contrib/elasticsearch/patcher_spec.rb' # Offense count: 12 RSpec/RepeatedExampleGroupDescription: Exclude: - 'spec/ddtrace/contrib/elasticsearch/patcher_spec.rb' - 'spec/ddtrace/contrib/grape/tracer_spec.rb' - 'spec/ddtrace/contrib/redis/quantize_spec.rb' - 'spec/ddtrace/opentracer/scope_manager_spec.rb' - 'spec/ddtrace/opentracer/thread_local_scope_manager_spec.rb' - 'spec/ddtrace/workers/trace_writer_spec.rb' # Offense count: 53 RSpec/ScatteredSetup: Exclude: - 'spec/ddtrace/benchmark/support/benchmark_helper.rb' - 'spec/ddtrace/configuration/settings_spec.rb' - 'spec/ddtrace/contrib/action_cable/instrumentation_spec.rb' - 'spec/ddtrace/contrib/action_cable/patcher_spec.rb' - 'spec/ddtrace/contrib/elasticsearch/transport_spec.rb' - 'spec/ddtrace/contrib/grape/tracer_spec.rb' - 'spec/ddtrace/contrib/http/miniapp_spec.rb' - 'spec/ddtrace/contrib/http/request_spec.rb' - 'spec/ddtrace/contrib/mongodb/regression_issue_1235_spec.rb' - 'spec/ddtrace/contrib/presto/client_spec.rb' - 'spec/ddtrace/contrib/rails/cache_spec.rb' - 'spec/ddtrace/contrib/rails/database_spec.rb' - 'spec/ddtrace/contrib/rails/rails_active_job_spec.rb' - 'spec/ddtrace/contrib/rails/railtie_spec.rb' - 'spec/ddtrace/contrib/rails/redis_cache_spec.rb' - 'spec/ddtrace/contrib/redis/miniapp_spec.rb' - 'spec/ddtrace/diagnostics/environment_logger_spec.rb' - 'spec/ddtrace/opentracer/rack_propagator_spec.rb' - 'spec/ddtrace/opentracer/span_spec.rb' - 'spec/ddtrace/opentracer/text_map_propagator_spec.rb' - 'spec/ddtrace/tracer_spec.rb' - 'spec/ddtrace/workers/loop_spec.rb' # Offense count: 2 RSpec/UnspecifiedException: Exclude: - 'spec/ddtrace/contrib/delayed_job/plugin_spec.rb' - 'spec/ddtrace/contrib/sidekiq/tracer_configure_spec.rb' # Offense count: 421 # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames. RSpec/VerifiedDoubles: Exclude: - 'spec/datadog/ci/contrib/cucumber/formatter_spec.rb' - 'spec/ddtrace/buffer_spec.rb' - 'spec/ddtrace/configuration/base_spec.rb' - 'spec/ddtrace/configuration/components_spec.rb' - 'spec/ddtrace/configuration/option_definition_spec.rb' - 'spec/ddtrace/configuration/option_spec.rb' - 'spec/ddtrace/configuration/options_spec.rb' - 'spec/ddtrace/configuration/settings_spec.rb' - 'spec/ddtrace/configuration_spec.rb' - 'spec/ddtrace/context_provider_spec.rb' - 'spec/ddtrace/context_spec.rb' - 'spec/ddtrace/contrib/action_cable/patcher_spec.rb' - 'spec/ddtrace/contrib/active_support/notifications/event_spec.rb' - 'spec/ddtrace/contrib/active_support/notifications/subscriber_spec.rb' - 'spec/ddtrace/contrib/active_support/notifications/subscription_spec.rb' - 'spec/ddtrace/contrib/analytics_spec.rb' - 'spec/ddtrace/contrib/configuration/resolver_spec.rb' - 'spec/ddtrace/contrib/configuration/settings_spec.rb' - 'spec/ddtrace/contrib/delayed_job/plugin_spec.rb' - 'spec/ddtrace/contrib/ethon/easy_patch_spec.rb' - 'spec/ddtrace/contrib/extensions_spec.rb' - 'spec/ddtrace/contrib/mongodb/client_spec.rb' - 'spec/ddtrace/contrib/patchable_spec.rb' - 'spec/ddtrace/contrib/rails/action_controller_spec.rb' - 'spec/ddtrace/contrib/rails/cache_spec.rb' - 'spec/ddtrace/contrib/rake/instrumentation_spec.rb' - 'spec/ddtrace/contrib/registry_spec.rb' - 'spec/ddtrace/contrib/shoryuken/tracer_spec.rb' - 'spec/ddtrace/contrib/sneakers/tracer_spec.rb' - 'spec/ddtrace/correlation_spec.rb' - 'spec/ddtrace/environment_spec.rb' - 'spec/ddtrace/forced_tracing_spec.rb' - 'spec/ddtrace/integration_spec.rb' - 'spec/ddtrace/metrics_spec.rb' - 'spec/ddtrace/opentracer/global_tracer_spec.rb' - 'spec/ddtrace/opentracer/rack_propagator_spec.rb' - 'spec/ddtrace/opentracer/text_map_propagator_spec.rb' - 'spec/ddtrace/opentracer/tracer_spec.rb' - 'spec/ddtrace/patcher_spec.rb' - 'spec/ddtrace/pin_spec.rb' - 'spec/ddtrace/profiling/backtrace_location_spec.rb' - 'spec/ddtrace/profiling/collectors/stack_spec.rb' - 'spec/ddtrace/profiling/encoding/profile_spec.rb' - 'spec/ddtrace/profiling/events/stack_spec.rb' - 'spec/ddtrace/profiling/exporter_spec.rb' - 'spec/ddtrace/profiling/ext/cthread_spec.rb' - 'spec/ddtrace/profiling/ext/forking_spec.rb' - 'spec/ddtrace/profiling/flush_spec.rb' - 'spec/ddtrace/profiling/pprof/builder_spec.rb' - 'spec/ddtrace/profiling/pprof/converter_spec.rb' - 'spec/ddtrace/profiling/pprof/message_set_spec.rb' - 'spec/ddtrace/profiling/pprof/payload_spec.rb' - 'spec/ddtrace/profiling/pprof/template_spec.rb' - 'spec/ddtrace/profiling/transport/http/api/endpoint_spec.rb' - 'spec/ddtrace/profiling/transport/http/api/instance_spec.rb' - 'spec/ddtrace/profiling/transport/http/builder_spec.rb' - 'spec/ddtrace/profiling/transport/http/client_spec.rb' - 'spec/ddtrace/profiling/transport/http/response_spec.rb' - 'spec/ddtrace/profiling/transport/http_spec.rb' - 'spec/ddtrace/profiling/transport/io/client_spec.rb' - 'spec/ddtrace/profiling/transport/io/response_spec.rb' - 'spec/ddtrace/profiling/transport/io_spec.rb' - 'spec/ddtrace/profiling/transport/parcel_spec.rb' - 'spec/ddtrace/profiling_spec.rb' - 'spec/ddtrace/runtime/metrics_spec.rb' - 'spec/ddtrace/tasks/exec_spec.rb' - 'spec/ddtrace/tracer_spec.rb' - 'spec/ddtrace/transport/http/adapters/net_spec.rb' - 'spec/ddtrace/transport/http/adapters/registry_spec.rb' - 'spec/ddtrace/transport/http/adapters/test_spec.rb' - 'spec/ddtrace/transport/http/adapters/unix_socket_spec.rb' - 'spec/ddtrace/transport/http/api/endpoint_spec.rb' - 'spec/ddtrace/transport/http/api/instance_spec.rb' - 'spec/ddtrace/transport/http/builder_spec.rb' - 'spec/ddtrace/transport/http/client_spec.rb' - 'spec/ddtrace/transport/http/response_spec.rb' - 'spec/ddtrace/transport/http/statistics_spec.rb' - 'spec/ddtrace/transport/http/traces_spec.rb' - 'spec/ddtrace/transport/http_spec.rb' - 'spec/ddtrace/transport/io/client_spec.rb' - 'spec/ddtrace/transport/io/response_spec.rb' - 'spec/ddtrace/transport/io/traces_spec.rb' - 'spec/ddtrace/transport/parcel_spec.rb' - 'spec/ddtrace/transport/traces_spec.rb' - 'spec/ddtrace/utils/object_set_spec.rb' - 'spec/ddtrace/utils/string_table_spec.rb' - 'spec/ddtrace/worker_spec.rb' - 'spec/ddtrace/workers/async_spec.rb' - 'spec/ddtrace/workers/loop_spec.rb' - 'spec/ddtrace/workers/polling_spec.rb' - 'spec/ddtrace/workers/queue_spec.rb' - 'spec/ddtrace/workers/runtime_metrics_spec.rb' - 'spec/ddtrace/workers/trace_writer_spec.rb' - 'spec/ddtrace/workers_integration_spec.rb' - 'spec/ddtrace/writer_spec.rb' - 'spec/support/statsd_helpers.rb' # Offense count: 24 Style/ClassVars: Exclude: - 'spec/ddtrace/contrib/rails/support/rails3.rb' - 'spec/ddtrace/contrib/rails/support/rails4.rb' - 'spec/ddtrace/contrib/rails/support/rails5.rb' - 'spec/ddtrace/contrib/rails/support/rails6.rb' # Offense count: 1 Style/MixinUsage: Exclude: - 'test/benchmark_test.rb'