Skip to content

WIP: Add custom cop for ArrayLiteralDelimiter

Robert Speicher requested to merge rs-array-literal-delimiter-cop into master

Proof-of-concept for a custom cop that enforces using square brackets for %w-style arrays.

It even auto-corrects! Waiting to hear back on https://github.com/bbatsov/rubocop/issues/3176 before we decide how we want to test these custom cops.

cc @grzesiek

Merge request reports