Fix indentation of verified in url stanza examples

This commit is contained in:
Issy Long 2023-04-02 16:38:33 +01:00
parent b586d97f84
commit 17c0eaab25
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4
2 changed files with 10 additions and 10 deletions

View File

@ -9,12 +9,12 @@ module RuboCop
# @example # @example
# # bad # # bad
# url "https://example.com/download/foo.dmg", # url "https://example.com/download/foo.dmg",
# verified: "https://example.com/download" # verified: "https://example.com/download"
# #
# #
# # good # # good
# url "https://example.com/download/foo.dmg", # url "https://example.com/download/foo.dmg",
# verified: "example.com/download/" # verified: "example.com/download/"
# #
class Url < Base class Url < Base
extend AutoCorrector extend AutoCorrector

View File

@ -14,7 +14,7 @@ describe RuboCop::Cop::Cask::Url do
<<~CASK <<~CASK
cask "foo" do cask "foo" do
url "https://example.com/download/foo-v1.2.0.dmg", url "https://example.com/download/foo-v1.2.0.dmg",
verified: "example.com" verified: "example.com"
end end
CASK CASK
end end
@ -27,7 +27,7 @@ describe RuboCop::Cop::Cask::Url do
<<~CASK <<~CASK
cask "foo" do cask "foo" do
url "https://example.com/download/foo-v1.2.0.dmg", url "https://example.com/download/foo-v1.2.0.dmg",
verified: "https://example.com" verified: "https://example.com"
end end
CASK CASK
end end
@ -37,7 +37,7 @@ describe RuboCop::Cop::Cask::Url do
message: "Verified URL parameter value should not start with https:// or http://.", message: "Verified URL parameter value should not start with https:// or http://.",
severity: :convention, severity: :convention,
line: 3, line: 3,
column: 14, column: 16,
source: "\"https://example.com\"", source: "\"https://example.com\"",
}] }]
end end
@ -46,7 +46,7 @@ describe RuboCop::Cop::Cask::Url do
<<~CASK <<~CASK
cask "foo" do cask "foo" do
url "https://example.com/download/foo-v1.2.0.dmg", url "https://example.com/download/foo-v1.2.0.dmg",
verified: "example.com" verified: "example.com"
end end
CASK CASK
end end
@ -60,7 +60,7 @@ describe RuboCop::Cop::Cask::Url do
<<~CASK <<~CASK
cask "foo" do cask "foo" do
url "https://example.com/download/foo-v1.2.0.dmg", url "https://example.com/download/foo-v1.2.0.dmg",
verified: "example.com/download/" verified: "example.com/download/"
end end
CASK CASK
end end
@ -73,7 +73,7 @@ describe RuboCop::Cop::Cask::Url do
<<~CASK <<~CASK
cask "foo" do cask "foo" do
url "https://example.com/download/foo-v1.2.0.dmg", url "https://example.com/download/foo-v1.2.0.dmg",
verified: "example.com/download" verified: "example.com/download"
end end
CASK CASK
end end
@ -83,7 +83,7 @@ describe RuboCop::Cop::Cask::Url do
message: "Verified URL parameter value should end with a /.", message: "Verified URL parameter value should end with a /.",
severity: :convention, severity: :convention,
line: 3, line: 3,
column: 14, column: 16,
source: "\"example.com/download\"", source: "\"example.com/download\"",
}] }]
end end
@ -92,7 +92,7 @@ describe RuboCop::Cop::Cask::Url do
<<~CASK <<~CASK
cask "foo" do cask "foo" do
url "https://example.com/download/foo-v1.2.0.dmg", url "https://example.com/download/foo-v1.2.0.dmg",
verified: "example.com/download/" verified: "example.com/download/"
end end
CASK CASK
end end