summaryrefslogtreecommitdiff
path: root/rubocop/cop
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-05 00:07:09 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-05 00:07:09 +0000
commitf50a7f8d970c50026e52c0b5d1c444b365d3b795 (patch)
tree86071eb3685930272e2a8c48a24ac3380af0a10f /rubocop/cop
parent6d10e8955122e96a92bb980c04f1d7b116ed527a (diff)
downloadgitlab-ce-f50a7f8d970c50026e52c0b5d1c444b365d3b795.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop/cop')
-rw-r--r--rubocop/cop/graphql/descriptions.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/rubocop/cop/graphql/descriptions.rb b/rubocop/cop/graphql/descriptions.rb
index d49673b29b3..0234ad99521 100644
--- a/rubocop/cop/graphql/descriptions.rb
+++ b/rubocop/cop/graphql/descriptions.rb
@@ -91,10 +91,9 @@ module RuboCop
return unless message
add_offense(node, message: message) do |corrector|
- description = locate_description(node)
next unless description
- corrector.insert_after(before_end_quote(description), '.')
+ corrector.insert_after(before_end_quote(description), '.') if no_period?(description)
end
end