bacoords / block-theme

A starter block theme for modern WordPress developers.
GNU General Public License v3.0
111 stars 17 forks source link

Seeing phpcs: Referenced sniff "PHPCompatibility" does not exist #176

Open aurooba opened 1 year ago

aurooba commented 1 year ago

I cannot get the local version of PHPCS to work unless I delete the phpcs.xml.dist file in tangent, and my editor will constantly show this error:

Screen Shot 2023-04-19 at 9 38 46 PM

I tried a bunch of things but I'm not 100% sure what's going on.

bacoords commented 1 year ago

What version of php are you running it on?

aurooba commented 1 year ago

Tested on PHP 7.4.33 and 8.1.15

bacoords commented 1 year ago

Is this package installed: "phpcompatibility/phpcompatibility-wp": "^2.1.4", and did this post install function run: @phpcs-config-set?

aurooba commented 1 year ago

Image

Yep, it's installed and I tested running the post install function manually as well.

aurooba commented 1 year ago

Let's test in codespaces see what happens