rubocops/cask: Tweak offense message to read better
This commit is contained in:
parent
2c5165850a
commit
35cd764261
@ -10,7 +10,7 @@ module RuboCop
|
|||||||
|
|
||||||
ON_SYSTEM_METHODS = RuboCop::Cask::Constants::ON_SYSTEM_METHODS
|
ON_SYSTEM_METHODS = RuboCop::Cask::Constants::ON_SYSTEM_METHODS
|
||||||
MESSAGE = <<~EOS
|
MESSAGE = <<~EOS
|
||||||
Do not use top-level `%<stanza>s` stanza as the default, add an `on_{system}` block instead.
|
Do not use a top-level `%<stanza>s` stanza as the default. Add it to an `on_{system}` block instead.
|
||||||
Use `:or_older` or `:or_newer` to specify a range of macOS versions.
|
Use `:or_older` or `:or_newer` to specify a range of macOS versions.
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ describe RuboCop::Cop::Cask::NoOverrides do
|
|||||||
let(:expected_offenses) do
|
let(:expected_offenses) do
|
||||||
[{
|
[{
|
||||||
message: <<~EOS,
|
message: <<~EOS,
|
||||||
Do not use top-level `version` stanza as the default, add an `on_{system}` block instead.
|
Do not use a top-level `version` stanza as the default. Add it to an `on_{system}` block instead.
|
||||||
Use `:or_older` or `:or_newer` to specify a range of macOS versions.
|
Use `:or_older` or `:or_newer` to specify a range of macOS versions.
|
||||||
EOS
|
EOS
|
||||||
severity: :convention,
|
severity: :convention,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user