Created
January 28, 2018 09:35
-
-
Save addiks/93b3035a2152bbc1d8db1cd2ed2aeaf7 to your computer and use it in GitHub Desktop.
New ruleset-refs.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ruleset | |
name="phpmd-phpincludepath-test" | |
xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | |
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | |
<description>First description...</description> | |
<!-- this ref's set1.xml using the include-path '.../src/test/php' | |
It will cause an error if that feature does not work properly. --> | |
<rule ref="../resources/files/rulesets/set1.xml" /> | |
<!-- This includes a certain file not following PSR-0 using an explicit filepath. | |
If including a rule with explicit filename does not work, this will fail. | |
Also, the file is referenced relative from this rule-file. --> | |
<rule name="SomeTestRule" | |
message="The method is missing a valid @return annotation!" | |
class="some_class_that_does_not_follow_psr0" | |
file="../classes/does_not_follow_psr0.class.php"> | |
<priority>1</priority> | |
</rule> | |
<php-includepath>/foo/bar/baz</php-includepath> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment