Replies: 1 comment 1 reply
-
No, Psalm supports a single config only. But you can include multiple elements with XInclude, by using the <?xml version="1.0"?>
<psalm
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"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<projectFiles>
<xi:include
href="common-files.xml"
xpointer="xmlns(ps=https://getpsalm.org/schema/config)xpointer(/ps:projectFiles/*)"
/>
<file name="anotherFile.php" />
</projectFiles>
</psalm> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I have multiple packages that I maintain and I wan't to create a common psalm config. In the docs I found a way of splitting up configs and including them, but I did not find a way to extend whatever is included.
So to use the same example from https://psalm.dev/docs/running_psalm/configuration I want to be able to do something like:
common-files.xml
psalm.xml
Maybe I am on the wrong path? Maybe there is a way to point to 2 configs (or even more) at the same time and have them (recursively) "merge"?
Beta Was this translation helpful? Give feedback.
All reactions