From 1d65c942c38d8525abf7da976d146d3fac50b095 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sun, 5 Mar 2023 17:13:46 +0000 Subject: [PATCH] rubocops/cask: Clean up unnecessary `require`s - I suspect these were copy-pasted from other cops, like I did in https://github.com/Homebrew/brew/pull/14886#discussion_r1125569999. - The "forwardable" require is unnecesary if the cop doesn't `extend Forwardable` and use `def_delegator`. - The "uri" require is unnecessary if the cop doesn't call `URI` methods. --- Library/Homebrew/rubocops/cask/desc.rb | 2 -- Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb | 3 --- 2 files changed, 5 deletions(-) diff --git a/Library/Homebrew/rubocops/cask/desc.rb b/Library/Homebrew/rubocops/cask/desc.rb index 9b33d476d763d..6d8a74207944a 100644 --- a/Library/Homebrew/rubocops/cask/desc.rb +++ b/Library/Homebrew/rubocops/cask/desc.rb @@ -1,8 +1,6 @@ # typed: true # frozen_string_literal: true -require "forwardable" -require "uri" require "rubocops/cask/mixin/on_desc_stanza" require "rubocops/shared/desc_helper" diff --git a/Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb b/Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb index d164e625a2b4f..54b7d150360ab 100644 --- a/Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb +++ b/Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb @@ -1,9 +1,6 @@ # typed: true # frozen_string_literal: true -require "forwardable" -require "uri" - module RuboCop module Cop module Cask