mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
style: clarify GitHub .git error message
This commit is contained in:
parent
e76cea16b1
commit
5157c08327
@ -64,7 +64,7 @@ module RuboCop
|
|||||||
|
|
||||||
when %r{^https://github.com.*\.git}
|
when %r{^https://github.com.*\.git}
|
||||||
offending_node(parameters(homepage_node).first)
|
offending_node(parameters(homepage_node).first)
|
||||||
problem "GitHub URLs (`#{homepage}`) should not end with .git"
|
problem "GitHub homepages (`#{homepage}`) should not end with .git"
|
||||||
|
|
||||||
# There's an auto-redirect here, but this mistake is incredibly common too.
|
# There's an auto-redirect here, but this mistake is incredibly common too.
|
||||||
# Only applies to the homepage and subdomains for now, not the FTP URLs.
|
# Only applies to the homepage and subdomains for now, not the FTP URLs.
|
||||||
|
@ -104,7 +104,7 @@ describe RuboCop::Cop::FormulaAudit::Homepage do
|
|||||||
column: 2,
|
column: 2,
|
||||||
source: source }]
|
source: source }]
|
||||||
elsif homepage.match?("https://github.com/foo/bar.git")
|
elsif homepage.match?("https://github.com/foo/bar.git")
|
||||||
expected_offenses = [{ message: "GitHub URLs (`#{homepage}`) should not end with .git",
|
expected_offenses = [{ message: "GitHub homepages (`#{homepage}`) should not end with .git",
|
||||||
severity: :convention,
|
severity: :convention,
|
||||||
line: 2,
|
line: 2,
|
||||||
column: 11,
|
column: 11,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user