Skip to content

Commit bf7191a

Browse files
committed
Tweak copilot instructions
1 parent d069af1 commit bf7191a

File tree

1 file changed

+4
-45
lines changed

1 file changed

+4
-45
lines changed

.github/copilot-instructions.md

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -42,71 +42,30 @@ composer install
4242

4343
The following commands MUST be run in this exact order. Each command must pass before proceeding:
4444

45-
1. **Validate Composer Configuration**
46-
```bash
47-
composer validate --strict
48-
```
49-
- Takes ~2 seconds
50-
- Validates composer.json syntax and dependencies
51-
52-
2. **Install Dependencies**
53-
```bash
54-
composer install --prefer-dist --no-progress
55-
```
56-
- Takes 30-60 seconds
57-
- ALWAYS run after any composer.json changes
58-
59-
3. **Check Composer Normalization**
60-
```bash
61-
composer normalize --diff --dry-run
62-
```
63-
- Takes ~3 seconds
64-
- Ensures composer.json follows standardized format
65-
66-
4. **Analyze Dependencies**
67-
```bash
68-
vendor/bin/composer-dependency-analyser
69-
```
70-
- Takes ~5 seconds
71-
- Detects unused or missing dependencies
72-
73-
5. **Run Code Style Fixer**
45+
1. **Run Code Style Fixer**
7446
```bash
7547
vendor/bin/php-cs-fixer check --diff
7648
```
7749
- Takes 5-10 seconds
7850
- Validates PSR-12 and custom coding standards
7951
- To fix issues: `vendor/bin/php-cs-fixer fix`
8052

81-
6. **Run Static Analysis**
53+
2. **Run Static Analysis**
8254
```bash
8355
vendor/bin/phpstan analyse
8456
```
8557
- Takes 10-15 seconds
8658
- Runs at level 9 (strictest)
8759
- Configuration in phpstan.php
8860

89-
7. **Run Unit Tests**
61+
3. **Run Unit Tests**
9062
```bash
9163
vendor/bin/phpunit
9264
```
9365
- Takes 5-10 seconds
9466
- Must have 100% pass rate
9567
- Configuration in phpunit.xml
9668

97-
### Example Validation (Pre-commit Hook)
98-
```bash
99-
# Validate example files (run from project root)
100-
cd examples && for file in *.php; do
101-
echo "Testing examples/$file..."
102-
php "$file" > /dev/null 2>&1 || {
103-
echo "✗ Failed: examples/$file"
104-
exit 1
105-
}
106-
echo "✓ Passed: examples/$file"
107-
done
108-
```
109-
11069
### Development Workflow
11170

11271
1. **Make code changes**
@@ -241,4 +200,4 @@ These instructions are comprehensive and tested. Only search for additional info
241200
- PHP version requirements change
242201
- CI pipeline is modified
243202

244-
The validation sequence provided is the authoritative build process used by the project maintainer and CI system.
203+
The validation sequence provided is the authoritative build process used by the project maintainer and CI system.

0 commit comments

Comments
 (0)