This linter plugin for Linter provides an interface to rubocop on docker. It will be used with files that have the “Ruby” syntax.
You must run a container installed rubocop
via docker-compose
because docker-linter-rubocop use docker exec
to run rubocop
.
Linter package must be installed on your docker container in order to use this plugin. If Linter is not installed, please follow the instruction.
docker-compose
installationFollow https://docs.docker.com/engine/installation/.
rubocop
installationBefore using this plugin, you must ensure that rubocop
on your docker container.
$ cd /path/to/your/project
$ touch docker-compose.yml
$ # edit your docker-compose.yml to run ruby
$ docker-compose run ruby bundle init
$ # add `gem 'rubocop'` to your Gemfile
$ docker-compose run ruby bundle init
$ docker-compose run ruby 'sh -c "trap : TERM INT; sleep infinity & wait"' # run your container forever because this package will use `docker exec` to run `rubocop`
apm install docker-linter-rubocop
docker run
if there are no running containerIf you would like to contribute enhancements or fixes, please do the following:
master
.Please note that modifications should follow these coding guidelines:
coffeelint
linter.Thank you for helping out!
This package is started as fork off https://github.com/AtomLinter/linter-rubocop.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.