Skip to content

Commit 9e4bc4a

Browse files
committed
Add missing periods on CLI options descriptions
1 parent 240a0da commit 9e4bc4a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/rubocop/options.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ module OptionsHelp
573573
'cops. Only valid for --format junit.'],
574574
display_only_fail_level_offenses:
575575
['Only output offense messages at',
576-
'the specified --fail-level or above'],
576+
'the specified --fail-level or above.'],
577577
display_only_correctable: ['Only output correctable offense messages.'],
578578
display_only_safe_correctable: ['Only output safe-correctable offense messages',
579579
'when combined with --display-only-correctable.'],
@@ -636,8 +636,8 @@ module OptionsHelp
636636
raise_cop_error: ['Raise cop-related errors with cause and location.',
637637
'This is used to prevent cops from failing silently.',
638638
'Default is false.'],
639-
profile: 'Profile rubocop',
640-
memory: 'Profile rubocop memory usage'
639+
profile: 'Profile rubocop.',
640+
memory: 'Profile rubocop memory usage.'
641641
}.freeze
642642
end
643643
# rubocop:enable Metrics/ModuleLength

spec/rubocop/options_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def abs(path)
146146
cops. Only valid for --format junit.
147147
--display-only-fail-level-offenses
148148
Only output offense messages at
149-
the specified --fail-level or above
149+
the specified --fail-level or above.
150150
--display-only-correctable Only output correctable offense messages.
151151
--display-only-safe-correctable
152152
Only output safe-correctable offense messages
@@ -213,8 +213,8 @@ def abs(path)
213213
expected_help += <<~OUTPUT
214214
215215
Profiling Options:
216-
--profile Profile rubocop
217-
--memory Profile rubocop memory usage
216+
--profile Profile rubocop.
217+
--memory Profile rubocop memory usage.
218218
OUTPUT
219219
end
220220

0 commit comments

Comments
 (0)