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:
Issy Long 2023-03-05 16:32:40 +00:00
parent 79db987215
commit f4a0bc7af3
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# typed: strict
module RuboCop::Cop::Cask::OnUrlStanza
requires_ancestor { RuboCop::Cop::Cask::UrlLegacyCommaSeparators }
requires_ancestor { RuboCop::Cop::Cask::Url }
end

View File

@ -8,7 +8,7 @@ module RuboCop
module Cop
module Cask
# This cop checks for version.before_comma and version.after_comma
class UrlLegacyCommaSeparators < Base
class UrlLegacyCommaSeparators < Url
include OnUrlStanza
extend AutoCorrector