From 156451bd4bb7002f11c94e27123dc685cf09d0e4 Mon Sep 17 00:00:00 2001 From: commitay Date: Wed, 25 Apr 2018 07:48:21 +1000 Subject: [PATCH] formula_desc_cop desclength: make non-strict --- Library/Homebrew/rubocops/formula_desc_cop.rb | 4 +++- Library/Homebrew/test/rubocops/formula_desc_cop_spec.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/rubocops/formula_desc_cop.rb b/Library/Homebrew/rubocops/formula_desc_cop.rb index 240a280723..faffd42f6c 100644 --- a/Library/Homebrew/rubocops/formula_desc_cop.rb +++ b/Library/Homebrew/rubocops/formula_desc_cop.rb @@ -3,7 +3,7 @@ require_relative "../extend/string" module RuboCop module Cop - module FormulaAuditStrict + module FormulaAudit # This cop audits `desc` in Formulae # # - Checks for existence of `desc` @@ -33,7 +33,9 @@ module RuboCop "Length is calculated as #{@formula_name} + desc. (currently #{desc_length})" end end + end + module FormulaAuditStrict # This cop audits `desc` in Formulae # # - Checks if `desc` begins with an article diff --git a/Library/Homebrew/test/rubocops/formula_desc_cop_spec.rb b/Library/Homebrew/test/rubocops/formula_desc_cop_spec.rb index aacb52ebb4..20600f071d 100644 --- a/Library/Homebrew/test/rubocops/formula_desc_cop_spec.rb +++ b/Library/Homebrew/test/rubocops/formula_desc_cop_spec.rb @@ -1,6 +1,6 @@ require_relative "../../rubocops/formula_desc_cop" -describe RuboCop::Cop::FormulaAuditStrict::DescLength do +describe RuboCop::Cop::FormulaAudit::DescLength do subject(:cop) { described_class.new } context "When auditing formula desc" do