From abcef4750507bf0e54d70fc915bc663a7005ad64 Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Mon, 30 Jun 2025 12:41:37 +0100 Subject: [PATCH] AutoFix RuboCop Layout/TrailingEmptyLines --- .rubocop_todo.yml | 10 ---------- lib/grape_logging/multi_io.rb | 2 +- lib/grape_logging/reporters/active_support_reporter.rb | 2 +- lib/grape_logging/timings.rb | 2 +- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 6f6f8d2..8ab8d6e 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -29,16 +29,6 @@ Gemspec/RequiredRubyVersion: Exclude: - 'grape_logging.gemspec' -# Offense count: 3 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: final_newline, final_blank_line -Layout/TrailingEmptyLines: - Exclude: - - 'lib/grape_logging/multi_io.rb' - - 'lib/grape_logging/reporters/active_support_reporter.rb' - - 'lib/grape_logging/timings.rb' - # Offense count: 1 # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch. Lint/DuplicateBranch: diff --git a/lib/grape_logging/multi_io.rb b/lib/grape_logging/multi_io.rb index 2888ce3..2ace6c5 100644 --- a/lib/grape_logging/multi_io.rb +++ b/lib/grape_logging/multi_io.rb @@ -12,4 +12,4 @@ module GrapeLogging @targets.each(&:close) end end -end \ No newline at end of file +end diff --git a/lib/grape_logging/reporters/active_support_reporter.rb b/lib/grape_logging/reporters/active_support_reporter.rb index 392f9ae..e48ce3e 100644 --- a/lib/grape_logging/reporters/active_support_reporter.rb +++ b/lib/grape_logging/reporters/active_support_reporter.rb @@ -8,4 +8,4 @@ module Reporters ActiveSupport::Notifications.instrument @instrumentation_key, params end end -end \ No newline at end of file +end diff --git a/lib/grape_logging/timings.rb b/lib/grape_logging/timings.rb index 9c1e417..b9e1c87 100644 --- a/lib/grape_logging/timings.rb +++ b/lib/grape_logging/timings.rb @@ -18,4 +18,4 @@ module GrapeLogging self.db_runtime += event.duration end end -end \ No newline at end of file +end