From 1c7edd17fc62479151cc114984a373443ef316a7 Mon Sep 17 00:00:00 2001 From: mitsubosh Date: Thu, 23 May 2024 21:27:09 +0900 Subject: [PATCH] Disable cop: Metrics/MethodLength lib/datadog/core/runtime/metrics.rb:143:9: C: Metrics/MethodLength: Method has too many lines. [40/36] def flush_yjit_stats ... ^^^^^^^^^^^^^^^^^^^^ --- lib/datadog/core/runtime/metrics.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/datadog/core/runtime/metrics.rb b/lib/datadog/core/runtime/metrics.rb index b15a238691e..c07c75319e4 100644 --- a/lib/datadog/core/runtime/metrics.rb +++ b/lib/datadog/core/runtime/metrics.rb @@ -140,6 +140,7 @@ def gauge_if_not_nil(metric_name, metric_value) gauge(metric_name, metric_value) if metric_value end + # rubocop:disable Metrics/MethodLength def flush_yjit_stats # Only on Ruby >= 3.2 try_flush do @@ -183,6 +184,7 @@ def flush_yjit_stats end end end + # rubocop:enable Metrics/MethodLength end end end