LoginSignup
1
0

More than 3 years have passed since last update.

PHP-CS-FIXERでコマンドライン引数でパスを指定すると構成ファイルのパスが無視される

Posted at

タイトル通り。

環境

PHP-CS-FIXER: 2.18

内容

By default --path-mode is set to override, which means, that if you specify the path to a file or a directory via command arguments, then the paths provided to a Finder in config file will be ignored. You can use --path-mode=intersection to merge paths from the config file and from the argument:

PHP-CS-FIXERでコマンドライン引数でパスを指定すると構成ファイルのパスが無視される。

ちなみに、オーバーライドする状態で実行すると、 Paths from configuration file have been overridden by paths provided as command arguments. が出力される。

所感

  • コマンドライン引数と構成ファイルのパスをマージしたいユースケースが思い浮かばない。基本的に構成ファイルで管理して、コマンドはシンプルにしておくべきだろう。

参考

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