Fix Rubocop 0.78.0 failures.
This commit is contained in:
parent
91680f337f
commit
76711e3222
@ -79,7 +79,7 @@ Metrics/PerceivedComplexity:
|
||||
Enabled: false
|
||||
|
||||
# GitHub diff UI wraps beyond 118 characters (so that's the goal)
|
||||
Metrics/LineLength:
|
||||
Layout/LineLength:
|
||||
Max: 170
|
||||
# ignore manpage comments and long single-line strings
|
||||
IgnoredPatterns: ['#: ', ' url "', ' mirror "', ' plist_options :']
|
||||
|
||||
@ -33,7 +33,7 @@ Layout/FirstHashElementIndentation:
|
||||
EnforcedStyle: align_braces
|
||||
|
||||
# Casks often contain long URLs and file paths.
|
||||
Metrics/LineLength:
|
||||
Layout/LineLength:
|
||||
Enabled: false
|
||||
|
||||
# Casks don't need documentation.
|
||||
|
||||
@ -62,7 +62,7 @@ Metrics/PerceivedComplexity:
|
||||
Max: 100
|
||||
|
||||
# GitHub diff UI wraps beyond 118 characters
|
||||
Metrics/LineLength:
|
||||
Layout/LineLength:
|
||||
Max: 118
|
||||
# ignore manpage comments
|
||||
IgnoredPatterns: ['#: ']
|
||||
|
||||
@ -5,7 +5,7 @@ require "erb"
|
||||
require "ostruct"
|
||||
require "cli/parser"
|
||||
# Require all commands
|
||||
Dir.glob("#{HOMEBREW_LIBRARY_PATH}/{dev-,}cmd/*.rb").each { |cmd| require cmd }
|
||||
Dir.glob("#{HOMEBREW_LIBRARY_PATH}/{dev-,}cmd/*.rb").sort.each { |cmd| require cmd }
|
||||
|
||||
module Homebrew
|
||||
module_function
|
||||
|
||||
@ -88,9 +88,9 @@ describe RuboCop::Cop::FormulaAudit::Patches do
|
||||
line: 5,
|
||||
column: 5,
|
||||
source: source }]
|
||||
# rubocop:disable Metrics/LineLength
|
||||
# rubocop:disable Layout/LineLength
|
||||
elsif patch_url.match?(%r{https?://patch-diff\.githubusercontent\.com/raw/(.+)/(.+)/pull/(.+)\.(?:diff|patch)})
|
||||
# rubocop:enable Metrics/LineLength
|
||||
# rubocop:enable Layout/LineLength
|
||||
[{ message:
|
||||
<<~EOS,
|
||||
use GitHub pull request URLs:
|
||||
@ -225,9 +225,9 @@ describe RuboCop::Cop::FormulaAudit::Patches do
|
||||
line: 5,
|
||||
column: 9,
|
||||
source: source }]
|
||||
# rubocop:disable Metrics/LineLength
|
||||
# rubocop:disable Layout/LineLength
|
||||
elsif patch_url.match?(%r{https?://patch-diff\.githubusercontent\.com/raw/(.+)/(.+)/pull/(.+)\.(?:diff|patch)})
|
||||
# rubocop:enable Metrics/LineLength
|
||||
# rubocop:enable Layout/LineLength
|
||||
[{ message:
|
||||
<<~EOS,
|
||||
use GitHub pull request URLs:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user