We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f30e99f commit 4b6a8d8Copy full SHA for 4b6a8d8
lib/tapioca/dsl/compilers/rubocop.rb
@@ -14,9 +14,12 @@ module Compilers
14
class RuboCop < Compiler
15
ConstantType = type_member { { fixed: T.all(T.class_of(::RuboCop::Cop::Base), Extensions::RuboCop) } }
16
17
- sig { override.returns(T::Enumerable[Class]) }
18
- def self.gather_constants
19
- descendants_of(::RuboCop::Cop::Base).select { |constant| name_of(constant) }
+ class << self
+ extend T::Sig
+ sig { override.returns(T::Enumerable[Class]) }
20
+ def gather_constants
21
+ descendants_of(::RuboCop::Cop::Base).select { |constant| name_of(constant) }
22
+ end
23
end
24
25
sig { override.void }
0 commit comments