diff --git a/lib/rubocop/options.rb b/lib/rubocop/options.rb index 2d822683c99..7908fd818d3 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 11a5999a24a..82e1bc9a555 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