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" }, 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 -ě