guoer
V2EX  ›  Vim

Vim 能否检查 php 的 warning

  •  
  •   guoer · Sep 22, 2015 · 2568 views
    This topic created in 4074 days ago, the information mentioned may be changed or developed.

    目前用scrooloose/syntastic进行语法检查,但是并不会检查出 php 的 warning 。比如说变量 /方法未定义等

    下面是我的配置

    let g:syntastic_auto_loc_list = 1
    let g:syntastic_auto_jump = 1
    let g:syntastic_php_checkers = ['php', 'phpcs', 'phpmd']
    let g:syntastic_quiet_messages = { "level": "warnings" }

    求大神指导如果检查出 warning ?

    谢谢

    1 replies  •  2015-09-23 14:01:01 +08:00
    Senorsen
    Senorsen
    Sep 23, 2015 via Android
    1
    好像是能的, vim 有个插件,在保存时检查各种语言的语法。忘记叫什么了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1816 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 15:56 · PVG 23:56 · LAX 07:56 · JFK 10:56
    ♥ Do have faith in what you're doing.