1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-03 10:07:52 +01:00

Add possibility to include xml config located in subdirectory

Fix the config.xsd file to accept "xml:base" attribute in tags and be able to include partial configuration located in another directory then the main configuration file.
This commit is contained in:
Guillaume Messier 2021-09-21 15:15:15 -04:00 committed by GitHub
parent 259277db3f
commit d2f3ff09ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,19 +97,19 @@
<xs:element name="file" minOccurs="0" maxOccurs="unbounded" type="NameAttributeType" /> <xs:element name="file" minOccurs="0" maxOccurs="unbounded" type="NameAttributeType" />
<xs:element name="ignoreFiles" minOccurs="0" maxOccurs="1" type="IgnoreFilesType" /> <xs:element name="ignoreFiles" minOccurs="0" maxOccurs="1" type="IgnoreFilesType" />
</xs:choice> </xs:choice>
<xs:anyAttribute/> <xs:anyAttribute processContents="skip"/>
</xs:complexType> </xs:complexType>
<xs:complexType name="TaintAnalysisType"> <xs:complexType name="TaintAnalysisType">
<xs:choice maxOccurs="unbounded"> <xs:choice maxOccurs="unbounded">
<xs:element name="ignoreFiles" minOccurs="0" maxOccurs="1" type="IgnoreFilesType" /> <xs:element name="ignoreFiles" minOccurs="0" maxOccurs="1" type="IgnoreFilesType" />
</xs:choice> </xs:choice>
<xs:anyAttribute/> <xs:anyAttribute processContents="skip"/>
</xs:complexType> </xs:complexType>
<xs:complexType name="NameAttributeType"> <xs:complexType name="NameAttributeType">
<xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="name" type="xs:string" use="required" />
<xs:anyAttribute/> <xs:anyAttribute processContents="skip"/>
</xs:complexType> </xs:complexType>
<xs:complexType name="StubsAttributeType"> <xs:complexType name="StubsAttributeType">
@ -124,14 +124,14 @@
</xs:choice> </xs:choice>
<xs:attribute name="allowMissingFiles" type="xs:string" /> <xs:attribute name="allowMissingFiles" type="xs:string" />
<xs:anyAttribute/> <xs:anyAttribute processContents="skip"/>
</xs:complexType> </xs:complexType>
<xs:complexType name="ProjectDirectoryAttributeType"> <xs:complexType name="ProjectDirectoryAttributeType">
<xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="ignoreTypeStats" type="xs:string" /> <xs:attribute name="ignoreTypeStats" type="xs:string" />
<xs:attribute name="useStrictTypes" type="xs:string" /> <xs:attribute name="useStrictTypes" type="xs:string" />
<xs:anyAttribute/> <xs:anyAttribute processContents="skip"/>
</xs:complexType> </xs:complexType>
<xs:complexType name="FileExtensionsType"> <xs:complexType name="FileExtensionsType">
@ -144,21 +144,21 @@
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
</xs:sequence> </xs:sequence>
<xs:anyAttribute/> <xs:anyAttribute processContents="skip"/>
</xs:complexType> </xs:complexType>
<xs:complexType name="MockClassesType"> <xs:complexType name="MockClassesType">
<xs:sequence> <xs:sequence>
<xs:element name="class" maxOccurs="unbounded" type="NameAttributeType" /> <xs:element name="class" maxOccurs="unbounded" type="NameAttributeType" />
</xs:sequence> </xs:sequence>
<xs:anyAttribute/> <xs:anyAttribute processContents="skip"/>
</xs:complexType> </xs:complexType>
<xs:complexType name="UniversalObjectCratesType"> <xs:complexType name="UniversalObjectCratesType">
<xs:sequence> <xs:sequence>
<xs:element name="class" maxOccurs="unbounded" type="NameAttributeType" /> <xs:element name="class" maxOccurs="unbounded" type="NameAttributeType" />
</xs:sequence> </xs:sequence>
<xs:anyAttribute/> <xs:anyAttribute processContents="skip"/>
</xs:complexType> </xs:complexType>
<xs:complexType name="ExceptionsType"> <xs:complexType name="ExceptionsType">
@ -166,21 +166,21 @@
<xs:element name="class" minOccurs="0" maxOccurs="unbounded" type="ExceptionType" /> <xs:element name="class" minOccurs="0" maxOccurs="unbounded" type="ExceptionType" />
<xs:element name="classAndDescendants" minOccurs="0" maxOccurs="unbounded" type="ExceptionType" /> <xs:element name="classAndDescendants" minOccurs="0" maxOccurs="unbounded" type="ExceptionType" />
</xs:sequence> </xs:sequence>
<xs:anyAttribute/> <xs:anyAttribute processContents="skip"/>
</xs:complexType> </xs:complexType>
<xs:complexType name="StubsType"> <xs:complexType name="StubsType">
<xs:sequence> <xs:sequence>
<xs:element name="file" maxOccurs="unbounded" type="StubsAttributeType" /> <xs:element name="file" maxOccurs="unbounded" type="StubsAttributeType" />
</xs:sequence> </xs:sequence>
<xs:anyAttribute/> <xs:anyAttribute processContents="skip"/>
</xs:complexType> </xs:complexType>
<xs:complexType name="ExitFunctionsType"> <xs:complexType name="ExitFunctionsType">
<xs:sequence> <xs:sequence>
<xs:element name="function" maxOccurs="unbounded" type="NameAttributeType" /> <xs:element name="function" maxOccurs="unbounded" type="NameAttributeType" />
</xs:sequence> </xs:sequence>
<xs:anyAttribute/> <xs:anyAttribute processContents="skip"/>
</xs:complexType> </xs:complexType>
<xs:complexType name="PluginsType"> <xs:complexType name="PluginsType">