Ruby code style guide implementation

- https://github.com/bbatsov/ruby-style-guide
- https://github.com/bbatsov/rubocop
This can just be:

```
(0..(sc_location_size - 1)).each do |index|
  @error[:location] << Location.new(sc_location_handler, index)
end
```