codeclimate/codeclimate-rubocop

View on GitHub
config/contents/lint/percent_string_array.md

Summary

Maintainability
Test Coverage
This cop checks for quotes and commas in %w, e.g. `%w('foo', "bar")`

It is more likely that the additional characters are unintended (for
example, mistranslating an array of literals to percent string notation)
rather than meant to be part of the resulting strings.

### Example:

    # bad

    %w('foo', "bar")

### Example:

    # good

    %w(foo bar)