Move static analysis config under tests/ and exclude from git archive

This commit is contained in:
Zach Borboa
2022-12-14 05:12:41 -08:00
parent 6a8d60b8d6
commit 3cfe83b222
3 changed files with 5 additions and 6 deletions
-1
View File
@@ -8,4 +8,3 @@
/.gitignore export-ignore
/TESTING.md export-ignore
/TROUBLESHOOTING.md export-ignore
/psalm.xml
+1 -1
View File
@@ -47,5 +47,5 @@ jobs:
CI_PHP_FUTURE_RELEASE: ${{ matrix.future-release }}
- name: Static analysis
run: "vendor/bin/psalm"
run: 'vendor/bin/psalm --config="tests/psalm.xml"'
if: ${{ !matrix.future-release && matrix.php-version >= 7.1 }}
+4 -4
View File
@@ -7,20 +7,20 @@
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
<directory name="../src" />
<ignoreFiles>
<directory name="vendor" />
<directory name="../vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<UndefinedClass>
<errorLevel type="suppress">
<referencedClass name="CurlHandle" />
<file name="src/Curl/Curl.php" />
<file name="../src/Curl/Curl.php" />
</errorLevel>
<errorLevel type="suppress">
<referencedClass name="CurlMultiHandle" />
<file name="src/Curl/MultiCurl.php" />
<file name="../src/Curl/MultiCurl.php" />
</errorLevel>
</UndefinedClass>
</issueHandlers>