mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
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.
This commit is contained in:
parent
b1ef41c25d
commit
1d65c942c3
@ -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"
|
||||
|
||||
|
@ -1,9 +1,6 @@
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "forwardable"
|
||||
require "uri"
|
||||
|
||||
module RuboCop
|
||||
module Cop
|
||||
module Cask
|
||||
|
Loading…
x
Reference in New Issue
Block a user