Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing periods on CLI options descriptions #12863

Merged
merged 1 commit into from Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/rubocop/options.rb
Expand Up @@ -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.'],
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions spec/rubocop/options_spec.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down