LoginSignup
4
3

More than 5 years have passed since last update.

phpmdやphpcsの設定XMLを簡単に作成する

Posted at

ここだけ読めばいい

下記サイト便利です。
チェック入れたり数字変えるだけでxmlができます。

PHP Coding Standard Generator

580d7f2c-7124-403a-8488-7bf48f2184a7.png

見つけた背景

ATOMでlinter-phpmdを使用していますが、設定方法をちゃんと調べて設定するのがめんどくさかったので、そのまま使ってました。packageの設定で「cleancode, codesize, controversial, design, naming, unusedcode」のどれを使うかぐらいは設定できたので、それをいじってたぐらい。

でもやっぱりルール厳しすぎてもっと緩めたくなったことが何度もあって、ふと「誰かgeneratorぐらい作ってんだろ」って思って「phpmd generator」でぐぐったら、やっぱりありました。

作ってくれた人ありがとう。

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3