diff --git a/Library/Homebrew/rubocops/homepage.rb b/Library/Homebrew/rubocops/homepage.rb index e5f0421a36..0ea79d8e42 100644 --- a/Library/Homebrew/rubocops/homepage.rb +++ b/Library/Homebrew/rubocops/homepage.rb @@ -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. diff --git a/Library/Homebrew/test/rubocops/homepage_spec.rb b/Library/Homebrew/test/rubocops/homepage_spec.rb index 5db2ee7007..fcdc6b9a11 100644 --- a/Library/Homebrew/test/rubocops/homepage_spec.rb +++ b/Library/Homebrew/test/rubocops/homepage_spec.rb @@ -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,