You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when removing the hyphen, rubocop does report a syntax offense.
Offenses:
lib/bolt/bolt_option_parser.rb:23:32: C: Style/WordArray: Use %w or %W for an array of words.
{ flags: ACTION_OPTS + ['noop', 'execute', 'compileconcurrency'],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuboCop version
0.71.0
The text was updated successfully, but these errors were encountered:
Expected behavior
Word arrays with string literals are reported as offenses and rubocop suggests using
%w
or%W
instead.Actual behavior
Word arrays with string literals are not reported as offenses if any of the strings contain a hyphen.
Steps to reproduce the problem
With this word array, rubocop does not report any offenses.
But when removing the hyphen, rubocop does report a syntax offense.
RuboCop version
0.71.0
The text was updated successfully, but these errors were encountered: