Skip to content

Commit

Permalink
Disable cop: Metrics/MethodLength
Browse files Browse the repository at this point in the history
lib/datadog/core/runtime/metrics.rb:143:9: C: Metrics/MethodLength: Method has too many lines. [40/36]
        def flush_yjit_stats ...
        ^^^^^^^^^^^^^^^^^^^^
  • Loading branch information
MITSUBOSHI committed May 23, 2024
1 parent 90a7717 commit 1c7edd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/datadog/core/runtime/metrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -183,6 +184,7 @@ def flush_yjit_stats
end
end
end
# rubocop:enable Metrics/MethodLength
end
end
end
Expand Down

0 comments on commit 1c7edd1

Please sign in to comment.