{
  "name": "plugin-check/phpcs-sniffs",
  "description": "PHP_CodeSniffer rules (sniffs) for static checks in Plugin Check",
  "license": "GPL-2.0-or-later",
  "type": "phpcodesniffer-standard",
  "keywords": [
    "phpcs",
    "standards",
    "static analysis",
    "plugin-check"
  ],
  "authors": [
    {
      "name": "Contributors",
      "homepage": "https://github.com/WordPress/plugin-check/graphs/contributors"
    }
  ],
  "require": {
    "php": ">=7.4",
    "ext-libxml": "*",
    "ext-tokenizer": "*",
    "ext-xmlreader": "*",
    "phpcsstandards/phpcsutils": "^1.0.8",
    "squizlabs/php_codesniffer": "^3.7.2"
  },
  "require-dev": {
    "php-parallel-lint/php-console-highlighter": "^1.0.0",
    "php-parallel-lint/php-parallel-lint": "^1.3.2",
    "phpcompatibility/php-compatibility": "^9.0",
    "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
    "wp-coding-standards/wpcs": "^3.0"
  },
  "suggest": {
    "ext-mbstring": "For improved results"
  },
  "config": {
    "allow-plugins": {
      "dealerdirect/phpcodesniffer-composer-installer": true
    },
    "platform": {
      "php": "7.4"
    }
  },
  "scripts": {
    "check-all": [
      "@lint",
      "@check-cs",
      "@run-tests"
    ],
    "check-cs": [
      "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs"
    ],
    "fix-cs": [
      "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
    ],
    "lint": [
      "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git"
    ],
    "run-tests": [
      "@php ./vendor/phpunit/phpunit/phpunit --filter PluginCheck ./vendor/squizlabs/php_codesniffer/tests/AllTests.php --no-coverage"
    ]
  },
  "scripts-descriptions": {
    "check-all": "Run all checks (lint, phpcs) and tests.",
    "check-cs": "Run the PHPCS script against the entire codebase.",
    "fix-cs": "Run the PHPCBF script to fix all the autofixable violations on the codebase.",
    "lint": "Lint PHP files against parse errors.",
    "run-tests": "Run all the unit tests for the Plugin Check Coding Standards sniffs."
  }
}
