This package is inspired by the way gofmt formats golang code. I wanted something similar for Ruby. This is a simple wrapper around
rubocop which formats the current
.rb file on save.
rubo-format comes with no settings or configuration options. Formatting is applied when the document is saved.
rubocop is installed:
rubocop -vshould output the currently installed version of
rubo-formatis tested with
rubocopversion 0.3 and higher.
rubocop isn't installed, install it using:
gem install rubocop
Then either install
rubo-format using the atom built in package manager or
install it from the command line with
apm install rubo-format
rubo-format does one thing, and one thing well: It optimizes your ruby code on save.
It fixes indentation, code design mistakes and improves code readability thanks to
rubo-format is installed. Pop open a
.rb file, save it and watch
rubo-format take care of the rest.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.