Skip to content

Ruleset not registering with PHP_CodeSniffer #84

@threadi

Description

@threadi

Fresh project with fresh composer.json. Using

composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer require --dev phpcompatibility/phpcompatibility-wp:"^2.1"

installs the packages. But then

vendor/bin/phpcs -i

does only show:

The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz and Zend

Resulting composer.json:

{
    "name": "web1/test",
    "minimum-stability": "stable",
    "config": {
        "allow-plugins": {
            "dealerdirect/phpcodesniffer-composer-installer": true
        }
    },
    "require-dev": {
        "phpcompatibility/phpcompatibility-wp": "^2.1"
    }
}

What does I miss?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions