From fa80b484f10aaf911c77d5c70bca8075c7913860 Mon Sep 17 00:00:00 2001 From: Jonathan Chang Date: Wed, 5 Aug 2020 20:26:13 +1000 Subject: [PATCH] license: style fixes Co-authored-by: Mike McQuaid --- Library/Homebrew/.rubocop.yml | 4 +--- Library/Homebrew/test/dev-cmd/audit_spec.rb | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml index a7fa94aec1..1259bdd8bc 100644 --- a/Library/Homebrew/.rubocop.yml +++ b/Library/Homebrew/.rubocop.yml @@ -60,9 +60,7 @@ Metrics/MethodLength: Max: 260 Metrics/ModuleLength: Enabled: true - Max: 500 - Exclude: - - 'test/dev-cmd/audit_spec.rb' + Max: 600 Metrics/PerceivedComplexity: Enabled: true Max: 80 diff --git a/Library/Homebrew/test/dev-cmd/audit_spec.rb b/Library/Homebrew/test/dev-cmd/audit_spec.rb index 2852ab515a..e048e664e9 100644 --- a/Library/Homebrew/test/dev-cmd/audit_spec.rb +++ b/Library/Homebrew/test/dev-cmd/audit_spec.rb @@ -174,8 +174,8 @@ module Homebrew expect(fa.problems).to be_empty end - it "checks online and verifies that a standard license id is in the same exempted license group"\ - "as what is indicated on its Github repo" do + it "checks online and verifies that a standard license id is in the same exempted license group" \ + "as what is indicated on its GitHub repo" do fa = formula_auditor "cask", <<~RUBY, spdx_data: spdx_data, online: true, new_formula: true class Cask < Formula url "https://github.com/cask/cask/archive/v0.8.4.tar.gz" @@ -188,8 +188,8 @@ module Homebrew expect(fa.problems).to be_empty end - it "checks online and verifies that a standard license array is in the same exempted license group"\ - "as what is indicated on its Github repo" do + it "checks online and verifies that a standard license array is in the same exempted license group" \ + "as what is indicated on its GitHub repo" do fa = formula_auditor "cask", <<~RUBY, spdx_data: spdx_data, online: true, new_formula: true class Cask < Formula url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"