Last active
April 10, 2018 15:11
-
-
Save thisismydesign/707cb1289543dc994effff3ecc75c6ca to your computer and use it in GitHub Desktop.
RuboCop parallel auto-correct solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ aw rpa | |
# => | |
# [fb34328a] Running rubocop --parallel | |
# [fb34328a] Inspecting 157 files | |
# [fb34328a] ..................................C.......................................................................................................................... | |
# [fb34328a] | |
# [fb34328a] Offenses: | |
# [fb34328a] | |
# [fb34328a] app/app.rb:28:8: C: Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace) | |
# [fb34328a] end | |
# [fb34328a] ^ | |
# [fb34328a] | |
# [fb34328a] 157 files inspected, 1 offense detected | |
# [fb34328a] Finished in 1.718 seconds with exit status 1 (failed) | |
# [abd1d776] Running rubocop --auto-correct app/app.rb | |
# [abd1d776] Inspecting 1 file | |
# [abd1d776] C | |
# [abd1d776] | |
# [abd1d776] Offenses: | |
# [abd1d776] | |
# [abd1d776] app/app.rb:28:8: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace) | |
# [abd1d776] end | |
# [abd1d776] ^ | |
# [abd1d776] | |
# [abd1d776] 1 file inspected, 1 offense detected, 1 offense corrected | |
# [abd1d776] Finished in 1.267 seconds with exit status 0 (successful) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment