Skip to content

Commit

Permalink
Add missing periods on CLI options descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Uaitt committed Apr 23, 2024
1 parent 240a0da commit 9e4bc4a
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 9e4bc4a

Please sign in to comment.