Mais conteúdo relacionado
Semelhante a 今すぐ使えるPHP開発のあれこれ (20)
今すぐ使えるPHP開発のあれこれ
- 2. AGENDA
1. 伝えるとは
2. 自己紹介
3. 最近のphp界隈の流れ
4. 今さら聞けないcomoser
5. パッケージ管理の基本
6. composerコマンド
7. コーディング規約チェック
8. PHPコードの静的解析
9. PhpStorm
10. .editorconfig
11. Vagrant とAnsible
- 62. 実行結果の例$ phpcs /path/to/code
FILE: /path/to/code/myfile.php
--------------------------------------------------------------------------------
FOUND 5 ERROR(S) AFFECTING 5 LINE(S)
--------------------------------------------------------------------------------
2 | ERROR | Missing file doc comment
20 | ERROR | PHP keywords must be lowercase; expected "false" but found "FALSE"
47 | ERROR | Line not indented correctly; expected 4 spaces but found 1
51 | ERROR | Missing function doc comment
88 | ERROR | Line not indented correctly; expected 9 spaces but found 6
--------------------------------------------------------------------------------
FILE: /path/to/code/yourfile.php
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AND 1 WARNING(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
- 75. 例こんな感じ
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.bat]
end_of_line = crlf
[*.yml]
indent_style = space
indent_size = 2