Download the PHP package tarosky/coding-standards without Composer
On this page you can find all versions of the php package tarosky/coding-standards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tarosky/coding-standards
More information about tarosky/coding-standards
Files in tarosky/coding-standards
Package coding-standards
Short Description Tarosky Coding Standards for WordPress projects, using PHP_CodeSniffer ruleset.
License GPL-2.0-or-later
Homepage https://github.com/tarosky/coding-standards
Informations about the package coding-standards
Tarosky Coding Standards
Tarosky coding standards
インストール
Composer でインストールします。
最後に下記のような確認メッセージが表示される場合は、 y
を入力してください。
dealerdirect/phpcodesniffer-composer-installer contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins Do you trust "dealerdirect/phpcodesniffer-composer-installer" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?]
インストールが完了した composer.json
には下記のようになっているはずです。
使い方
コマンドで実行する場合は、以下のようにします。
composer.json
にスクリプトを設定しておくことで、より簡単なコマンドで実行ができます。
下記の例では composer lint
で phpcs を使ったコードチェックを、 composer fix
で phpcbf を使った自動修正を実行できます。
さらに、composer lint
は GitHub Actions 等のCIツールを利用して、コミット時やプルリクエスト時に必ず実行されるようにしておくと、開発チーム全体でコードチェック漏れを防ぐことができます。
All versions of coding-standards with dependencies
sirbrillig/phpcs-variable-analysis Version ^2.11
wp-coding-standards/wpcs Version ^3.1