Skip to content

Commit

Permalink
ci: drop psalm (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod authored Mar 23, 2024
1 parent c7417f0 commit 33353fd
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 48 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
/phpcs.xml.dist export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml.dist export-ignore
/psalm.xml.dist export-ignore
/renovate.json export-ignore
/tests export-ignore
26 changes: 0 additions & 26 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,3 @@ jobs:

- name: "Run a static analysis with phpstan/phpstan"
run: "vendor/bin/phpstan --error-format=checkstyle | cs2pr"

static-analysis-psalm:
name: "Static Analysis with Psalm"
runs-on: "ubuntu-22.04"

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: "cs2pr"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"

- name: "Run a static analysis with vimeo/psalm"
run: "vendor/bin/psalm --output-format=github --shepherd --taint-analysis --report=results.sarif"

- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
/phpcs.xml
/phpstan.neon
/phpunit.xml
/psalm.xml
/vendor/
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
"phpstan/phpstan": "^1.1",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.0",
"phpunit/phpunit": "^10.4",
"psalm/plugin-phpunit": "^0.19.0",
"vimeo/psalm": "^5.0"
"phpunit/phpunit": "^10.4"
},
"autoload": {
"psr-4": {
Expand Down
15 changes: 0 additions & 15 deletions psalm.xml.dist

This file was deleted.

2 changes: 1 addition & 1 deletion src/ClassExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function all(string $filePathName): array
}

$className = $tokens[$i][1];
/** @psalm-var class-string $fqn */
/** @phpstan-var class-string $fqn */
$fqn = $namespace . '\\' . $className;
$classes[] = $fqn;
}
Expand Down
2 changes: 1 addition & 1 deletion src/EnumExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function all(string $filePathName): array
}

$enumName = $tokens[$i][1];
/** @psalm-var class-string $fqn */
/** @phpstan-var class-string $fqn */
$fqn = $namespace . '\\' . $enumName;
$enums[] = $fqn;
}
Expand Down

0 comments on commit 33353fd

Please sign in to comment.