-
Notifications
You must be signed in to change notification settings - Fork 13
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
Teach IDEs to look at our vendor PHPCS file for auto linting? #23
Comments
PHPCS working in PHPStorm using Tighten's config from the vendor directory. And now how to configure it… Enable PHPCS
Configure the CodeSniffer Inspection
|
Thanks! I'm starting to think the only good way to handle this in all editors is to either A) publish the configs to the root directory by default or B) symlink them to the root by default, even with that clever PHPStorm fix you have there. One idea is to have Duster publish a PHPCS standard and then "publish" would just output a local file that applies that standard to all of your local directories, so we can still iterate on the PHPCS standard. I dropped PHP-CS-Fixer and Duster's Tlint config is just Tighten's, so that doesn't need to be published at all. I think I'm leaning in that direction right now. |
OK, latest release publishes |
One of the big benefits of going with PHPCS is getting the thing where the IDE reads it and gives you inline linting that matches up with your spec.
But.. we have to figure out how to make the config files available to the IDEs, since they're in the
vendor
folder, not root.I've been trying to avoid a workflow that requires every user to publish config files into their root; is there any other way to do it?
I'd like to solve at least PHPStorm and VS Code, and Sublime would be nice too.
The text was updated successfully, but these errors were encountered: