DEVSENSE / phptools-docs

PHP Tools public content
Apache License 2.0
82 stars 10 forks source link

VSC[REQ]: Have linting for WordPress/Any PHPCS coding standard #9

Open swashata opened 6 years ago

swashata commented 6 years ago

As per #8 please consider following when implementing linting system.

I think the 2nd approach would attract a broader userbase.

Mordef commented 5 years ago

Allready posted this on old marketplace side. U can use this https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer It supports PSR-2. I hope soon PHP-Tools can replace that extension. Warnings allready disabled in PHP-Tools

jakubmisek commented 5 years ago

Update: phptools have its own "linting" (for performance reasons and also there is better code flow analysis). Anyways; there are a lot of rules missing and we are working on them.

It is a good idea to support phpcs configuration file tho 👍

I hope junstyle.php-cs-fixer works fine for now, similar feature is also planned to be provided as a simple in-code suggestion.

Morgy93 commented 11 months ago

Any news regarding support for phpcs config files?

jakubmisek commented 11 months ago

As I'm looking into the phpcs documentation and source code - I don't think phpcs config would be 100% "compatible".

Our diagnostics are implemented in a very different way - in order to run continuously and efficiently - they're not implemented in PHP, and they're built on top of semantic trees ... (so we can't run custom phpcs rules)

We might adjust the naming convention of our rules to match the standard phpcs rules - so, at least, it would be possible to enable/disable those rules based on phpcs.*.xml configuration.