Last active
July 23, 2021 14:59
-
-
Save shadyvb/585ff8666f55f206c7fdbd11cee128d5 to your computer and use it in GitHub Desktop.
Fix VSCode PHPCS issue with basepath arg in ruleset files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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