Category Archives: Rubocop

Rubocop error sleuthing

So, let’s say you’re a Ruby coder who uses Rubocop, the static code analyzer that monitors your coding style, and though your program runs fine, “Oh Look!” Rubocop has thrown you an error! And worse, it’s a mysterious error with a cryptic message! And let’s say this happens while you’re off-line and you can’t use… Read More »

things with strings

RuboCop is a Ruby static code analyzer. Out of the box it will enforce many of the guidelines outlined in the community Ruby Style Guide. The above links lead to authoritative sources about Rubocop. I wanted to make a comment about variable types, and one convention Rubocop enforces. This little program shows how loosely variables in… Read More »