-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
68 lines (68 loc) · 2.45 KB
/
Copy pathcomposer.json
File metadata and controls
68 lines (68 loc) · 2.45 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
{
"name": "starisian-technologies/coding-standards",
"description": "Starisian Technologies organization-wide PHP/WordPress coding standards (PHP_CodeSniffer ruleset + PHPStan baseline + Rector configs + audit scripts).",
"type": "phpcodesniffer-standard",
"license": "proprietary",
"keywords": [
"phpcs",
"phpstan",
"rector",
"wordpress",
"coding-standards",
"starisian"
],
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require": {
"php": ">=8.2",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"phpstan/phpstan": "^1.11",
"squizlabs/php_codesniffer": "^3.10",
"szepeviktor/phpstan-wordpress": "^1.3",
"wp-coding-standards/wpcs": "^3.1"
},
"require-dev": {
"rector/rector": "^1.2"
},
"autoload": {
"psr-4": {
"Starisian\\Standards\\PhpStan\\": "standards/phpstan-rules/"
}
},
"scripts": {
"quality": [
"@phpcs",
"@phpstan",
"@audit"
],
"phpcs": "phpcs --standard=config/phpcs/starisian-strict.xml",
"phpcbf": "phpcbf --standard=config/phpcs/starisian-autofix.xml",
"phpstan": "phpstan analyse --configuration=phpstan.neon --no-progress",
"rector:safe": "rector process scripts standards stubs --config=config/rector/rector-safe.php",
"rector:aggressive": "rector process scripts standards stubs --config=config/rector/rector-aggressive.php --dry-run",
"audit": [
"@audit:isset",
"@audit:select-star",
"@audit:dbdelta",
"@audit:index-files",
"@audit:governed-actions"
],
"audit:isset": "php scripts/audit-no-isset.php",
"audit:select-star": "php scripts/audit-no-select-star.php",
"audit:dbdelta": "php scripts/audit-no-dbdelta.php",
"audit:index-files": "php scripts/audit-required-index-files.php",
"audit:governed-actions": "php scripts/audit-governed-actions.php",
"lint": "phpcs --standard=config/phpcs/starisian-strict.xml",
"lint:fix": "phpcbf --standard=config/phpcs/starisian-autofix.xml",
"analyze": "phpstan analyse --configuration=phpstan.neon --no-progress"
},
"extra": {
"starisian-technologies/coding-standards": {
"consumer-usage": "Consumers extend ruleset.xml and phpstan.neon from this package. See README.md. Strict/autofix rulesets: config/phpcs/. PHPStan WordPress config: config/phpstan/. Rector configs: config/rector/. Audit scripts: scripts/."
}
}
}