{
  "name": "wordpress/plugin-check",
  "description": "Plugin Check is a WordPress.org tool which provides checks to help plugins meet the directory requirements and follow various best practices.",
  "license": "GPL-2.0-or-later",
  "type": "wordpress-plugin",
  "require": {
    "php": ">=7.4",
    "ext-json": "*",
    "automattic/vipwpcs": "^3.0.0",
    "composer/installers": "^2.2",
    "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
    "nikic/php-parser": "^4",
    "nyholm/psr7": "^1.8",
    "patrickschur/language-detection": "^5.3",
    "php-http/curl-client": "^2.3",
    "plugin-check/phpcs-sniffs": "@dev",
    "wp-coding-standards/wpcs": "^3.2.0"
  },
  "require-dev": {
    "phpcompatibility/php-compatibility": "dev-develop",
    "phpmd/phpmd": "^2.9",
    "phpstan/extension-installer": "^1.2",
    "phpstan/phpstan": "^1.10",
    "slevomat/coding-standard": "^8.18",
    "szepeviktor/phpstan-wordpress": "^1.1",
    "wp-cli/extension-command": "^2.1",
    "wp-cli/wp-cli": "^2.8",
    "wp-cli/wp-cli-tests": "^5.0.0",
    "wp-cli/language-command": "^2.0",
    "wp-cli/i18n-command": "^2.6",
    "wp-cli/entity-command": "^2.8",
    "wp-phpunit/wp-phpunit": "^6.3",
    "yoast/phpunit-polyfills": "^4.0.0"
  },
  "repositories": [
    {
      "type": "path",
      "url": "./phpcs-sniffs",
      "options": {
        "symlink": false
      }
    }
  ],
  "autoload": {
    "psr-4": {
      "WordPress\\Plugin_Check\\": "includes/"
    }
  },
  "autoload-dev": {
    "psr-4": {
      "WordPress\\Plugin_Check\\Behat_Utils\\": "tests/behat/includes",
      "WordPress\\Plugin_Check\\Test_Data\\": "tests/phpunit/testdata/Checks",
      "WordPress\\Plugin_Check\\Test_Utils\\": "tests/phpunit/utils"
    }
  },
  "config": {
    "allow-plugins": {
      "composer/installers": true,
      "cweagans/composer-patches": false,
      "dealerdirect/phpcodesniffer-composer-installer": true,
      "phpstan/extension-installer": true,
      "php-http/discovery": true
    },
    "platform": {
      "php": "7.4"
    },
    "sort-packages": true,
    "autoloader-suffix": "Plugin_Check_Plugin"
  },
  "scripts": {
    "behat": "BEHAT_FEATURES_FOLDER=tests/behat/features run-behat-tests",
    "behat-rerun": "BEHAT_FEATURES_FOLDER=tests/behat/features rerun-behat-tests",
    "format": "phpcbf --standard=phpcs.xml.dist",
    "lint": "phpcs --standard=phpcs.xml.dist",
    "phpmd": "phpmd . text phpmd.xml",
    "phpstan": "phpstan analyse --memory-limit=2048M",
    "prepare-behat-tests": "install-package-tests",
    "test": "phpunit"
  },
  "scripts-descriptions": {
    "behat": "Run functional tests",
    "behat-rerun": "Re-run failed functional tests",
    "format": "Detect and automatically fix most coding standards issues",
    "lint": "Detect coding standards issues",
    "phpmd": "Run PHP mess detector",
    "phpstan": "Run static analysis",
    "prepare-behat-tests": "Prepare functional tests",
    "test": "Run unit tests"
  }
}