From e25216120849f6b48224bfe4490a9886dabe7cf9 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 29 Jan 2023 16:03:15 +0000 Subject: [PATCH] fix(xbar/brew-updates): resolve rubocop linting complaints --- xbar/brew-updates.1h.rb | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/xbar/brew-updates.1h.rb b/xbar/brew-updates.1h.rb index 9198d76..ab3cbe5 100755 --- a/xbar/brew-updates.1h.rb +++ b/xbar/brew-updates.1h.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true # Brew Updates -# v2.3.1 +# v2.3.2 # Jim Myhrberg # jimeh # List and manage outdated Homebrew formulas and casks @@ -12,6 +12,13 @@ # # string(VAR_BREW_PATH="/usr/local/bin/brew"): Path to "brew" executable. +# rubocop:disable Lint/ShadowingOuterLocalVariable +# rubocop:disable Metrics/AbcSize +# rubocop:disable Metrics/BlockLength +# rubocop:disable Metrics/ClassLength +# rubocop:disable Metrics/CyclomaticComplexity +# rubocop:disable Metrics/MethodLength +# rubocop:disable Metrics/PerceivedComplexity # rubocop:disable Style/IfUnlessModifier require 'open3' @@ -185,7 +192,7 @@ module Brew def brew_update cmd(brew_path, 'update') - rescue CommandError => e + rescue CommandError # Continue as if nothing happened when brew update fails, as it likely # to be due to another update process is already running. end @@ -412,3 +419,10 @@ rescue StandardError => e end # rubocop:enable Style/IfUnlessModifier +# rubocop:enable Metrics/PerceivedComplexity +# rubocop:enable Metrics/MethodLength +# rubocop:enable Metrics/CyclomaticComplexity +# rubocop:enable Metrics/ClassLength +# rubocop:enable Metrics/BlockLength +# rubocop:enable Metrics/AbcSize +# rubocop:enable Lint/ShadowingOuterLocalVariable