59 lines
3.2 KiB
XML
59 lines
3.2 KiB
XML
<?xml version="1.0"?>
|
|
<!DOCTYPE module PUBLIC
|
|
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
|
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
|
|
|
<module name="Checker">
|
|
|
|
<property name="severity" value="error"/>
|
|
<property name="charset" value="UTF-8"/>
|
|
<property name="fileExtensions" value="java, properties, xml, js, json"/>
|
|
<module name="TreeWalker">
|
|
<!--
|
|
<module name="TodoComment">-->
|
|
<!-- The (?i) below means Case Insensitive -->
|
|
<!--<property name="format" value="(?i)FIXME"/>
|
|
-->
|
|
<module name="RegexpSinglelineJava">
|
|
<property name="format" value="org\.jetbrains\.annotations\.NotNull"/>
|
|
</module>
|
|
<module name="RegexpSinglelineJava">
|
|
<property name="format" value="org\.jetbrains\.annotations\.Nullable"/>
|
|
</module>
|
|
<module name="RegexpSinglelineJava">
|
|
<property name="format" value="org\.jetbrains\.annotations\.\*"/>
|
|
</module>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="id" value="transformerFactoryNewInstance"/>
|
|
<property name="matchAcrossLines" value="true"/>
|
|
<property name="format" value="TransformerFactory\.newInstance\("/>
|
|
<property name="message"
|
|
value="Usage of TransformerFactory.newInstance() is only allowed in XMLUtil.newXXEProtectedTransformerFactory(). If the location of this call in XMLUtil has changed, please modify the expected line number in org.hl7.fhir.utilities/checkstyle_suppressions.xml"
|
|
/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="id" value="documentBuilderFactoryNewInstance"/>
|
|
<property name="matchAcrossLines" value="true"/>
|
|
<property name="format" value="DocumentBuilderFactory\.newInstance\("/>
|
|
<property name="message"
|
|
value="Usage of DocumentBuilderFactory.newInstance() is only allowed in XMLUtil.newXXEProtectedDocumentBuilderFactory(). If the location of this call in XMLUtil has changed, please modify the expected line number in org.hl7.fhir.utilities/checkstyle_suppressions.xml"
|
|
/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="id" value="saxParserFactoryNewInstance"/>
|
|
<property name="matchAcrossLines" value="true"/>
|
|
<property name="format" value="SAXParserFactory\.newInstance\("/>
|
|
<property name="message"
|
|
value="Usage of SAXParserFactory.newInstance() is only allowed in XMLUtil.newXXEProtectedSaxParserFactory(). If the location of this call in XMLUtil has changed, please modify the expected line number in org.hl7.fhir.utilities/checkstyle_suppressions.xml"
|
|
/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="id" value="getXMLReader"/>
|
|
<property name="matchAcrossLines" value="true"/>
|
|
<property name="format" value="\.getXMLReader\("/>
|
|
<property name="message"
|
|
value="Usage of SAXParserFactory.getXMLReader() is only allowed in XMLUtil.getXXEProtectedXMLReader(...). If the location of this call in XMLUtil has changed, please modify the expected line number in org.hl7.fhir.utilities/checkstyle_suppressions.xml"
|
|
/>
|
|
</module>
|
|
</module> |