Skip to content

Commit

Permalink
rubocops/cask: Clean up unnecessary requires
Browse files Browse the repository at this point in the history
- I suspect these were copy-pasted from other cops, like I did in
  Homebrew#14886 (comment).
- 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.
  • Loading branch information
issyl0 committed Mar 5, 2023
1 parent b1ef41c commit 1d65c94
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions Library/Homebrew/rubocops/cask/desc.rb
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
3 changes: 0 additions & 3 deletions Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# typed: true
# frozen_string_literal: true

require "forwardable"
require "uri"

module RuboCop
module Cop
module Cask
Expand Down

0 comments on commit 1d65c94

Please sign in to comment.