# This configuration was generated by # `rubocop --auto-gen-config` # on 2021-01-28 16:30:51 UTC using RuboCop version 1.9.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: 71 # Cop supports --auto-correct. # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. # Include: **/*.gemfile, **/Gemfile, **/gems.rb Bundler/OrderedGems: Enabled: false # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. # Include: **/*.gemspec Gemspec/OrderedDependencies: Exclude: - 'instana.gemspec' # Offense count: 1 # Configuration parameters: Include. # Include: **/*.gemspec Gemspec/RequiredRubyVersion: Exclude: - 'instana.gemspec' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: with_first_argument, with_fixed_indentation Layout/ArgumentAlignment: Exclude: - 'lib/instana/tracer.rb' # Offense count: 10 # Cop supports --auto-correct. Layout/ClosingParenthesisIndentation: Exclude: - 'test/instrumentation/grpc_test.rb' # Offense count: 14 # Cop supports --auto-correct. Layout/EmptyLineAfterGuardClause: Exclude: - 'lib/instana/agent.rb' - 'lib/instana/instrumentation/graphql.rb' - 'lib/instana/instrumentation/instrumented_request.rb' - 'lib/instana/instrumentation/rack.rb' - 'lib/instana/tracer.rb' - 'lib/instana/tracing/span.rb' - 'lib/instana/util.rb' - 'test/config_test.rb' # Offense count: 2 # Cop supports --auto-correct. Layout/EmptyLineAfterMagicComment: Exclude: - 'benchmarks/Gemfile' - 'instana.gemspec' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines. Layout/EmptyLineBetweenDefs: Exclude: - 'lib/instana/tracing/span.rb' - 'test/instrumentation/rack_test.rb' - 'test/tracing/tracer_test.rb' # Offense count: 7 # Cop supports --auto-correct. Layout/EmptyLines: Exclude: - 'benchmarks/rack_vanilla_vs_traced.rb' - 'lib/instana/base.rb' - 'lib/instana/frameworks/cuba.rb' - 'lib/instana/tracing/span.rb' - 'test/frameworks/sinatra_test.rb' - 'test/instrumentation/rack_test.rb' - 'test/tracing/tracer_test.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: empty_lines, no_empty_lines Layout/EmptyLinesAroundBlockBody: Exclude: - 'benchmarks/opentracing.rb' - 'benchmarks/rack_vanilla_vs_traced.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only Layout/EmptyLinesAroundClassBody: Exclude: - 'lib/instana/config.rb' - 'lib/instana/helpers.rb' - 'test/agent/agent_test.rb' - 'test/frameworks/rails/activerecord_test.rb' # Offense count: 1 # Cop supports --auto-correct. Layout/EmptyLinesAroundExceptionHandlingKeywords: Exclude: - 'lib/instana/agent/tasks.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines Layout/EmptyLinesAroundModuleBody: Exclude: - 'lib/instana/frameworks/instrumentation/action_controller.rb' # Offense count: 8 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment. Layout/ExtraSpacing: Exclude: - 'instana.gemspec' - 'lib/instana/instrumentation/excon.rb' - 'lib/instana/tracer.rb' - 'lib/instana/tracing/span.rb' - 'test/support/apps/rails/boot.rb' - 'test/tracing/tracer_async_test.rb' # Offense count: 10 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses Layout/FirstArgumentIndentation: Exclude: - 'test/instrumentation/grpc_test.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_brackets Layout/FirstArrayElementIndentation: Exclude: - 'test/frameworks/rails/activerecord_test.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_braces Layout/FirstHashElementIndentation: Exclude: - 'instana.gemspec' # Offense count: 13 # Cop supports --auto-correct. # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle. # SupportedHashRocketStyles: key, separator, table # SupportedColonStyles: key, separator, table # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit Layout/HashAlignment: Exclude: - 'instana.gemspec' - 'test/secrets_test.rb' # Offense count: 9 # Cop supports --auto-correct. # Configuration parameters: IndentationWidth, EnforcedStyle. # SupportedStyles: spaces, tabs Layout/IndentationStyle: Exclude: - 'test/support/apps/roda/config.ru' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: Width, IgnoredPatterns. Layout/IndentationWidth: Exclude: - 'Appraisals' - 'test/support/apps/roda/config.ru' # Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment. Layout/LeadingCommentSpace: Exclude: - 'benchmarks/10k-rack-traces.rb' - 'examples/tracing.rb' - 'lib/instana/util.rb' # Offense count: 3 # Cop supports --auto-correct. Layout/LeadingEmptyLines: Exclude: - 'lib/instana/frameworks/instrumentation/active_record.rb' - 'test/frameworks/roda_test.rb' - 'test/tracing/id_management_test.rb' # Offense count: 14 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: aligned, indented, indented_relative_to_receiver Layout/MultilineMethodCallIndentation: Exclude: - 'lib/instana/frameworks/cuba.rb' - 'lib/instana/frameworks/roda.rb' - 'lib/instana/frameworks/sinatra.rb' - 'lib/instana/instrumentation/instrumented_request.rb' - 'lib/instana/secrets.rb' - 'lib/instana/util.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: aligned, indented Layout/MultilineOperationIndentation: Exclude: - 'lib/instana/frameworks/instrumentation/mysql2_adapter.rb' - 'lib/instana/frameworks/instrumentation/mysql_adapter.rb' - 'lib/instana/frameworks/instrumentation/postgresql_adapter.rb' - 'lib/instana/tracing/span.rb' - 'lib/instana/util.rb' # Offense count: 25 # Cop supports --auto-correct. Layout/SpaceAfterComma: Exclude: - 'lib/instana/collector.rb' - 'lib/instana/secrets.rb' - 'lib/instana/tracing/span.rb' - 'test/tracing/custom_test.rb' - 'test/tracing/opentracing_test.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: space, no_space Layout/SpaceAroundEqualsInParameterDefault: Exclude: - 'lib/instana/agent.rb' # Offense count: 29 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. # SupportedStylesForExponentOperator: space, no_space Layout/SpaceAroundOperators: Exclude: - 'benchmarks/id_generation.rb' - 'instana.gemspec' - 'lib/instana/agent.rb' - 'lib/instana/helpers.rb' - 'lib/instana/instrumentation/excon.rb' - 'lib/instana/tracer.rb' - 'lib/instana/tracing/span.rb' - 'lib/instana/util.rb' - 'test/secrets_test.rb' - 'test/support/apps/rails/boot.rb' - 'test/tracing/opentracing_test.rb' - 'test/tracing/tracer_async_test.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceBeforeBlockBraces: Exclude: - 'lib/instana/util.rb' # Offense count: 8 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBrackets: space, no_space Layout/SpaceInsideArrayLiteralBrackets: Exclude: - 'lib/instana/tracing/span.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. # SupportedStyles: space, no_space # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideBlockBraces: Exclude: - 'benchmarks/Gemfile' - 'lib/instana/tracing/processor.rb' - 'test/secrets_test.rb' # Offense count: 180 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideHashLiteralBraces: Enabled: false # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: space, no_space Layout/SpaceInsideParens: Exclude: - 'test/instrumentation/grpc_test.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: final_newline, final_blank_line Layout/TrailingEmptyLines: Exclude: - 'benchmarks/10k-rack-traces.rb' - 'benchmarks/Gemfile' - 'lib/instana/instrumentation/excon.rb' # Offense count: 85 # Cop supports --auto-correct. # Configuration parameters: AllowInHeredoc. Layout/TrailingWhitespace: Exclude: - 'Appraisals' - 'Rakefile' - 'lib/instana/agent.rb' - 'lib/instana/frameworks/cuba.rb' - 'lib/instana/frameworks/instrumentation/action_controller.rb' - 'lib/instana/frameworks/roda.rb' - 'lib/instana/frameworks/sinatra.rb' - 'lib/instana/instrumentation/graphql.rb' - 'lib/instana/tracer.rb' - 'test/frameworks/rails/actioncontroller_test.rb' - 'test/instrumentation/graphql_test.rb' - 'test/secrets_test.rb' - 'test/support/apps/cuba/config.ru' - 'test/support/apps/sinatra/config.ru' # Offense count: 14 Lint/AmbiguousBlockAssociation: Exclude: - 'benchmarks/10k-rack-traces.rb' - 'benchmarks/rack_vanilla_vs_traced.rb' - 'benchmarks/stackprof_rack_tracing.rb' - 'test/support/apps/http_endpoint/boot.rb' # Offense count: 1 # Configuration parameters: AllowSafeAssignment. Lint/AssignmentInCondition: Exclude: - 'test/frameworks/rails/activerecord_test.rb' # Offense count: 1 # Configuration parameters: DebuggerReceivers, DebuggerMethods. # DebuggerReceivers: binding, Kernel, Pry # DebuggerMethods: debugger, byebug, remote_byebug, pry, remote_pry, pry_remote, console, rescue, save_and_open_page, save_and_open_screenshot, irb Lint/Debugger: Exclude: - 'lib/instana/util.rb' # Offense count: 2 Lint/DuplicateElsifCondition: Exclude: - 'test/support/apps/resque/jobs/resque_error_job.rb' - 'test/support/apps/resque/jobs/resque_fast_job.rb' # Offense count: 1 Lint/DuplicateMethods: Exclude: - 'lib/instana/tracing/span.rb' # Offense count: 1 Lint/DuplicateRequire: Exclude: - 'test/support/apps/rails/boot.rb' # Offense count: 1 # Cop supports --auto-correct. Lint/EnsureReturn: Exclude: - 'lib/instana/frameworks/instrumentation/postgresql_adapter.rb' # Offense count: 1 # Cop supports --auto-correct. Lint/NonDeterministicRequireOrder: Exclude: - 'lib/instana/instrumentation.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: AllowedImplicitNamespaces. # AllowedImplicitNamespaces: Gem Lint/RaiseException: Exclude: - 'test/support/apps/rails/boot.rb' - 'test/support/apps/resque/jobs/resque_error_job.rb' - 'test/tracing/tracer_test.rb' # Offense count: 2 # Cop supports --auto-correct. Lint/RedundantRequireStatement: Exclude: - 'lib/instana/agent.rb' - 'lib/instana/tracing/processor.rb' # Offense count: 18 Lint/RescueException: Exclude: - 'lib/instana/agent.rb' - 'lib/instana/agent/helpers.rb' - 'lib/instana/frameworks/instrumentation/action_controller.rb' - 'lib/instana/frameworks/instrumentation/action_view.rb' - 'lib/instana/frameworks/instrumentation/postgresql_adapter.rb' - 'lib/instana/instrumentation/graphql.rb' - 'lib/instana/instrumentation/rack.rb' - 'lib/instana/instrumentation/resque.rb' - 'lib/instana/tracer.rb' - 'lib/instana/util.rb' - 'test/instrumentation/net_http_test.rb' - 'test/tracing/tracer_test.rb' # Offense count: 11 # Cop supports --auto-correct. Lint/SendWithMixinArgument: Exclude: - 'lib/instana/frameworks/instrumentation/action_controller.rb' - 'lib/instana/frameworks/instrumentation/action_view.rb' - 'lib/instana/frameworks/instrumentation/active_record.rb' - 'lib/instana/instrumentation/dalli.rb' - 'lib/instana/instrumentation/rest-client.rb' # Offense count: 9 # Configuration parameters: AllowComments. Lint/SuppressedException: Exclude: - 'test/instrumentation/dalli_test.rb' - 'test/instrumentation/excon_test.rb' - 'test/instrumentation/grpc_test.rb' - 'test/instrumentation/redis_test.rb' - 'test/instrumentation/sidekiq-client_test.rb' # Offense count: 2 Lint/UnreachableCode: Exclude: - 'test/support/apps/resque/jobs/resque_error_job.rb' - 'test/tracing/custom_test.rb' # Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. Lint/UnusedBlockArgument: Exclude: - 'lib/instana/frameworks/cuba.rb' - 'lib/instana/instrumentation/resque.rb' - 'test/benchmarks/bench_id_generation.rb' - 'test/benchmarks/bench_opentracing.rb' - 'test/support/apps/http_endpoint/boot.rb' # Offense count: 23 # Cop supports --auto-correct. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. Lint/UnusedMethodArgument: Exclude: - 'lib/instana/frameworks/instrumentation/abstract_mysql_adapter.rb' - 'lib/instana/frameworks/instrumentation/mysql2_adapter.rb' - 'lib/instana/frameworks/instrumentation/mysql_adapter.rb' - 'lib/instana/frameworks/instrumentation/postgresql_adapter.rb' - 'lib/instana/instrumentation/graphql.rb' - 'lib/instana/instrumentation/resque.rb' - 'lib/instana/tracer.rb' - 'test/support/apps/grpc/grpc_server.rb' - 'test/support/apps/rails/models/block.rb' - 'test/support/apps/rails/models/block6.rb' - 'test/support/apps/sidekiq/jobs/sidekiq_job_2.rb' # Offense count: 1 Lint/UriEscapeUnescape: Exclude: - 'lib/instana/agent/tasks.rb' # Offense count: 33 Lint/UselessAssignment: Exclude: - 'lib/instana/agent.rb' - 'lib/instana/instrumentation/grpc.rb' - 'lib/instana/tracing/span.rb' - 'lib/oj_check.rb' - 'test/frameworks/cuba_test.rb' - 'test/frameworks/rails/actionview4_test.rb' - 'test/frameworks/rails/actionview5_test.rb' - 'test/frameworks/rails/activerecord_test.rb' - 'test/frameworks/roda_test.rb' - 'test/frameworks/sinatra_test.rb' - 'test/instrumentation/net_http_test.rb' - 'test/tracing/opentracing_test.rb' # Offense count: 1 # Cop supports --auto-correct. Lint/UselessTimes: Exclude: - 'benchmarks/10k-rack-traces.rb' # Offense count: 169 # Configuration parameters: IgnoredMethods, CountRepeatedAttributes. Metrics/AbcSize: Max: 126 # Offense count: 4 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. # IgnoredMethods: refine Metrics/BlockLength: Max: 28 # Offense count: 1 # Configuration parameters: CountBlocks. Metrics/BlockNesting: Max: 4 # Offense count: 19 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: Max: 298 # Offense count: 15 # Configuration parameters: IgnoredMethods. Metrics/CyclomaticComplexity: Max: 16 # Offense count: 170 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. Metrics/MethodLength: Max: 51 # Offense count: 1 # Configuration parameters: CountComments, CountAsOne. Metrics/ModuleLength: Max: 128 # Offense count: 16 # Configuration parameters: IgnoredMethods. Metrics/PerceivedComplexity: Max: 16 # Offense count: 4 Naming/AccessorMethodName: Exclude: - 'lib/instana/agent/helpers.rb' - 'lib/instana/tracing/span.rb' - 'lib/instana/util.rb' # Offense count: 7 # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, Regex, IgnoreExecutableScripts, AllowedAcronyms. # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS Naming/FileName: Exclude: - 'benchmarks/10k-rack-traces.rb' - 'lib/instana/instrumentation/net-http.rb' - 'lib/instana/instrumentation/rest-client.rb' - 'lib/instana/instrumentation/sidekiq-client.rb' - 'lib/instana/instrumentation/sidekiq-worker.rb' - 'test/instrumentation/sidekiq-client_test.rb' - 'test/instrumentation/sidekiq-worker_test.rb' # Offense count: 14 # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. # AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to Naming/MethodParameterName: Exclude: - 'lib/instana/instrumentation/dalli.rb' - 'lib/instana/instrumentation/resque.rb' - 'lib/instana/tracer.rb' - 'lib/instana/tracing/span.rb' - 'test/support/apps/sidekiq/jobs/sidekiq_job_1.rb' - 'test/support/apps/sidekiq/jobs/sidekiq_job_2.rb' - 'test/support/helpers.rb' # Offense count: 4 # 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: - 'spec/**/*' - 'lib/instana/frameworks/instrumentation/action_controller.rb' - 'test/support/helpers.rb' # Offense count: 2 # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers. # SupportedStyles: snake_case, normalcase, non_integer # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339 Naming/VariableNumber: Exclude: - 'test/frameworks/rails/actioncontroller_test.rb' # Offense count: 23 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: separated, grouped Style/AccessorGrouping: Exclude: - 'lib/instana/agent.rb' - 'lib/instana/base.rb' - 'lib/instana/collector.rb' - 'lib/instana/tracing/span.rb' - 'lib/instana/tracing/span_context.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: always, conditionals Style/AndOr: Exclude: - 'lib/instana/agent/helpers.rb' # Offense count: 20 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods. # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object # FunctionalMethods: let, let!, subject, watch # IgnoredMethods: lambda, proc, it Style/BlockDelimiters: Exclude: - 'benchmarks/10k-rack-traces.rb' - 'benchmarks/opentracing.rb' - 'benchmarks/rack_vanilla_vs_traced.rb' - 'benchmarks/stackprof_rack_tracing.rb' - 'lib/instana/agent.rb' - 'test/support/apps/http_endpoint/boot.rb' - 'test/tracing/opentracing_test.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowOnConstant. Style/CaseEquality: Exclude: - 'lib/instana/instrumentation.rb' # Offense count: 4 # Cop supports --auto-correct. Style/CaseLikeIf: Exclude: - 'lib/instana/agent.rb' - 'lib/instana/agent/tasks.rb' - 'lib/instana/tracing/span.rb' - 'lib/instana/util.rb' # Offense count: 4 Style/ClassVars: Exclude: - 'lib/instana/frameworks/instrumentation/abstract_mysql_adapter.rb' - 'lib/instana/frameworks/instrumentation/mysql2_adapter.rb' - 'lib/instana/frameworks/instrumentation/mysql_adapter.rb' - 'lib/instana/frameworks/instrumentation/postgresql_adapter.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: Keywords. # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE Style/CommentAnnotation: Exclude: - 'lib/instana/instrumentation/instrumented_request.rb' # Offense count: 27 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. # SupportedStyles: assign_to_condition, assign_inside_condition Style/ConditionalAssignment: Exclude: - 'lib/instana/agent.rb' - 'lib/instana/agent/tasks.rb' - 'lib/instana/base.rb' - 'lib/instana/frameworks/instrumentation/action_controller.rb' - 'lib/instana/frameworks/instrumentation/mysql2_adapter.rb' - 'lib/instana/frameworks/instrumentation/mysql_adapter.rb' - 'lib/instana/instrumentation/net-http.rb' - 'lib/instana/tracer.rb' - 'lib/instana/tracing/span.rb' - 'lib/instana/util.rb' - 'test/frameworks/rails/activerecord_test.rb' - 'test/instrumentation/redis_test.rb' - 'test/support/apps/resque/jobs/resque_error_job.rb' - 'test/support/apps/resque/jobs/resque_fast_job.rb' # Offense count: 1 # Cop supports --auto-correct. Style/DefWithParentheses: Exclude: - 'test/instrumentation/graphql_test.rb' # Offense count: 45 Style/Documentation: Enabled: false # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: compact, expanded Style/EmptyMethod: Exclude: - 'test/instrumentation/resque_test.rb' - 'test/support/apps/sidekiq/jobs/sidekiq_job_1.rb' # Offense count: 1 # Cop supports --auto-correct. Style/Encoding: Exclude: - 'instana.gemspec' # Offense count: 1 # Cop supports --auto-correct. Style/ExpandPathArguments: Exclude: - 'instana.gemspec' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: each, for Style/For: Exclude: - 'test/instrumentation/excon_test.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: format, sprintf, percent Style/FormatString: Exclude: - 'lib/instana/agent.rb' # Offense count: 134 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Enabled: false # Offense count: 2 # Cop supports --auto-correct. Style/GlobalStdStream: Exclude: - 'benchmarks/10k-rack-traces.rb' - 'lib/instana/base.rb' # Offense count: 12 # Configuration parameters: AllowedVariables. Style/GlobalVars: Exclude: - 'test/instrumentation/sidekiq-worker_test.rb' - 'test/support/apps/sidekiq/boot.rb' # Offense count: 9 # Configuration parameters: MinBodyLength. Style/GuardClause: Exclude: - 'lib/instana/config.rb' - 'lib/instana/frameworks/instrumentation/abstract_mysql_adapter.rb' - 'lib/instana/frameworks/instrumentation/mysql2_adapter.rb' - 'lib/instana/frameworks/instrumentation/mysql_adapter.rb' - 'lib/instana/util.rb' - 'test/instrumentation/grpc_test.rb' - 'test/instrumentation/redis_test.rb' # Offense count: 248 # Cop supports --auto-correct. # Configuration parameters: UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys Style/HashSyntax: EnforcedStyle: hash_rockets # Offense count: 1 # Cop supports --auto-correct. Style/HashTransformValues: Exclude: - 'lib/instana/instrumentation/graphql.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: AllowIfModifier. Style/IfInsideElse: Exclude: - 'lib/instana/collector.rb' - 'lib/instana/instrumentation/net-http.rb' - 'lib/instana/tracing/span.rb' - 'lib/instana/util.rb' # Offense count: 44 # Cop supports --auto-correct. Style/IfUnlessModifier: Enabled: false # Offense count: 1 # Cop supports --auto-correct. Style/InfiniteLoop: Exclude: - 'lib/instana/agent.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: line_count_dependent, lambda, literal Style/Lambda: Exclude: - 'lib/instana/secrets.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: call, braces Style/LambdaCall: Exclude: - 'lib/instana/frameworks/roda.rb' - 'lib/instana/secrets.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: IgnoredMethods. Style/MethodCallWithoutArgsParentheses: Exclude: - 'examples/opentracing.rb' # Offense count: 2 Style/MissingRespondToMissing: Exclude: - 'lib/instana/opentracing/tracer.rb' - 'lib/instana/tracer.rb' # Offense count: 1 Style/MixinUsage: Exclude: - 'lib/instana/agent.rb' # Offense count: 1 Style/MultilineBlockChain: Exclude: - 'test/support/helpers.rb' # Offense count: 16 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: literals, strict Style/MutableConstant: Exclude: - 'benchmarks/id_generation.rb' - 'lib/instana/agent.rb' - 'lib/instana/agent/tasks.rb' - 'lib/instana/frameworks/cuba.rb' - 'lib/instana/frameworks/instrumentation/abstract_mysql_adapter.rb' - 'lib/instana/frameworks/instrumentation/mysql2_adapter.rb' - 'lib/instana/frameworks/instrumentation/mysql_adapter.rb' - 'lib/instana/frameworks/instrumentation/postgresql_adapter.rb' - 'lib/instana/instrumentation/grpc.rb' - 'lib/instana/util.rb' - 'lib/instana/version.rb' # Offense count: 6 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: both, prefix, postfix Style/NegatedIf: Exclude: - 'lib/instana/agent.rb' - 'lib/instana/helpers.rb' - 'lib/instana/tracer.rb' - 'lib/instana/tracing/span.rb' # Offense count: 3 # Cop supports --auto-correct. Style/NegatedWhile: Exclude: - 'benchmarks/10k-rack-traces.rb' - 'benchmarks/rack_vanilla_vs_traced.rb' - 'lib/instana/tracing/processor.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, MinBodyLength. # SupportedStyles: skip_modifier_ifs, always Style/Next: Exclude: - 'lib/instana/tracing/span.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: Strict. Style/NumericLiterals: MinDigits: 6 # Offense count: 11 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IgnoredMethods. # SupportedStyles: predicate, comparison Style/NumericPredicate: Exclude: - 'spec/**/*' - 'lib/instana/frameworks/instrumentation/action_controller.rb' - 'lib/instana/frameworks/instrumentation/postgresql_adapter.rb' - 'lib/instana/secrets.rb' - 'test/tracing/custom_test.rb' - 'test/tracing/opentracing_test.rb' - 'test/tracing/tracer_test.rb' # Offense count: 2 # Configuration parameters: AllowedMethods. # AllowedMethods: respond_to_missing? Style/OptionalBooleanParameter: Exclude: - 'lib/instana/agent.rb' - 'test/support/helpers.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions. Style/ParenthesesAroundCondition: Exclude: - 'lib/instana/util.rb' # Offense count: 21 # Cop supports --auto-correct. # Configuration parameters: PreferredDelimiters. Style/PercentLiteralDelimiters: Exclude: - 'instana.gemspec' - 'lib/instana/frameworks/instrumentation/abstract_mysql_adapter.rb' - 'lib/instana/frameworks/instrumentation/mysql2_adapter.rb' - 'lib/instana/frameworks/instrumentation/mysql_adapter.rb' - 'lib/instana/frameworks/instrumentation/postgresql_adapter.rb' - 'test/instrumentation/grpc_test.rb' - 'test/instrumentation/rack_test.rb' - 'test/secrets_test.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: short, verbose Style/PreferredHashMethods: Exclude: - 'lib/instana/instrumentation/instrumented_request.rb' # Offense count: 14 # Cop supports --auto-correct. Style/Proc: Exclude: - 'benchmarks/10k-rack-traces.rb' - 'benchmarks/rack_vanilla_vs_traced.rb' - 'benchmarks/stackprof_rack_tracing.rb' - 'test/support/apps/http_endpoint/boot.rb' # Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, AllowedCompactTypes. # SupportedStyles: compact, exploded Style/RaiseArgs: Exclude: - 'test/support/apps/rails/boot.rb' - 'test/support/apps/resque/jobs/resque_error_job.rb' - 'test/tracing/tracer_test.rb' # Offense count: 9 # Cop supports --auto-correct. Style/RedundantBegin: Exclude: - 'lib/instana/instrumentation.rb' - 'lib/instana/instrumentation/grpc.rb' - 'test/instrumentation/grpc_test.rb' - 'test/instrumentation/redis_test.rb' # Offense count: 2 # Cop supports --auto-correct. Style/RedundantParentheses: Exclude: - 'lib/instana/helpers.rb' # Offense count: 2 # Cop supports --auto-correct. Style/RedundantPercentQ: Exclude: - 'instana.gemspec' # Offense count: 13 # Cop supports --auto-correct. # Configuration parameters: AllowMultipleReturnValues. Style/RedundantReturn: Exclude: - 'lib/instana/agent.rb' - 'lib/instana/agent/helpers.rb' - 'lib/instana/frameworks/instrumentation/action_controller.rb' - 'lib/instana/helpers.rb' - 'lib/instana/util.rb' # Offense count: 43 # Cop supports --auto-correct. Style/RedundantSelf: Exclude: - 'lib/instana/instrumentation/redis.rb' - 'lib/instana/tracer.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, AllowInnerSlashes. # SupportedStyles: slashes, percent_r, mixed Style/RegexpLiteral: Exclude: - 'lib/instana/frameworks/cuba.rb' - 'lib/instana/tracing/span.rb' # Offense count: 6 # Cop supports --auto-correct. Style/RescueModifier: Exclude: - 'lib/instana/frameworks/instrumentation/action_controller.rb' - 'lib/instana/instrumentation/dalli.rb' - 'lib/instana/tracing/processor.rb' # Offense count: 40 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: implicit, explicit Style/RescueStandardError: Enabled: false # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods. # AllowedMethods: present?, blank?, presence, try, try! Style/SafeNavigation: Exclude: - 'lib/instana/agent.rb' # Offense count: 1 # Cop supports --auto-correct. Style/SlicingWithRange: Exclude: - 'lib/instana/util.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: use_perl_names, use_english_names Style/SpecialGlobalVars: Exclude: - 'lib/instana/util.rb' # Offense count: 4 # Cop supports --auto-correct. Style/StringConcatenation: Exclude: - 'lib/instana/helpers.rb' - 'lib/instana/instrumentation/instrumented_request.rb' - 'lib/instana/thread_local.rb' # Offense count: 939 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Enabled: false # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: single_quotes, double_quotes Style/StringLiteralsInInterpolation: Exclude: - 'lib/instana/agent/tasks.rb' # Offense count: 10 # Cop supports --auto-correct. # Configuration parameters: MinSize. # SupportedStyles: percent, brackets Style/SymbolArray: EnforcedStyle: brackets # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: IgnoredMethods. # IgnoredMethods: respond_to, define_method Style/SymbolProc: Exclude: - 'lib/instana/instrumentation/instrumented_request.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, AllowSafeAssignment. # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex Style/TernaryParentheses: Exclude: - 'lib/instana/agent.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForMultiline. # SupportedStylesForMultiline: comma, consistent_comma, no_comma Style/TrailingCommaInHashLiteral: Exclude: - 'instana.gemspec' - 'lib/instana/instrumentation/graphql.rb' # Offense count: 1 # Cop supports --auto-correct. Style/UnpackFirst: Exclude: - 'lib/instana/util.rb' # Offense count: 5 # Cop supports --auto-correct. Style/WhileUntilDo: Exclude: - 'benchmarks/10k-rack-traces.rb' - 'benchmarks/rack_vanilla_vs_traced.rb' - 'lib/instana/tracing/processor.rb' # Offense count: 2 # Cop supports --auto-correct. Style/WhileUntilModifier: Exclude: - 'benchmarks/10k-rack-traces.rb' - 'benchmarks/rack_vanilla_vs_traced.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: WordRegex. # SupportedStyles: percent, brackets Style/WordArray: EnforcedStyle: percent MinSize: 3 # Offense count: 2 # Cop supports --auto-correct. Style/ZeroLengthPredicate: Exclude: - 'lib/instana/frameworks/instrumentation/action_controller.rb' # Offense count: 36 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Layout/LineLength: Max: 185