-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevkit.php
More file actions
71 lines (60 loc) · 2.93 KB
/
devkit.php
File metadata and controls
71 lines (60 loc) · 2.93 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
<?php
declare(strict_types=1);
/**
* KaririCode Devkit — Project Overrides
*
* This file customizes the devkit behavior for this project.
* Only uncomment the keys you need to change — unset keys use
* auto-detected values from composer.json + KaririCode defaults.
*
* Merge semantics:
* - cs_fixer_rules → MERGED with KaririCode defaults (your rules win on conflict)
* - rector_sets → REPLACES KaririCode defaults entirely
* - All others → REPLACES the auto-detected value
*
* After editing, run: kcode init
*
* @see https://github.com/kariricode/devkit
*/
return [
// ── Project Identity ──────────────────────────────────────
// 'project_name' => 'kariricode/my-component',
// 'namespace' => 'KaririCode\\MyComponent',
// ── PHP Version ───────────────────────────────────────────
// 'php_version' => '8.4',
// ── Static Analysis ───────────────────────────────────────
// 'phpstan_level' => 9, // 0–9 (default: 9)
// 'psalm_level' => 3, // 1–9 (default: 3)
// ── Directories ───────────────────────────────────────────
// 'source_dirs' => ['src'],
// 'test_dirs' => ['tests'],
// 'exclude_dirs' => ['src/Contract'], // excluded from static analysis
// ── Test Suites ───────────────────────────────────────────
// 'test_suites' => [
// 'Unit' => 'tests/Unit',
// 'Integration' => 'tests/Integration',
// ],
// ── Coverage ──────────────────────────────────────────────
// 'coverage_exclude' => ['src/Exception'],
// ── Code Style (MERGED with KaririCode defaults) ──────────
// 'cs_fixer_rules' => [
// 'concat_space' => ['spacing' => 'one'],
// 'yoda_style' => false,
// ],
// ── Rector (REPLACES KaririCode defaults) ─────────────────
// 'rector_sets' => [
// 'LevelSetList::UP_TO_PHP_84',
// 'SetList::CODE_QUALITY',
// 'SetList::DEAD_CODE',
// 'SetList::EARLY_RETURN',
// 'SetList::TYPE_DECLARATION',
// ],
// ── Tool Versions (informational) ─────────────────────────
// 'tools' => [
// 'phpunit' => '^11.0',
// 'phpstan' => '^2.0',
// 'php-cs-fixer' => '^3.64',
// 'rector' => '^2.0',
// 'psalm' => '^6.0',
// ],
];