Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 580 Bytes

Lint-ExtraCharactersInPercentSymbolArray.md

File metadata and controls

28 lines (18 loc) · 580 Bytes

Pattern: Unnecessary : or , in %i

Issue: -

Description

This rule checks for colons and commas in %i, e.g. %i(: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 symbols.

Examples

# bad

%i(:foo, :bar)
# good

%i(foo bar)

Further Reading