-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
86 lines (86 loc) · 2.8 KB
/
Copy pathcomposer.json
File metadata and controls
86 lines (86 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"name": "pekral/phpcs-rules",
"description": "Custom ruleset for PHP_CodeSniffer (PHPCS) with additional rules and configuration, based on Slevomat Coding Standard. Helps to enforce consistent code style and best practices in PHP projects.",
"type": "phpcodesniffer-standard",
"keywords": [
"phpcs",
"php-codesniffer",
"coding-standard",
"code-style",
"code-quality",
"custom-ruleset",
"slevomat",
"php",
"sniffer",
"static-analysis",
"best-practices",
"lint",
"ci",
"psr12",
"ruleset",
"composer-package",
"open-source"
],
"homepage": "https://github.com/pekral/phpcs-rules",
"support": {
"issues": "https://github.com/pekral/phpcs-rules/issues",
"source": "https://github.com/pekral/phpcs-rules",
"docs": "https://github.com/pekral/phpcs-rules#readme"
},
"funding": [
{ "type": "github", "url": "https://github.com/sponsors/pekral" }
],
"license": "MIT",
"authors": [
{
"name": "Petr Král",
"email": "kral.petr.88@gmail.com",
"role": "lead",
"homepage": "https://github.com/pekral"
}
],
"scripts": {
"build": "vendor/bin/cursor-rules install --force --editor=claude && composer fix && composer rector && composer check && composer check-unused-sniffs && composer phpstan && composer test && git gone",
"phpstan": "vendor/bin/phpstan analyse src/ --level=max --memory-limit=1G",
"rector": "rector process src/ tests/ --config=vendor/pekral/rector-rules/rector.php --dry-run",
"check": "vendor/bin/phpcs --standard=ruleset.xml Examples/ src/ tests/",
"check-unused-sniffs": "php build.php build:check-unused-sniffs",
"fix": "rector process src/ tests/ --config=vendor/pekral/rector-rules/rector.php && vendor/bin/phpcbf --standard=ruleset.xml Examples/ src/ tests/",
"test": "vendor/bin/phpunit",
"test:coverage": "vendor/bin/phpunit --coverage-html coverage-report"
},
"require": {
"php": "^8.5",
"dealerdirect/phpcodesniffer-composer-installer": "^1.2.1",
"slevomat/coding-standard": "^8.30.1"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
"symfony/console": "^7.4.1 || ^8.1.1",
"illuminate/collections": "^13.17.0",
"phpunit/phpunit": "^13.2.1",
"mockery/mockery": "^1.6.12",
"pekral/cursor-rules": "dev-master",
"pekral/phpstan-rules": "dev-master",
"pekral/rector-rules": "dev-master"
},
"autoload": {
"psr-4": {
"Pekral\\PhpcsRulesBuild\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Pekral\\PhpcsRulesBuild\\Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true,
"pekral/cursor-rules": true
}
}
}