From e76b57d31fd1c234bb8bc299ada1707b8dd3b33f Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 21 May 2024 23:33:50 +0000 Subject: [PATCH] docs: updates from Homebrew/brew --- docs/RuboCop/Cop/DescHelper.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/RuboCop/Cop/DescHelper.html b/docs/RuboCop/Cop/DescHelper.html index 9dde6451a..91a4d664a 100644 --- a/docs/RuboCop/Cop/DescHelper.html +++ b/docs/RuboCop/Cop/DescHelper.html @@ -396,7 +396,7 @@

if type == :cask && (match = regex_match_group(desc, /\b(macOS|Mac( ?OS( ?X)?)?|OS ?X)(?! virtual machines?)\b/i)) && match[1] != "MAC" - desc_problem "Description shouldn't contain the platform." + add_offense(@offensive_source_range, message: "Description shouldn't contain the platform.") end # Check if a full stop is used at the end of a desc (apart from in the case of "etc."). @@ -476,7 +476,9 @@

111 112 113 -114 +114 +115 +116
# File 'rubocops/shared/desc_helper.rb', line 86
@@ -507,6 +509,8 @@ 

correction.gsub!(/\s+$/, "") correction.gsub!(/\.$/, "") + next if correction == match_data[:correction] + corrector.replace(@offensive_node.source_range, "#{quote}#{correction}#{quote}") end end