Skip to content

Commit

Permalink
Psalm baseline to remove constant errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Aug 19, 2024
1 parent dc487f9 commit d4639cd
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
/package-lock.json export-ignore
/package.json export-ignore
/phpunit.xml export-ignore
/psalm-baseline.xml export-ignore
/psalm.xml export-ignore
/resources/js/ export-ignore
/resources/sass/ export-ignore
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ jobs:
- run: composer install
if: steps.vendor-caches.outputs.cache-hit != 'true'
- run: composer analyze
continue-on-error: true
test-basic:
name: 'Basic test ${{ matrix.php-coverage }}'
runs-on: ubuntu-latest
Expand Down
46 changes: 46 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.25.0@01a8eb06b9e9cc6cfb6a320bf9fb14331919d505">
<file src="init.php">
<TypeDoesNotContainType>
<code><![CDATA[!KINT_SKIP_FACADE]]></code>
<code><![CDATA[!KINT_SKIP_HELPERS]]></code>
</TypeDoesNotContainType>
</file>
<file src="src/CallFinder.php">
<RedundantCondition>
<code><![CDATA[KINT_PHP80]]></code>
<code><![CDATA[KINT_PHP80]]></code>
<code><![CDATA[KINT_PHP80]]></code>
<code><![CDATA[KINT_PHP81]]></code>
</RedundantCondition>
</file>
<file src="src/Parser/EnumPlugin.php">
<TypeDoesNotContainType>
<code><![CDATA[!KINT_PHP81]]></code>
</TypeDoesNotContainType>
</file>
<file src="src/Parser/MysqliPlugin.php">
<RedundantCondition>
<code><![CDATA[KINT_PHP81]]></code>
</RedundantCondition>
</file>
<file src="src/Parser/Parser.php">
<RedundantCondition>
<code><![CDATA[KINT_PHP81]]></code>
<code><![CDATA[KINT_PHP81]]></code>
</RedundantCondition>
</file>
<file src="src/Renderer/CliRenderer.php">
<RedundantCondition>
<code><![CDATA[!KINT_WIN]]></code>
</RedundantCondition>
<TypeDoesNotContainType>
<code><![CDATA[KINT_WIN]]></code>
</TypeDoesNotContainType>
</file>
<file src="src/Utils.php">
<TypeDoesNotContainType>
<code><![CDATA[!KINT_PHP80]]></code>
</TypeDoesNotContainType>
</file>
</files>
1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorBaseline="psalm-baseline.xml"
>
<projectFiles>
<directory name="src" />
Expand Down

0 comments on commit d4639cd

Please sign in to comment.