chiroruxxxx / lucky-lint
lucky-lint checks whether your naming is good naming.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:phpcodesniffer-standard
Requires
- php: >=8.3
- squizlabs/php_codesniffer: ^3.10
Requires (Dev)
- phpunit/phpunit: ^11.3
This package is auto-updated.
Last update: 2025-05-22 07:37:10 UTC
README
lucky-lint は命名が良いかを(画数占いで)調べます。
Installation
Composer
composer require --dev "chiroruxxxx/lucky-lint:dev-master"
を実施後に、プロジェクトの phpcs.xml で以下のように設定してください。
<config name="installed_paths" value="vendor/chiroruxxxx/lucky-lint"/> <rule ref="LuckyLint" />
Manual
コードをダウンロードし、プロジェクトの phpcs.xml で以下のように設定してください。
<config name="installed_paths" value="/path/to/lucky-lint"/> <rule ref="LuckyLint" />
Usage
minLevel
を指定することで、エラー出力する対象のレベルを設定することができます。
minLevel
は 1~3 で指定できます。
<rule ref="LuckyLint.Naming.LuckyLint"> <properties> <property name="minLevel" value="3"/> </properties> </rule>