You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think the issue is that the config value is being overridden. It sounds like @benignant wants to have some files checked as PHP 5.5 and some as PHP 5.2.
This is not possible within a ruleset.xml file. The value you define there is set before the run begins, then that value is used throughout the run.
If you want to apply different values to different files or directories, you'd need to do 2 different runs and so have 2 different rulesets - one for PHP 5.5 and one for 5.2.
Unless PHPCompatibility has a specific feature for this. You could ask over there to be sure, but I don't think a core PHPCS feature is going to help you here.
Got it, thanks. I'm using some editor tooling which automatically runs phpcs with my phpcs.xml file, so this solution won't work for that. But at least this will work with a Composer script.
I'm using PHPCompatibility and I'd like to have different configuration values for different files.
For some files I want the following configuration:
And for other files:
I'd like to do this from my
phpcs.xml
file. Is this possible?The text was updated successfully, but these errors were encountered: