You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I asked a dev for his custom ruleset (phpcs.xml) and when I wanted to try it I got this generic error in VS Code.
After following the README instructions I found this output.
$ phpcs --report=json
EEEEEEEEEEEEEEEEEEE.E.EEE
Fatal error: Uncaught TypeError: vsprintf(): Argument #2 ($values) must be of type array, string given in C:\Users\[...]\AppData\Roaming\Composer\vendor\squizlabs\php_codesniffer\src\Files\File.php on line 1056
I tried running the command a second time and got this:
Large JSON output here
$ phpcs --report=json
phpcs --report=json
EEEEEEEEEEEEEEEEEEE.E.EEEEEEEEEEEEEEEEE.EE.EEEEEEEEEEEEEEEEE 60 / 67 (90%)
EEEEEEE 67 / 67 (100%)
{
"totals": { "errors": 98, "warnings": 5, "fixable": 63 },
"files": {
"slim-seo.php": {
"errors": 2,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "Missing @package tag in file comment",
"source": "Squiz.Commenting.FileComment.MissingPackageTag",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 11,
"column": 2
}
]
},
"src\\Activator.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\AutoRedirection.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Breadcrumbs.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Code.php": {
"errors": 2,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$code'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 29,
"column": 14
}
]
},
"src\\Deactivator.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Feed.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\ImagesAlt.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Integrations\\AMP.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Integrations\\BeaverBuilder.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Integrations\\Elementor.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Integrations\\Genesis.php": {
"errors": 2,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "Missing short description in doc comment",
"source": "Generic.Commenting.DocComment.MissingShort",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 9,
"column": 5
}
]
},
"src\\Integrations\\Jetpack.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Integrations\\LifterLMS.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Integrations\\Oxygen.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Integrations\\Polylang.php": {
"errors": 5,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$code'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 19,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'get_permalink'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 20,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$code'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 30,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'get_term_link'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 31,
"column": 17
}
]
},
"src\\Integrations\\WebStories.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Integrations\\WooCommerce.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Integrations\\WPML.php": {
"errors": 5,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$language'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 25,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$url'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 26,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$language'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 42,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$url'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 43,
"column": 17
}
]
},
"src\\MetaTags\\AdminColumns\\Base.php": {
"errors": 0,
"warnings": 0,
"messages": []
},
"src\\MetaTags\\AdminColumns\\Post.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\MetaTags\\AdminColumns\\Term.php": {
"errors": 0,
"warnings": 0,
"messages": []
},
"src\\MetaTags\\CanonicalUrl.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\MetaTags\\Context.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\MetaTags\\Description.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\MetaTags\\Helper.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\MetaTags\\Image.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\MetaTags\\OpenGraph.php": {
"errors": 3,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.",
"source": "WordPress.DateTime.RestrictedFunctions.date_date",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 125,
"column": 32
},
{
"message": "date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.",
"source": "WordPress.DateTime.RestrictedFunctions.date_date",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 129,
"column": 32
}
]
},
"src\\MetaTags\\RelLinks.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\MetaTags\\Robots.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\MetaTags\\Settings\\Base.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\MetaTags\\Settings\\Post.php": {
"errors": 1,
"warnings": 1,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "Found: ==. Use strict comparisons (=== or !==).",
"source": "WordPress.PHP.StrictComparisons.LooseComparison",
"severity": 5,
"fixable": false,
"type": "WARNING",
"line": 14,
"column": 87
}
]
},
"src\\MetaTags\\Settings\\Term.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\MetaTags\\Title.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\MetaTags\\TwitterCards.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Migration\\AIOSEO.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Migration\\Helper.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Migration\\Migration.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Migration\\RankMath.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Migration\\RankMathManager.php": {
"errors": 0,
"warnings": 0,
"messages": []
},
"src\\Migration\\Replacer.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Migration\\ReplacerFactory.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Migration\\SEOFramework.php": {
"errors": 0,
"warnings": 0,
"messages": []
},
"src\\Migration\\SEOPress.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Migration\\Yoast.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Notification.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Plugin.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Schema\\Manager.php": {
"errors": 1,
"warnings": 1,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "json_encode() is discouraged. Use wp_json_encode() instead.",
"source": "WordPress.WP.AlternativeFunctions.json_encode_json_encode",
"severity": 5,
"fixable": false,
"type": "WARNING",
"line": 43,
"column": 53
}
]
},
"src\\Schema\\Types\\Article.php": {
"errors": 3,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.",
"source": "WordPress.DateTime.RestrictedFunctions.date_date",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 12,
"column": 32
},
{
"message": "date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.",
"source": "WordPress.DateTime.RestrictedFunctions.date_date",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 13,
"column": 32
}
]
},
"src\\Schema\\Types\\Base.php": {
"errors": 2,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "Visibility must be declared on method \"generate\"",
"source": "Squiz.Scope.MethodScope.Missing",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 64,
"column": 14
}
]
},
"src\\Schema\\Types\\Breadcrumbs.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Schema\\Types\\ImageObject.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Schema\\Types\\Organization.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Schema\\Types\\Person.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Schema\\Types\\SearchAction.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Schema\\Types\\WebPage.php": {
"errors": 3,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.",
"source": "WordPress.DateTime.RestrictedFunctions.date_date",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 31,
"column": 40
},
{
"message": "date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.",
"source": "WordPress.DateTime.RestrictedFunctions.date_date",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 32,
"column": 40
}
]
},
"src\\Schema\\Types\\Website.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Settings\\sections\\code.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Settings\\sections\\general.php": {
"errors": 14,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 7,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 14,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 21,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 28,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 35,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 42,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 49,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 56,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 63,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 70,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 77,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 84,
"column": 17
},
{
"message": "All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.",
"source": "WordPress.Security.EscapeOutput.OutputNotEscaped",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 91,
"column": 17
}
]
},
"src\\Settings\\sections\\homepage.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Settings\\sections\\social.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Settings\\sections\\tools.php": {
"errors": 3,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: \"$platforms\".",
"source": "WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 2,
"column": 1
},
{
"message": "Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: \"$platform\".",
"source": "WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 16,
"column": 50
}
]
},
"src\\Settings\\Settings.php": {
"errors": 2,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "Resource version not set in call to wp_enqueue_style(). This means new versions of the style will not always be loaded due to browser caching.",
"source": "WordPress.WP.EnqueuedResourceParameters.MissingVersion",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 56,
"column": 9
}
]
},
"src\\Sitemaps\\Index.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Sitemaps\\Manager.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
},
"src\\Sitemaps\\PostType.php": {
"errors": 2,
"warnings": 3,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
},
{
"message": "Detected high pagination limit, `posts_per_page` is set to `2000`",
"source": "WordPress.WP.PostsPerPage.posts_per_page_posts_per_page",
"severity": 5,
"fixable": false,
"type": "WARNING",
"line": 28,
"column": 38
},
{
"message": "date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.",
"source": "WordPress.DateTime.RestrictedFunctions.date_date",
"severity": 5,
"fixable": false,
"type": "ERROR",
"line": 52,
"column": 45
},
{
"message": "parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.",
"source": "WordPress.WP.AlternativeFunctions.parse_url_parse_url",
"severity": 5,
"fixable": false,
"type": "WARNING",
"line": 181,
"column": 14
},
{
"message": "parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.",
"source": "WordPress.WP.AlternativeFunctions.parse_url_parse_url",
"severity": 5,
"fixable": false,
"type": "WARNING",
"line": 185,
"column": 22
}
]
},
"src\\Sitemaps\\Taxonomy.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "End of line character is invalid; expected \"\\n\" but found \"\\r\\n\"",
"source": "Generic.Files.LineEndings.InvalidEOLChar",
"severity": 5,
"fixable": true,
"type": "ERROR",
"line": 1,
"column": 1
}
]
}
}
}
The text was updated successfully, but these errors were encountered:
I asked a dev for his custom ruleset (
phpcs.xml
) and when I wanted to try it I got this generic error in VS Code.After following the README instructions I found this output.
I tried running the command a second time and got this:
Large JSON output here
The text was updated successfully, but these errors were encountered: