From 9e4bc4a7284e2082f749e5cddbab652194cdc9b6 Mon Sep 17 00:00:00 2001 From: Lorenzo Zabot Date: Tue, 23 Apr 2024 16:26:56 +0200 Subject: [PATCH] Add missing periods on CLI options descriptions --- lib/rubocop/options.rb | 6 +++--- spec/rubocop/options_spec.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/rubocop/options.rb b/lib/rubocop/options.rb index 2d822683c999..7908fd818d33 100644 --- a/lib/rubocop/options.rb +++ b/lib/rubocop/options.rb @@ -573,7 +573,7 @@ module OptionsHelp 'cops. Only valid for --format junit.'], display_only_fail_level_offenses: ['Only output offense messages at', - 'the specified --fail-level or above'], + 'the specified --fail-level or above.'], display_only_correctable: ['Only output correctable offense messages.'], display_only_safe_correctable: ['Only output safe-correctable offense messages', 'when combined with --display-only-correctable.'], @@ -636,8 +636,8 @@ module OptionsHelp raise_cop_error: ['Raise cop-related errors with cause and location.', 'This is used to prevent cops from failing silently.', 'Default is false.'], - profile: 'Profile rubocop', - memory: 'Profile rubocop memory usage' + profile: 'Profile rubocop.', + memory: 'Profile rubocop memory usage.' }.freeze end # rubocop:enable Metrics/ModuleLength diff --git a/spec/rubocop/options_spec.rb b/spec/rubocop/options_spec.rb index 11a5999a24a5..82e1bc9a5558 100644 --- a/spec/rubocop/options_spec.rb +++ b/spec/rubocop/options_spec.rb @@ -146,7 +146,7 @@ def abs(path) cops. Only valid for --format junit. --display-only-fail-level-offenses Only output offense messages at - the specified --fail-level or above + the specified --fail-level or above. --display-only-correctable Only output correctable offense messages. --display-only-safe-correctable Only output safe-correctable offense messages @@ -213,8 +213,8 @@ def abs(path) expected_help += <<~OUTPUT Profiling Options: - --profile Profile rubocop - --memory Profile rubocop memory usage + --profile Profile rubocop. + --memory Profile rubocop memory usage. OUTPUT end