Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-05 03:07:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-05 03:07:09 +0300
commitf50a7f8d970c50026e52c0b5d1c444b365d3b795 (patch)
tree86071eb3685930272e2a8c48a24ac3380af0a10f /rubocop
parent6d10e8955122e96a92bb980c04f1d7b116ed527a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-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