Cấu hình phpcs và phpcs-fixer cho sublime text 4

<?xml version=”1.0″?> <ruleset xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” name=”PHP_CodeSniffer” xsi:noNamespaceSchemaLocation=”phpcs.xsd”> <description>The coding standard for PHP_CodeSniffer itself.</description> <!– Base rule for phpcs –> <!– Include and Exclude –> <file>autoload.php</file> <file>bin</file> <file>scripts</file> <file>src</file> <file>tests</file> <exclude-pattern>*/src/Standards/*/Tests/*\.(inc|css|js)$</exclude-pattern> <exclude-pattern>*/tests/Core/*/*\.(inc|css|js)$</exclude-pattern> <arg name=”basepath” value=”.”/> <arg name=”colors”/> <arg name=”parallel” value=”75″/> <arg value=”np”/> <!– Don’t hide tokenizer exceptions –> <rule ref=”Internal.Tokenizer.Exception”> <type>error</type> </rule> <!– Include the whole PEAR […]

Xem thêm