From f96342713b2cf270bfa6038b74a18978f6da4648 Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Sat, 1 Feb 2020 13:17:14 +0100 Subject: [PATCH] rubocop: remove BINARY_URLS_WHITELIST and rust nightly This url is not used anymore, we replaced it with a new stable version of rust. --- Library/Homebrew/rubocops/urls.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Library/Homebrew/rubocops/urls.rb b/Library/Homebrew/rubocops/urls.rb index 7d3392415f..584d014cdd 100644 --- a/Library/Homebrew/rubocops/urls.rb +++ b/Library/Homebrew/rubocops/urls.rb @@ -24,12 +24,6 @@ module RuboCop rust ].freeze - # specific rust-nightly temporarily acceptable until a newer version is released. - # DO NOT RE-ADD A NEWER RUST-NIGHTLY IN FUTURE. - BINARY_URLS_WHITELIST = %w[ - https://static.rust-lang.org/dist/2019-08-24/rust-nightly-x86_64-apple-darwin.tar.xz - ].freeze - def audit_formula(_node, _class_node, _parent_class_node, body_node) urls = find_every_func_call_by_name(body_node, :url) mirrors = find_every_func_call_by_name(body_node, :mirror) @@ -232,7 +226,6 @@ module RuboCop audit_urls(urls, /(darwin|macos|osx)/i) do |_, url| next if url !~ /x86_64/i && url !~ /amd64/i next if BINARY_FORMULA_URLS_WHITELIST.include?(@formula_name) - next if BINARY_URLS_WHITELIST.include?(url) problem "#{url} looks like a binary package, not a source archive; " \ "homebrew/core is source-only."