Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shadyvb
Last active July 23, 2021 14:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadyvb/585ff8666f55f206c7fdbd11cee128d5 to your computer and use it in GitHub Desktop.
Save shadyvb/585ff8666f55f206c7fdbd11cee128d5 to your computer and use it in GitHub Desktop.
Fix VSCode PHPCS issue with basepath arg in ruleset files
175,176c175,177
< const fileRealPath = extfs.realpathSync(filePath);
< if (!data.files[fileRealPath]) {
---
> const { files, totals } = data;
>
> if ( !totals.errors && !totals.warnings) {
179c180,184
< ({ messages } = data.files[fileRealPath]);
---
>
> let file;
> for (file of Object.entries(files)) {
> ({ messages } = file[1]);
> };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment