Skip to content

phpcs: The phpcs report contains invalid json. #107

Description

@designermonkey

phpcs: The phpcs report contains invalid json. Please review "Diagnosing Common Errors" in the plugin README

Same problem as #100 but none of the suggestions fix it.

My config:

{
    "phpcs.standard": "./phpcs.xml",
    "phpcs.autoConfigSearch": false
}

My PHP CS Xml:

<?xml version="1.0"?>
<ruleset name="coding standard">
    <description>coding standard</description>

    <!-- display progress -->
    <arg value="p"/>
    <!-- use colors in output -->
    <arg name="colors"/>

    <arg name="report-checkstyle" value="doc/codesniffer.xml"/>
    <arg name="report-full"/>

    <!-- inherit rules from: -->
    <rule ref="PSR2"/>
    <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>

    <rule ref="PSR2">
        <exclude name="Generic.Files.LineLength"/>
    </rule>

    <!-- Paths to check -->
    <file>src</file>
    <file>tests</file>
</ruleset>

I have this config as this is set up as a composer command also.

phpcs version (local and global composer): 3.2.3

Is there any way to see any debug output for this extension? Any suggestions would be appreciated as this is driving me nuts.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions