From 71402a9a41bc5e8cb1fab652cca6354fc6854f3f Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Wed, 1 Mar 2023 07:39:36 -0800 Subject: [PATCH] Disable false positive violation --- Library/Homebrew/rubocops/shared/desc_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/rubocops/shared/desc_helper.rb b/Library/Homebrew/rubocops/shared/desc_helper.rb index 38462b59e1..215075a1dd 100644 --- a/Library/Homebrew/rubocops/shared/desc_helper.rb +++ b/Library/Homebrew/rubocops/shared/desc_helper.rb @@ -53,7 +53,7 @@ module RuboCop desc_problem "Description shouldn't start with an article." if regex_match_group(desc, /^(the|an?)(?=\s)/i) # Check if invalid lowercase words are at the start of a desc. - if !VALID_LOWERCASE_WORDS.include?(string_content(desc).split.first) && + if !VALID_LOWERCASE_WORDS.include?(string_content(desc).split.first) && # rubocop:disable Style/InverseMethods (false positive) regex_match_group(desc, /^[a-z]/) desc_problem "Description should start with a capital letter." end