11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2023-10-26 22:54:31 UTC using RuboCop version 1.54.0 .
3+ # on 2025-12-25 19:00:23 UTC using RuboCop version 1.81.7 .
44# The point is for the user to remove these configuration records
55# one by one as the offenses are removed from the code base.
66# Note that changes in the inspected code, or installation of new
77# versions of RuboCop, may require this file to be generated again.
88
9- # Offense count: 31
10- # Configuration parameters: EnforcedStyle, AllowedGems, Include .
9+ # Offense count: 33
10+ # Configuration parameters: EnforcedStyle, AllowedGems.
1111# SupportedStyles: Gemfile, gems.rb, gemspec
12- # Include: **/*.gemspec, **/Gemfile, **/gems.rb
1312Gemspec/DevelopmentDependencies :
1413 Exclude :
1514 - ' infinite_tracing/newrelic-infinite_tracing.gemspec'
1615 - ' newrelic_rpm.gemspec'
1716
18- # Offense count: 443
17+ # Offense count: 3
18+ # This cop supports safe autocorrection (--autocorrect).
19+ Layout/EmptyLineAfterMagicComment :
20+ Exclude :
21+ - ' test/performance/rails_app/config/initializers/cors.rb'
22+ - ' test/performance/rails_app/config/initializers/inflections.rb'
23+ - ' test/performance/rails_app/db/seeds.rb'
24+
25+ # Offense count: 50
26+ # This cop supports safe autocorrection (--autocorrect).
27+ Layout/EmptyLinesAfterModuleInclusion :
28+ Enabled : false
29+
30+ # Offense count: 25
31+ # This cop supports safe autocorrection (--autocorrect).
32+ Layout/EmptyLinesAroundMethodBody :
33+ Exclude :
34+ - ' lib/new_relic/agent.rb'
35+ - ' lib/new_relic/agent/distributed_tracing/trace_context.rb'
36+ - ' lib/new_relic/agent/distributed_tracing/trace_context_payload.rb'
37+ - ' lib/new_relic/agent/instrumentation/grpc/client/chain.rb'
38+ - ' lib/new_relic/agent/instrumentation/grpc/client/prepend.rb'
39+ - ' lib/new_relic/agent/messaging.rb'
40+ - ' lib/new_relic/agent/method_tracer.rb'
41+ - ' lib/new_relic/agent/tracer.rb'
42+ - ' lib/new_relic/agent/transaction/message_broker_segment.rb'
43+
44+ # Offense count: 2
45+ Lint/LiteralAssignmentInCondition :
46+ Exclude :
47+ - ' test/multiverse/suites/rake/rake_test.rb'
48+
49+ # Offense count: 1
50+ # This cop supports safe autocorrection (--autocorrect).
51+ Lint/RedundantCopDisableDirective :
52+ Exclude :
53+ - ' test/performance/lib/performance/console_reporter.rb'
54+
55+ # Offense count: 1
56+ # This cop supports safe autocorrection (--autocorrect).
57+ Lint/RedundantTypeConversion :
58+ Exclude :
59+ - ' test/multiverse/suites/agent_only/encoding_handling_test.rb'
60+
61+ # Offense count: 2
62+ Lint/SharedMutableDefault :
63+ Exclude :
64+ - ' lib/new_relic/agent/instrumentation/roda/ignorer.rb'
65+ - ' lib/new_relic/agent/instrumentation/sinatra/ignorer.rb'
66+
67+ # Offense count: 21
68+ Lint/UselessConstantScoping :
69+ Exclude :
70+ - ' infinite_tracing/lib/infinite_tracing/transformer.rb'
71+ - ' lib/new_relic/agent/agent_logger.rb'
72+ - ' lib/new_relic/agent/database.rb'
73+ - ' lib/new_relic/agent/instrumentation/action_cable_subscriber.rb'
74+ - ' lib/new_relic/agent/instrumentation/mongodb_command_subscriber.rb'
75+ - ' lib/new_relic/agent/samplers/delayed_job_sampler.rb'
76+ - ' lib/new_relic/agent/transaction/datastore_segment.rb'
77+ - ' lib/new_relic/agent/transaction/tracing.rb'
78+ - ' lib/new_relic/agent/utilization/vendor.rb'
79+ - ' test/new_relic/agent/distributed_tracing/distributed_tracing_cross_agent_test.rb'
80+ - ' test/new_relic/agent/distributed_tracing/trace_context_cross_agent_test.rb'
81+ - ' test/new_relic/agent/transaction_sampler_test.rb'
82+ - ' test/new_relic/newrelicyml_test.rb'
83+
84+ # Offense count: 523
1985# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
2086Metrics/AbcSize :
21- Max : 40
87+ Max : 87
88+
89+ # Offense count: 17
90+ # This cop supports safe autocorrection (--autocorrect).
91+ Minitest/AssertInstanceOf :
92+ Exclude :
93+ - ' test/multiverse/suites/elasticsearch/elasticsearch_instrumentation_test.rb'
94+ - ' test/multiverse/suites/opensearch/opensearch_instrumentation_test.rb'
95+ - ' test/new_relic/agent/configuration/manager_test.rb'
96+ - ' test/new_relic/agent/llm/llm_event_test.rb'
97+ - ' test/new_relic/agent/sampler_collection_test.rb'
98+ - ' test/new_relic/agent/stats_engine/gc_profiler_test.rb'
99+ - ' test/new_relic/agent/transaction/trace_node_test.rb'
100+ - ' test/new_relic/collection_helper_test.rb'
101+ - ' test/new_relic/noticed_error_test.rb'
102+
103+ # Offense count: 16
104+ # This cop supports safe autocorrection (--autocorrect).
105+ Minitest/AssertKindOf :
22106 Exclude :
23- - ' lib/new_relic/agent/configuration/default_source.rb'
24- - infinite_tracing/test/**/*
25- - test/**/*
107+ - ' test/multiverse/suites/agent_only/transaction_events_test.rb'
108+ - ' test/multiverse/suites/curb/curb_test.rb'
109+ - ' test/multiverse/suites/hybrid_agent/tracer_provider_test.rb'
110+ - ' test/multiverse/suites/sequel/sequel_safety_test.rb'
111+ - ' test/multiverse/suites/sidekiq/sidekiq_instrumentation_test.rb'
112+ - ' test/new_relic/agent/attribute_pre_filtering_test.rb'
113+ - ' test/new_relic/agent/sampler_test.rb'
114+ - ' test/new_relic/agent/span_event_primitive_test.rb'
115+ - ' test/new_relic/agent/transaction_event_primitive_test.rb'
116+ - ' test/new_relic/http_client_test_cases.rb'
26117
27- Metrics/CollectionLiteralLength :
118+ # Offense count: 23
119+ # This cop supports safe autocorrection (--autocorrect).
120+ Minitest/AssertOperator :
28121 Exclude :
29- - ' lib/new_relic/agent/configuration/default_source.rb'
122+ - ' test/multiverse/suites/agent_only/rum_instrumentation_test.rb'
123+ - ' test/multiverse/suites/agent_only/thread_profiling_test.rb'
124+ - ' test/multiverse/suites/bunny/bunny_test.rb'
125+ - ' test/multiverse/suites/rails/gc_instrumentation_test.rb'
126+ - ' test/multiverse/suites/typhoeus/typhoeus_test.rb'
127+ - ' test/new_relic/agent/adaptive_sampler_test.rb'
128+ - ' test/new_relic/agent/configuration/default_source_test.rb'
129+ - ' test/new_relic/agent/datastores/redis_test.rb'
130+ - ' test/new_relic/agent/health_check_test.rb'
131+ - ' test/new_relic/agent/instrumentation/task_instrumentation_test.rb'
132+ - ' test/new_relic/agent/messaging_test.rb'
133+ - ' test/new_relic/agent/sql_sampler_test.rb'
134+ - ' test/new_relic/agent/transaction/attributes_test.rb'
135+ - ' test/new_relic/environment_report_test.rb'
136+ - ' test/new_relic/rack/browser_monitoring_test.rb'
30137
31- # Offense count: 7
138+ # Offense count: 4
32139Minitest/AssertRaisesCompoundBody :
33140 Exclude :
34141 - ' test/new_relic/agent/collector_response_code_test.rb'
35142 - ' test/new_relic/agent/new_relic_service_test.rb'
36143
144+ # Offense count: 4
145+ # This cop supports safe autocorrection (--autocorrect).
146+ Minitest/AssertSame :
147+ Exclude :
148+ - ' test/new_relic/agent/new_relic_service_test.rb'
149+
37150# Offense count: 4
38151Minitest/DuplicateTestRun :
39152 Exclude :
40153 - ' test/multiverse/suites/rails/error_tracing_test.rb'
41154 - ' test/multiverse/suites/sinatra/ignoring_test.rb'
42155
43- # Offense count: 284
156+ # Offense count: 1
157+ # This cop supports safe autocorrection (--autocorrect).
158+ Minitest/LifecycleHooksOrder :
159+ Exclude :
160+ - ' test/multiverse/suites/mongo/mongo_instrumentation_test.rb'
161+
162+ # Offense count: 305
44163Minitest/MultipleAssertions :
45164 Max : 28
46165
166+ # Offense count: 3
167+ # This cop supports safe autocorrection (--autocorrect).
168+ Minitest/RefuteEqual :
169+ Exclude :
170+ - ' test/new_relic/agent/agent_test.rb'
171+
172+ # Offense count: 3
173+ # This cop supports safe autocorrection (--autocorrect).
174+ Minitest/RefuteOperator :
175+ Exclude :
176+ - ' test/new_relic/agent/agent_test.rb'
177+
178+ # Offense count: 21
179+ # This cop supports safe autocorrection (--autocorrect).
180+ Minitest/ReturnInTestMethod :
181+ Exclude :
182+ - ' test/multiverse/suites/delayed_job/delayed_job_sampler_test.rb'
183+ - ' test/multiverse/suites/memcache/memcached_test.rb'
184+ - ' test/new_relic/agent/agent_logger_test.rb'
185+ - ' test/new_relic/agent/database_test.rb'
186+ - ' test/new_relic/agent/samplers/memory_sampler_test.rb'
187+ - ' test/new_relic/agent/stats_engine/gc_profiler_test.rb'
188+ - ' test/new_relic/control_test.rb'
189+ - ' test/new_relic/language_support_test.rb'
190+
47191# Offense count: 19
48192Minitest/TestFileName :
49193 Enabled : false
50194
51- # Offense count: 20
195+ # Offense count: 19
52196# This cop supports safe autocorrection (--autocorrect).
53197Minitest/TestMethodName :
54- Enabled : false
198+ Exclude :
199+ - ' test/multiverse/suites/agent_only/error_events_test.rb'
200+ - ' test/multiverse/suites/agent_only/log_events_test.rb'
201+ - ' test/multiverse/suites/agent_only/span_events_test.rb'
202+ - ' test/multiverse/suites/agent_only/synthetics_test.rb'
203+ - ' test/multiverse/suites/agent_only/transaction_events_test.rb'
204+ - ' test/multiverse/suites/logger/logger_instrumentation_test.rb'
205+ - ' test/multiverse/suites/rails/queue_time_test.rb'
206+ - ' test/multiverse/suites/resque/instrumentation_test.rb'
207+ - ' test/new_relic/agent/event_listener_test.rb'
208+ - ' test/new_relic/agent/monitors/synthetics_monitor_test.rb'
209+ - ' test/new_relic/agent/samplers/cpu_sampler_test.rb'
210+ - ' test/new_relic/agent/threading/backtrace_service_test.rb'
211+ - ' test/new_relic/agent/transaction/distributed_tracer_test.rb'
212+ - ' test/new_relic/agent/transaction_event_aggregator_test.rb'
213+ - ' test/new_relic/control/security_interface_test.rb'
55214
56215# Offense count: 7
57216Minitest/UselessAssertion :
@@ -63,9 +222,134 @@ Minitest/UselessAssertion:
63222 - ' test/new_relic/agent/method_tracer_test.rb'
64223 - ' test/new_relic/agent/stats_test.rb'
65224
225+ # Offense count: 19
226+ # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
227+ # AllowedMethods: call
228+ # WaywardPredicates: nonzero?
229+ Naming/PredicateMethod :
230+ Exclude :
231+ - ' lib/new_relic/agent/agent_helpers/connect.rb'
232+ - ' lib/new_relic/agent/agent_helpers/startup.rb'
233+ - ' lib/new_relic/agent/configuration/server_source.rb'
234+ - ' lib/new_relic/agent/instrumentation/action_controller_subscriber.rb'
235+ - ' lib/new_relic/agent/instrumentation/middleware_tracing.rb'
236+ - ' lib/new_relic/agent/transaction/distributed_tracing.rb'
237+ - ' lib/new_relic/agent/utilization/vendor.rb'
238+ - ' test/multiverse/lib/multiverse/suite.rb'
239+ - ' test/multiverse/suites/agent_only/logging_test.rb'
240+ - ' test/multiverse/suites/rack/rack_builder_test.rb'
241+ - ' test/multiverse/suites/rails/action_controller_other_test.rb'
242+ - ' test/new_relic/agent/instrumentation/middleware_proxy_test.rb'
243+ - ' test/new_relic/agent/method_interrobang_test.rb'
244+ - ' test/new_relic/agent/method_tracer_test.rb'
245+ - ' test/new_relic/agent/transaction_interrobang_test.rb'
246+
247+ # Offense count: 1
248+ # This cop supports safe autocorrection (--autocorrect).
249+ Performance/CompareWithBlock :
250+ Exclude :
251+ - ' lib/new_relic/agent/transaction/transaction_sample_buffer.rb'
252+
253+ # Offense count: 2
254+ # This cop supports unsafe autocorrection (--autocorrect-all).
255+ Performance/ZipWithoutBlock :
256+ Exclude :
257+ - ' lib/new_relic/agent/database/explain_plan_helpers.rb'
258+ - ' test/multiverse/suites/sinatra/sinatra_test_cases.rb'
259+
260+ # Offense count: 6
261+ # This cop supports unsafe autocorrection (--autocorrect-all).
262+ Style/BitwisePredicate :
263+ Exclude :
264+ - ' test/new_relic/agent/attribute_filter_test.rb'
265+
266+ # Offense count: 30
267+ # This cop supports safe autocorrection (--autocorrect).
268+ Style/CombinableDefined :
269+ Enabled : false
270+
271+ # Offense count: 1
272+ # This cop supports unsafe autocorrection (--autocorrect-all).
273+ Style/ComparableBetween :
274+ Exclude :
275+ - ' test/agent_helper.rb'
276+
66277# Offense count: 7
67278# This cop supports unsafe autocorrection (--autocorrect-all).
68279Style/ConcatArrayLiterals :
69280 Exclude :
70281 - ' lib/new_relic/agent/error_collector.rb'
71282 - ' test/new_relic/agent/sql_sampler_test.rb'
283+
284+ # Offense count: 2
285+ # This cop supports safe autocorrection (--autocorrect).
286+ # Configuration parameters: EnforcedStyle.
287+ # SupportedStyles: trailing_conditional, ternary
288+ Style/EmptyStringInsideInterpolation :
289+ Exclude :
290+ - ' lib/new_relic/agent/error_trace_aggregator.rb'
291+ - ' lib/new_relic/agent/event_aggregator.rb'
292+
293+ # Offense count: 10
294+ # This cop supports unsafe autocorrection (--autocorrect-all).
295+ Style/FileNull :
296+ Exclude :
297+ - ' test/multiverse/suites/config_file_loading/config_file_loading_test.rb'
298+ - ' test/multiverse/suites/sidekiq/sidekiq_test_helpers.rb'
299+ - ' test/multiverse/suites/sidekiq_delay_extensions/sidekiq_delay_extensions_test_helpers.rb'
300+ - ' test/multiverse/suites/sidekiq_ignore_retry_errors_enabled/sidekiq_test_helpers.rb'
301+ - ' test/new_relic/agent/agent_logger_test.rb'
302+ - ' test/new_relic/agent/instrumentation/rails/action_cable_subscriber.rb'
303+ - ' test/new_relic/fake_server.rb'
304+ - ' test/performance/lib/performance/options.rb'
305+
306+ # Offense count: 5
307+ # This cop supports unsafe autocorrection (--autocorrect-all).
308+ Style/MapIntoArray :
309+ Exclude :
310+ - ' Rakefile'
311+ - ' lib/new_relic/agent/database/explain_plan_helpers.rb'
312+ - ' lib/tasks/helpers/format.rb'
313+
314+ # Offense count: 53
315+ # This cop supports safe autocorrection (--autocorrect).
316+ Style/RedundantLineContinuation :
317+ Enabled : false
318+
319+ # Offense count: 2
320+ # This cop supports unsafe autocorrection (--autocorrect-all).
321+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
322+ # AllowedMethods: present?, blank?, presence, try, try!
323+ Style/SafeNavigation :
324+ Exclude :
325+ - ' lib/new_relic/agent/instrumentation/active_record_helper.rb'
326+ - ' lib/new_relic/agent/instrumentation/active_record_subscriber.rb'
327+
328+ # Offense count: 4
329+ # Configuration parameters: Max.
330+ Style/SafeNavigationChainLength :
331+ Exclude :
332+ - ' lib/new_relic/agent/aws.rb'
333+ - ' lib/new_relic/agent/instrumentation/dynamodb/instrumentation.rb'
334+ - ' lib/new_relic/agent/instrumentation/ruby_openai/instrumentation.rb'
335+ - ' lib/new_relic/agent/llm.rb'
336+
337+ # Offense count: 10
338+ # This cop supports safe autocorrection (--autocorrect).
339+ Style/SuperArguments :
340+ Exclude :
341+ - ' lib/new_relic/agent/http_clients/curb_wrappers.rb'
342+ - ' lib/new_relic/agent/http_clients/excon_wrappers.rb'
343+ - ' lib/new_relic/agent/instrumentation/concurrent_ruby/prepend.rb'
344+ - ' lib/new_relic/agent/instrumentation/grape/prepend.rb'
345+ - ' lib/new_relic/agent/log_event_aggregator.rb'
346+ - ' lib/new_relic/agent/logging.rb'
347+ - ' lib/new_relic/cli/commands/install.rb'
348+ - ' test/helpers/minitest.rb'
349+ - ' test/multiverse/suites/activemerchant/activemerchant_test.rb'
350+
351+ # Offense count: 1
352+ # This cop supports safe autocorrection (--autocorrect).
353+ Style/SuperWithArgsParentheses :
354+ Exclude :
355+ - ' test/multiverse/suites/rails/app.rb'
0 commit comments