Functionality
Run linters for perl, php, python and/or ruby in your containers.
Installation
- Install the linter you want in your development environment.
- Install docker-linter in VS Code with the "Install Extension" command.
- Enable the linter of your choise in your workspace settings.
Perl
For a more comprehensive example, follow the link: https://github.com/henriiik/vscode-docker-linter/tree/master/playground-perl
perl -c quickstart:
- Set
docker-linter.perl.enable to true in your workspace settings.
- Set
docker-linter.perl.container to the name the container with your perl environment.
perlcritic quickstart:
- Install
perlcritic in your perl-environment container (cpanm Perl::Critic).
- Set
docker-linter.perlcritic.enable to true in your workspace settings.
- Set
docker-linter.perlcritic.container to the name the container with your perl environment.
PHP
For a more comprehensive example, follow the link: https://github.com/henriiik/vscode-docker-linter/tree/master/playground-php
php -l quickstart:
- Set
docker-linter.php.enable to true in your workspace settings.
- Set
docker-linter.php.container to the name the container with your php environment.
Python
For a more comprehensive example, follow the link: https://github.com/henriiik/vscode-docker-linter/tree/master/playground-python
flake8 quickstart:
- Install
flake8 in your python-environment container (pip install flake8).
- Set
docker-linter.flake8.enable to true in your workspace settings.
- Set
docker-linter.flake8.container to the name the container with your python environment.
Ruby
For a more comprehensive example, follow the link: https://github.com/henriiik/vscode-docker-linter/tree/master/playground-ruby
rubocop quickstart:
- Install
rubocop in your ruby-environment container (gem install rubocop).
- Set
docker-linter.rubocop.enable to true in your workspace settings.
- Set
docker-linter.rubocop.container to the name the container with your ruby environment.
docker-machine
The extension assumes you are running your containers with the Docker Toolbox default setup.
If you have use another name for your docker-machine you can use the setting docker-linter.**linter**.machine to specify that name.
Or, if you dont use docker-machine at all, you can specify an empty string.