P
P
Pavel Vasilinenko2019-10-05 12:59:08
PHP
Pavel Vasilinenko, 2019-10-05 12:59:08

Docker + phpstorm + phpcs setup?

Good afternoon!
Is it possible to set up static code analysis of php_codesniffer in phpstorm if php is in docker? If possible, how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Melodin, 2019-10-05
@melodyn

So after all, codesniffer can be run from the console, it is enough to open the docker console in the same storm and execute the command. You add a docker in the storm settings:
The services tab appears, there you can right-click on the desired container: Exec - Create - /bin/bash and the docker console will open:
5d98b4c7c8254680676686.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question