-
Notifications
You must be signed in to change notification settings - Fork 185
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
Add linting #12
Comments
I've been using https://github.com/squizlabs/PHP_CodeSniffer at work. Overall very nice, haven't integrated it with a CI solution, however. And since #35 already depends on it this would be a good fit. |
How about using the PHP Mess Detector for additional static code analysis? |
What I desire is a linter, that can be configured through a config file and defaults to some coding best practices, that can be installed with Composer, run in CI and has an editor plugin for VS Code If anyone has experience with one I would welcome a PR |
As far as I am familiar there is no one tool to rule them all. http://phpqatools.org/ is a nice collection of popular tools that are used in CI. Some of them like Code Sniffer and Mess Detector are also often integrated in the editor/IDE. I can imagine that the language server look for the specific configuration files in the project and if found, activate the corresponding linting tool. For example, if there is a |
@kaloyan-raev This issue is not for adding linting to the LS, it is for linting this repository (for PRs etc) 😄 |
OK :) |
This phpcs plugin works just fine https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs |
I don't know what is the best linter for PHP and how to configure it?
Needs to be integrated in CI
The text was updated successfully, but these errors were encountered: