-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow CLI args specified in ruleset.xml files to be relative to the ruleset file location #847
Comments
I'm going to use If you'd like to test it out beforehand, you can apply this diff to CodeSniffer.php:
|
Support for T_SPACESHIP operator seems like a feature, not a bugfix. This way it should be 2.6.0 release. |
It's a bug because it wasn't set as an operator and PHPCS didn't properly support PHP7. There is no BC break either. The next release will be 2.5.1, hopefully next week. |
Ok. |
…w relative to the ruleset location (request #847)
Change has been pushed now that 2.5.1 is out. |
👍 Thank you! Sorry, I was hoping to test this out but didn't get a chance. It looks like this will work great though! Really appreciate this. |
Hi, I'm the implementer of the bootstrap file functionality. I discussed a little bit in #793 how we wanted to use it to be able to set some options prior to our running of the sniffs (for example, setting the
$allowedTypes
class member.) Unfortunately, we ran into an issue given the fact that there's no relative way to set thebootstrap
file.We ship our CodeSniffer configuration in its own repository: https://github.com/barracudanetworks/Cuda-PHP-Code-Standards/
We have dozens of repositories that use it (we include it as a submodule, or you can just clone it once and setup your editor to look at the main repository.) The issue is that we need a way to be able to define the
bootstrap
file in theruleset.xml
, but we have no way of knowing the user's system layout (Do you keep your repos in/home/jmaguire/repos
?/Users/jmaguire/repos
?/Users/jmaguire/Repositories
? What did you name theCuda-PHP-Code-Standards
clone?)It'd be great to get support for this.
The text was updated successfully, but these errors were encountered: