タイトル通り。
環境
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. が出力される。
所感
- コマンドライン引数と構成ファイルのパスをマージしたいユースケースが思い浮かばない。基本的に構成ファイルで管理して、コマンドはシンプルにしておくべきだろう。