From a14d2f2ad7b3f8ec917db3d3c42d284c810a3781 Mon Sep 17 00:00:00 2001 From: Fernando Valverde Date: Thu, 14 Jul 2022 06:59:51 -0600 Subject: [PATCH] Temporarily disable Style/TopLevelMethodDefinition (#18109) * Temporarily disable Style/TopLevelMethodDefinition * shorten long lines --- .rubocop.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 3568d9d7b..6b348bc22 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -672,11 +672,13 @@ Style/SwapValues: Style/TopLevelMethodDefinition: Description: 'This cop looks for top-level method definitions.' - Enabled: true - Exclude: - - scripts/release - - scripts/stage_release - - 'spec/**/*_spec.rb' + Enabled: false +# We're disabling it for the time being until a new version of rubocop +# (> 1.31.2) is released with a fix for false positives that are coming up. +# These files below were the original files excluded from this rule. +# Exclude: +# - scripts/release +# - scripts/stage_release Style/TrailingCommaInArguments: Description: 'Checks for trailing comma in argument lists.'