After installing rubocop, configure the ruby-related configuration for atom-beautify as follows:
After saving the code, the error is reported as follows:
Could not find proper version of rubocop (0.41.2) in any of the sources
Workaround:
Setting => Executables => Rubocop
will be /Users/XXX/.rvm/gems/ruby-xxx/bin/rubocop
replaced with /Users/XXX/.rvm/gems/ruby-xxx/wrappers/rubocop
OK.