https://github.com/deepredsky/vim-rubocop
Run rubocop async
https://github.com/deepredsky/vim-rubocop
vim vim-plugin vim-rubocop viml
Last synced: about 1 year ago
JSON representation
Run rubocop async
- Host: GitHub
- URL: https://github.com/deepredsky/vim-rubocop
- Owner: deepredsky
- License: mit
- Created: 2017-04-01T12:45:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-18T10:23:38.000Z (almost 7 years ago)
- Last Synced: 2025-04-11T22:07:06.730Z (about 1 year ago)
- Topics: vim, vim-plugin, vim-rubocop, viml
- Language: Vim script
- Homepage:
- Size: 15.6 KB
- Stars: 8
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vim RuboCop
VIM plugin to run [RuboCop](https://github.com/bbatsov/rubocop) and displays the results in a quickfix window. Most of this is same as [Vim Rubocop](https://github.com/ngmy/vim-rubocop) plugin. I just wanted to add additional features while learning **vimscript**
## Usage
```
:RuboCop " Runs rubocop on the current buffer
:RuboCopAll " Runs rubocop on the whole project
:RuboCopAll --display-cop-names" Run rubocop with custom options
:RuboCopFix " Fix rubocop issues for current file. This will not be async.
```
By default it will look at Gemfile and use `bundle exec rubocop --format emacs`
if rubocop is specified in the Gemfile, otherwise it will fallback to using
`rubocop --format emacs`. This can be overridden
```
let g:rubocop_cmd = "bundle exec rubocop --rails --display-cop-names"
```
NOTE that emacs formatter is required for this plugin to populate quickfix list
## TODO
- [x] Run rubocop on whole project
- [x] Handle bundled rubcop
- [x] Pass custom args to rubocop
- [x] Run rubocop async
- [ ] Support for vim < 8 ( given up on this, sorry :( )