Skip to content

Commit 2662640

Browse files
committed
chore: switch to mago and align lint rules
1 parent 40297a2 commit 2662640

21 files changed

Lines changed: 656 additions & 2182 deletions

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
/vendor/
2-
/.php-cs-fixer.cache
3-
/temp/
2+
/temp/

.php-cs-fixer.dist.php

Lines changed: 0 additions & 13 deletions
This file was deleted.

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ A comprehensive, fluent validation library for PHP inspired by Valibot and Zod.
7272
### Code Quality
7373
- **Testing** - Pest PHP with organized, focused test suite
7474
- **Static Analysis** - PHPStan at maximum level for type safety
75-
- **Code Style** - PHP-CS-Fixer for consistent formatting
75+
- **Code Style** - Mago for linting/formatting; scripts map `composer lint`/`composer fix` to Mago
7676
- **Performance** - Optimized validation logic with eliminated code duplication
7777

7878
### Development Guidelines

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
99

1010
### Changed
1111
- Added `declare(strict_types=1);` across the codebase for stricter type enforcement and clearer errors.
12+
- Replaced php-cs-fixer with Mago for linting/formatting; scripts now map `composer lint`/`composer fix` to Mago.
1213

1314
## [0.9.0] - 2025-11-18
1415

ROADMAP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ $stringValidator = Validator::isString()
337337
### Testing & Quality
338338
- [x] Organized test suite with focused files
339339
- [x] 100% PHPStan compliance
340-
- [x] PHP-CS-Fixer standards
340+
- [x] Mago lint/formatting standards
341341
- [x] Static logical combinators test coverage
342342
- [x] Comprehensive schema validation test coverage
343343
- [x] Floating-point precision bug fixes with comprehensive edge case testing

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
},
2323
"require-dev": {
2424
"ergebnis/composer-normalize": "^2.48",
25-
"friendsofphp/php-cs-fixer": "^3.84",
2625
"pestphp/pest": "^2.0",
2726
"phpstan/phpstan": "^2.1",
2827
"symfony/error-handler": "^7.0",
@@ -46,8 +45,8 @@
4645
},
4746
"scripts": {
4847
"analyse": "phpstan analyse",
49-
"fix": "php-cs-fixer fix --allow-risky=yes",
50-
"lint": "php-cs-fixer fix --dry-run --diff --allow-risky=yes",
48+
"fix": "mago format",
49+
"lint": "mago lint",
5150
"test": "vendor/bin/pest"
5251
}
5352
}

0 commit comments

Comments
 (0)