guoer
V2EX  ›  Vim

Vim 能否检查 php 的 warning

  •  
  •   guoer · Sep 22, 2015 · 2423 views
    This topic created in 3956 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
        1
    Senorsen  
       Sep 23, 2015 via Android
    好像是能的, vim 有个插件,在保存时检查各种语言的语法。忘记叫什么了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3330 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 11:12 · PVG 19:12 · LAX 04:12 · JFK 07:12
    ♥ Do have faith in what you're doing.