Fix cask_help rbi

This commit is contained in:
Douglas Eichelberger 2024-02-04 05:53:24 -08:00
parent b010e397d6
commit c83e0170a9
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@ module RuboCop
module Cask module Cask
# Common functionality for cops checking casks. # Common functionality for cops checking casks.
module CaskHelp module CaskHelp
prepend CommentsHelp prepend CommentsHelp # Update the rbi file if changing this: https://github.com/sorbet/sorbet/issues/259
sig { overridable.params(cask_block: RuboCop::Cask::AST::CaskBlock).void } sig { overridable.params(cask_block: RuboCop::Cask::AST::CaskBlock).void }
def on_cask(cask_block); end def on_cask(cask_block); end

View File

@ -1,6 +1,7 @@
# typed: strict # typed: strict
module RuboCop::Cop::Cask::CaskHelp module RuboCop::Cop::Cask::CaskHelp
# Sorbet doesn't understand `prepend`: https://github.com/sorbet/sorbet/issues/259
include RuboCop::Cop::CommentsHelp
requires_ancestor { RuboCop::Cop::Base } requires_ancestor { RuboCop::Cop::Base }
# requires_ancestor { RuboCop::Cop::CommentsHelp }
end end