Fix Rubocop 0.78.0 failures.

This commit is contained in:
Mike McQuaid 2019-12-19 12:01:51 +00:00
parent 91680f337f
commit 76711e3222
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
5 changed files with 8 additions and 8 deletions

View File

@ -79,7 +79,7 @@ Metrics/PerceivedComplexity:
Enabled: false Enabled: false
# GitHub diff UI wraps beyond 118 characters (so that's the goal) # GitHub diff UI wraps beyond 118 characters (so that's the goal)
Metrics/LineLength: Layout/LineLength:
Max: 170 Max: 170
# ignore manpage comments and long single-line strings # ignore manpage comments and long single-line strings
IgnoredPatterns: ['#: ', ' url "', ' mirror "', ' plist_options :'] IgnoredPatterns: ['#: ', ' url "', ' mirror "', ' plist_options :']

View File

@ -33,7 +33,7 @@ Layout/FirstHashElementIndentation:
EnforcedStyle: align_braces EnforcedStyle: align_braces
# Casks often contain long URLs and file paths. # Casks often contain long URLs and file paths.
Metrics/LineLength: Layout/LineLength:
Enabled: false Enabled: false
# Casks don't need documentation. # Casks don't need documentation.

View File

@ -62,7 +62,7 @@ Metrics/PerceivedComplexity:
Max: 100 Max: 100
# GitHub diff UI wraps beyond 118 characters # GitHub diff UI wraps beyond 118 characters
Metrics/LineLength: Layout/LineLength:
Max: 118 Max: 118
# ignore manpage comments # ignore manpage comments
IgnoredPatterns: ['#: '] IgnoredPatterns: ['#: ']

View File

@ -5,7 +5,7 @@ require "erb"
require "ostruct" require "ostruct"
require "cli/parser" require "cli/parser"
# Require all commands # 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 Homebrew
module_function module_function

View File

@ -88,9 +88,9 @@ describe RuboCop::Cop::FormulaAudit::Patches do
line: 5, line: 5,
column: 5, column: 5,
source: source }] source: source }]
# rubocop:disable Metrics/LineLength # rubocop:disable Layout/LineLength
elsif patch_url.match?(%r{https?://patch-diff\.githubusercontent\.com/raw/(.+)/(.+)/pull/(.+)\.(?:diff|patch)}) elsif patch_url.match?(%r{https?://patch-diff\.githubusercontent\.com/raw/(.+)/(.+)/pull/(.+)\.(?:diff|patch)})
# rubocop:enable Metrics/LineLength # rubocop:enable Layout/LineLength
[{ message: [{ message:
<<~EOS, <<~EOS,
use GitHub pull request URLs: use GitHub pull request URLs:
@ -225,9 +225,9 @@ describe RuboCop::Cop::FormulaAudit::Patches do
line: 5, line: 5,
column: 9, column: 9,
source: source }] source: source }]
# rubocop:disable Metrics/LineLength # rubocop:disable Layout/LineLength
elsif patch_url.match?(%r{https?://patch-diff\.githubusercontent\.com/raw/(.+)/(.+)/pull/(.+)\.(?:diff|patch)}) elsif patch_url.match?(%r{https?://patch-diff\.githubusercontent\.com/raw/(.+)/(.+)/pull/(.+)\.(?:diff|patch)})
# rubocop:enable Metrics/LineLength # rubocop:enable Layout/LineLength
[{ message: [{ message:
<<~EOS, <<~EOS,
use GitHub pull request URLs: use GitHub pull request URLs: