Skip to content

PHPStorm IDE issue with PHP Code Sniffer #428

@news-manishpatel

Description

@news-manishpatel

Description

I am trying to integrate phpcs with my IDE but it rejects the .phpcs.xml file removing the the dot from the beginning fixies it but then it breaks the composer scripts. I updated the compose script to link to the rule set which appears to have fixed it. Wondering if this an issue the the IDE or the plugin configs?

If the former mind helping me understand what I should report to the IDE owner else could we consider a permanent fix please?

I am PHP newbie so go easy on me please.

Compose changes I made:

    ...
    "scripts": {
        "phpcbf": "phpcbf . --standard=./phpcs.xml",
        "phpcs": "phpcs . --standard=./phpcs.xml",
        ...
    }
    ...

IDE config:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions