composer.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "name": "squizlabs/php_codesniffer",
  3. "description": "PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.",
  4. "license": "BSD-3-Clause",
  5. "type": "library",
  6. "keywords": [
  7. "phpcs",
  8. "standards",
  9. "static analysis"
  10. ],
  11. "authors": [
  12. {
  13. "name": "Greg Sherwood",
  14. "role": "Former lead"
  15. },
  16. {
  17. "name": "Juliette Reinders Folmer",
  18. "role": "Current lead"
  19. },
  20. {
  21. "name": "Contributors",
  22. "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors"
  23. }
  24. ],
  25. "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
  26. "support": {
  27. "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues",
  28. "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki",
  29. "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
  30. "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy"
  31. },
  32. "require": {
  33. "php": ">=7.2.0",
  34. "ext-simplexml": "*",
  35. "ext-tokenizer": "*",
  36. "ext-xmlwriter": "*"
  37. },
  38. "require-dev": {
  39. "phpunit/phpunit": "^8.0 || ^9.3.4 || ^10.5.32 || ^11.3.3"
  40. },
  41. "bin": [
  42. "bin/phpcbf",
  43. "bin/phpcs"
  44. ],
  45. "config": {
  46. "lock": false
  47. },
  48. "extra": {
  49. "branch-alias": {
  50. "dev-master": "3.x-dev"
  51. }
  52. },
  53. "scripts": {
  54. "cs": [
  55. "@php ./bin/phpcs"
  56. ],
  57. "cbf": [
  58. "@php ./bin/phpcbf"
  59. ],
  60. "test": [
  61. "Composer\\Config::disableProcessTimeout",
  62. "@php ./vendor/phpunit/phpunit/phpunit --no-coverage"
  63. ],
  64. "test-lte9": [
  65. "Composer\\Config::disableProcessTimeout",
  66. "@php ./vendor/phpunit/phpunit/phpunit -c phpunit-lte9.xml.dist --no-coverage"
  67. ],
  68. "coverage": [
  69. "Composer\\Config::disableProcessTimeout",
  70. "@php ./vendor/phpunit/phpunit/phpunit -d max_execution_time=0"
  71. ],
  72. "coverage-lte9": [
  73. "Composer\\Config::disableProcessTimeout",
  74. "@php ./vendor/phpunit/phpunit/phpunit -c phpunit-lte9.xml.dist -d max_execution_time=0"
  75. ],
  76. "coverage-local": [
  77. "Composer\\Config::disableProcessTimeout",
  78. "@php ./vendor/phpunit/phpunit/phpunit --coverage-html ./build/coverage-html -d max_execution_time=0"
  79. ],
  80. "coverage-lte9-local": [
  81. "Composer\\Config::disableProcessTimeout",
  82. "@php ./vendor/phpunit/phpunit/phpunit -c phpunit-lte9.xml.dist --coverage-html ./build/coverage-html -d max_execution_time=0"
  83. ],
  84. "build": [
  85. "Composer\\Config::disableProcessTimeout",
  86. "@php -d phar.readonly=0 -f ./scripts/build-phar.php"
  87. ],
  88. "check-all": [
  89. "@cs",
  90. "@test"
  91. ]
  92. },
  93. "scripts-descriptions": {
  94. "cs": "Check for code style violations.",
  95. "cbf": "Fix code style violations.",
  96. "test": "PHPUnit 10+: Run the unit tests without code coverage.",
  97. "test-lte9": "PHPUnit <= 9: Run the unit tests without code coverage.",
  98. "coverage": "PHPUnit 10+: Run the unit tests with code coverage.",
  99. "coverage-lte9": "PHPUnit <= 9: Run the unit tests with code coverage.",
  100. "coverage-local": "PHPUnit 10+: Run the unit tests with code coverage and generate an HTML report in a 'build' directory.",
  101. "coverage-lte9-local": "PHPUnit <= 9: Run the unit tests with code coverage and generate an HTML report in a 'build' directory.",
  102. "build": "Create PHAR files for PHPCS and PHPCBF.",
  103. "check-all": "Run all checks (phpcs, tests)."
  104. }
  105. }