Closed david-binda closed 4 years ago
By passing in the file name via --stdin-path argument, we make the <exclude-pattern> and <include-patter> configs in ruleset.xml working properly.
--stdin-path
<exclude-pattern>
<include-patter>
Without passing in the file path, PHPCS does not know with what file it's currently working, so can't properly apply those.
Oh, nice! I was always bothered by that but I didn't know there was a way to avoid it.
By passing in the file name via
--stdin-path
argument, we make the<exclude-pattern>
and<include-patter>
configs in ruleset.xml working properly.Without passing in the file path, PHPCS does not know with what file it's currently working, so can't properly apply those.