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
# # bad
# url "https://example.com/download/foo.dmg",
# verified: "https://example.com/download"
# verified: "https://example.com/download"
#
#
# # good
# url "https://example.com/download/foo.dmg",
# verified: "example.com/download/"
# verified: "example.com/download/"
#
class Url < Base
extend AutoCorrector

View File

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