formula_desc_cop desclength: make non-strict

This commit is contained in:
commitay 2018-04-25 07:48:21 +10:00
parent 5195e72242
commit 156451bd4b
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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