Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
77 lines (77 loc) · 2.57 KB
/
Copy pathcomposer.json
File metadata and controls
77 lines (77 loc) · 2.57 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
{
"name": "phpcpd-next/phpcpd",
"description": "phpcpd-next — Copy/Paste (clone) detector for PHP 8.4+ with Type-1/2/3 detection. The maintained successor to the archived sebastianbergmann/phpcpd.",
"type": "library",
"keywords": [
"phpcpd",
"copy-paste-detector",
"clone-detection",
"duplication",
"code-quality",
"static-analysis",
"ci"
],
"homepage": "https://github.com/phpcpd-next/phpcpd",
"license": "MIT",
"authors": [
{
"name": "Luciano Federico Pereira",
"role": "Author and maintainer"
}
],
"support": {
"issues": "https://github.com/phpcpd-next/phpcpd/issues",
"source": "https://github.com/phpcpd-next/phpcpd"
},
"config": {
"platform": {
"php": "8.4.1"
},
"optimize-autoloader": true,
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.4",
"ext-dom": "*",
"ext-mbstring": "*"
},
"autoload": {
"psr-4": {
"LucianoPereira\\PhpcpdNext\\": ["src/", "src/CLI/", "src/Exceptions/"],
"LucianoPereira\\PhpcpdNext\\PHPUnit\\": "integration/phpunit/src/"
}
},
"autoload-dev": {
"psr-4": {
"LucianoPereira\\PhpcpdNext\\Tests\\": "tests/"
}
},
"bin": [
"phpcpd"
],
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.64",
"phpstan/phpstan": "^2.2",
"phpunit/phpunit": "^11.0 || ^12.0 || ^13.0"
},
"suggest": {
"phpunit/phpunit": "To use the PHPUnit integration (AssertNoDuplication trait / DuplicationConstraint) for duplication-as-a-test"
},
"scripts": {
"lint": "php-cs-fixer fix --dry-run --diff",
"lint:fix": "php-cs-fixer fix",
"analyse": "phpstan analyse --memory-limit=1G",
"analyse:bench": "phpstan analyse -c phpstan-bench.neon --memory-limit=1G",
"test": "phpunit",
"bench:verify": ["@php bench/self-test.php"],
"check": ["@lint", "@analyse", "@analyse:bench", "@test", "@docs:check", "@logs:check", "@locales:check", "@bench:verify"],
"docs:facts": "@php bench/collect-facts.php",
"docs:render": "@php bench/sigil.php",
"docs:check": "@php bench/sigil.php --check",
"logs:check": "@php bench/check-log-equivalence.php",
"locales:check": "@php bench/check-locales.php",
"release": "bash bin/release.sh"
}
}