LoginSignup
5
2

More than 5 years have passed since last update.

Docker版PHP Code_SnifferをMacで「phpcs」コマンドとして実行する方法

Last updated at Posted at 2018-05-31

Macにて、

/usr/local/bin/phpcs
#!/usr/bin/env bash
docker run --rm -it -v $PWD:/app phpqa/phpcs:3.2.3 "$@"

というファイルを作り、

chmod +x /usr/local/bin/phpcs

/usr/local/binにパスが通っていればphpcsと打つだけで、Dockerイメージ版のPHP Code_SnifferがMacでも実行できる。

関連記事

5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2