1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ファイル名だけでPHPの文法チェックをまとめて実行する手抜きシェルスクリプト

Posted at

とりあえずチェックしたいファイルを引数にぶち込んでいけばチェックしてくれるようにした
正直誰得な気もするけど(

verifyPHPSyntax.sh
# !/bin/sh

for x in "$@"
do
    find . -name "$x.php" -exec php -l {} \;
done

配下のPHPファイルを片っ端から文法チェックかけるとか前方一致で引っかかったPHPファイルを片っ端から文法チェックかけるとかでも良いと思ったけどとりあえず1〜2ファイルとかで良かったからこんなんで落ち着いてる

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?