Disable false positive violation

This commit is contained in:
Douglas Eichelberger 2023-03-01 07:39:36 -08:00
parent 985b0c1b2a
commit 71402a9a41

View File

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