1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00
psalm/phpcs.xml
2018-11-12 11:20:59 -05:00

24 lines
836 B
XML

<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<rule ref="PSR2" />
<file>bin/</file>
<file>src/</file>
<file>tests/</file>
<!-- This is a vendor file that we don't want to bother linting. -->
<exclude-pattern>src/Psalm/Internal/CallMap.php</exclude-pattern>
<exclude-pattern>src/Psalm/Internal/Visitor/SimpleNameResolver.php</exclude-pattern>
<!-- These are just examples and stub classes/files, so it doesn't really matter if they're PSR-2 compliant. -->
<exclude-pattern>src/Psalm/Internal/Stubs/</exclude-pattern>
<exclude-pattern>tests/stubs/</exclude-pattern>
<rule ref="Generic.Files.LineLength">
<exclude-pattern>tests</exclude-pattern>
</rule>
<rule ref="PSR2.Namespaces.UseDeclaration">
<exclude-pattern>*</exclude-pattern>
</rule>
</ruleset>