Appease RuboCop

This commit is contained in:
Issy Long 2024-03-17 20:28:54 +00:00
parent 769547e7e3
commit bbf5825d54
No known key found for this signature in database

View File

@ -7,11 +7,16 @@ require_relative "../../../utils/tty"
module Tapioca module Tapioca
module Compilers module Compilers
class Tty < Tapioca::Dsl::Compiler class Tty < Tapioca::Dsl::Compiler
# FIXME: Enable cop again when https://github.com/sorbet/sorbet/issues/3532 is fixed.
# rubocop:disable Style/MutableConstant
# This should be a module whose singleton class contains RuboCop::AST::NodePattern::Macros,
# but I don't know how to express that in Sorbet.
ConstantType = type_member { { fixed: Module } } ConstantType = type_member { { fixed: Module } }
# rubocop:enable Style/MutableConstant
sig { override.returns(T::Enumerable[Module]) } sig { override.returns(T::Enumerable[Module]) }
def self.gather_constants def self.gather_constants
[::Tty] [::Tty]
end end
sig { override.void } sig { override.void }