From 2c6063b6e412f782640bfb4e843877113d85a62a Mon Sep 17 00:00:00 2001 From: guanguans Date: Mon, 15 Jun 2026 17:55:42 +0800 Subject: [PATCH 1/2] Remove invalid character from phpunit-rules.neon --- config/phpunit-rules.neon | 1 - 1 file changed, 1 deletion(-) diff --git a/config/phpunit-rules.neon b/config/phpunit-rules.neon index 997de3d8..4c9ff9c7 100644 --- a/config/phpunit-rules.neon +++ b/config/phpunit-rules.neon @@ -1,4 +1,3 @@ rules: - Symplify\PHPStanRules\Rules\PHPUnit\PublicStaticDataProviderRule - Symplify\PHPStanRules\Rules\PHPUnit\NoAssertFuncCallInTestsRule -ě From 2a91d1cc7debe1c3f2592d73730e5056b8775ca7 Mon Sep 17 00:00:00 2001 From: guanguans Date: Mon, 15 Jun 2026 20:48:20 +0800 Subject: [PATCH 2/2] ci(workflow): Add Neon linting step and composer script - Add GitHub Actions step "Lint Neon" to run vendor/bin/neon-lint config/ - Add nette/neon dependency and composer script "lint-neon" to run the linter - Ensure Neon config files are linted in CI to catch syntax and format errors early --- .github/workflows/code_analysis.yaml | 3 +++ composer.json | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index f4b4e0f2..21664979 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -12,6 +12,9 @@ jobs: fail-fast: false matrix: actions: + - + name: 'Lint Neon' + run: vendor/bin/neon-lint config/ - name: 'PHPStan' run: composer phpstan --ansi diff --git a/composer.json b/composer.json index 4679691c..034dc09d 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,8 @@ "tomasvotruba/unused-public": "^2.2", "tomasvotruba/type-coverage": "^2.2", "shipmonk/composer-dependency-analyser": "^1.8", - "rector/jack": "^1.0" + "rector/jack": "^1.0", + "nette/neon": "^3.4" }, "autoload": { "psr-4": { @@ -53,6 +54,7 @@ "scripts": { "check-cs": "vendor/bin/ecs check --ansi", "fix-cs": "vendor/bin/ecs check --fix --ansi", + "lint-neon": "vendor/bin/neon-lint config/", "phpstan": "vendor/bin/phpstan analyse --ansi", "rector": "vendor/bin/rector process --dry-run --ansi" },