Ruby

Ruby

Made by DeepSource

Space found between receiver name and opening brackets RB-C1013

Anti-pattern
Minor
Autofix

When accessing elements from arrays or hashes, do not put spaces between the receiver name and the opeining brackets as it can make the code ambigous to read.

Bad practice

collection [index_or_key]

Recommended

collection[index_or_key]