title: Configure CodeSniffer on PhpStorm using Docker
body: <p>I am developing a project using PhpStorm and I am using Php 7.1 with Docker. I would like to integrate PHP code sniffer in PhpStorm.</p>
  
  <p>In PhpStorm I go to <strong>Settings|Languages&amp;Frameworks|PHP|CodeSniffer</strong> and I try to add a new configuration, I provide as <strong>PHP Code Sniffer (phpcs) path</strong> the path of a script with the following content:</p>
  
  <pre><code>#!/usr/bin/env bash
  docker run --rm -ti --volume "$(pwd):/app:rw" -u $(id -u):$(id -g) prooph/php:7.1-cli php vendor/bin/phpcs "$@"
  </code></pre>
  
  <p>which just runs <code>phpcs</code> in my docker container.</p>
  
  <p>When I click on <strong>Validate</strong>, PhpStorm gives me the following message:</p>
  
  <pre><code>The input device is not a TTY
  </code></pre>
  
  <p>The same script works perfectly when it's run from PhpStorm console.</p>
  
  <p>Am I doing something wrong? Or what I am trying to do is just not supported?</p>