Skip to content

naopusyu/phpcs-custom-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpcs-custom-rules

PHP_CodeSnifferのカスタムルールを作ってみた

Installation

composer req naopusyu/phpcs-custom-rules --dev

Usage

Create phpcs.xml file.

<?xml version="1.0"?>
<ruleset>
    <arg name="colors" />
    <arg value="ps" />

    <rule ref="vendor/naopusyu/phpcs-custom-rules/src/PHPCSCustomRules/ruleset.xml"/>
</ruleset>

Then run the phpcs command.

vendor/bin/phpcs src

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages