style: clarify GitHub .git error message

This commit is contained in:
Dustin Rodrigues 2020-08-05 01:00:36 -04:00
parent e76cea16b1
commit 5157c08327
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ module RuboCop
when %r{^https://github.com.*\.git}
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.
# Only applies to the homepage and subdomains for now, not the FTP URLs.

View File

@ -104,7 +104,7 @@ describe RuboCop::Cop::FormulaAudit::Homepage do
column: 2,
source: source }]
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,
line: 2,
column: 11,