mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
formula_desc_cop desclength: make non-strict
This commit is contained in:
parent
5195e72242
commit
156451bd4b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user