rubocops/cask: Appease Sorbet with the correct inheritance
- The `on_url_stanza` method is now used in two cops, `Url` and `UrlLegacyCommaSeparators`. Make the latter inherit from the former to make Sorbet happy. - The style and typecheck checks now pass fine.
This commit is contained in:
parent
79db987215
commit
f4a0bc7af3
@ -1,5 +1,5 @@
|
|||||||
# typed: strict
|
# typed: strict
|
||||||
|
|
||||||
module RuboCop::Cop::Cask::OnUrlStanza
|
module RuboCop::Cop::Cask::OnUrlStanza
|
||||||
requires_ancestor { RuboCop::Cop::Cask::UrlLegacyCommaSeparators }
|
requires_ancestor { RuboCop::Cop::Cask::Url }
|
||||||
end
|
end
|
||||||
|
@ -8,7 +8,7 @@ module RuboCop
|
|||||||
module Cop
|
module Cop
|
||||||
module Cask
|
module Cask
|
||||||
# This cop checks for version.before_comma and version.after_comma
|
# This cop checks for version.before_comma and version.after_comma
|
||||||
class UrlLegacyCommaSeparators < Base
|
class UrlLegacyCommaSeparators < Url
|
||||||
include OnUrlStanza
|
include OnUrlStanza
|
||||||
extend AutoCorrector
|
extend AutoCorrector
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user