Skip to content

Commit

Permalink
qa: finishing psalm configuration
Browse files Browse the repository at this point in the history
- changes `totallyTyped=true` to `errorLevel=1` which is equivalent
- adds `psalm.xml` to `.gitignore` while renaming it to `psalm.xml.dist`
- adds `psalm.xml.dist` to `.gitattributes` so we do not ship this component with its psalm config
- remove `.coveralls.yml` as we do not provide anything to coveralls with the new CI pipeline

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
  • Loading branch information
boesing committed Oct 13, 2021
1 parent 56d964f commit 2d11d56
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 36 deletions.
2 changes: 0 additions & 2 deletions .coveralls.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/phpcs.xml export-ignore
/phpunit.xml.dist export-ignore
/test/ export-ignore
/psalm.xml.dist export-ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/laminas-mkdoc-theme/
/phpunit.xml
/vendor/
/psalm.xml
34 changes: 0 additions & 34 deletions psalm.xml

This file was deleted.

20 changes: 20 additions & 0 deletions psalm.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<psalm
errorLevel="1"
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"/>
<directory name="test"/>
<ignoreFiles>
<directory name="vendor"/>
</ignoreFiles>
</projectFiles>

<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
</plugins>
</psalm>

0 comments on commit 2d11d56

Please sign in to comment.