Skip to content

Commit

Permalink
Merge pull request #12863 from Uaitt/cli-options-missing-periods
Browse files Browse the repository at this point in the history
Add missing periods on CLI options descriptions
  • Loading branch information
koic committed Apr 23, 2024
2 parents 240a0da + 9e4bc4a commit 5f4bbaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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

0 comments on commit 5f4bbaa

Please sign in to comment.