Skip to content
Snippets Groups Projects
Unverified Commit 76711e32 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

Fix Rubocop 0.78.0 failures.

parent 91680f33
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment