9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

syntasticの連携

Posted at

.vimrcに下記を書く。(neobundleが入っていることが前提)

"NeoBundle 'scrooloose/syntastic'
let g:syntastic_enable_signs=1
let g:syntastic_auto_loc_list=1
let g:syntastic_mode_map={ 'mode': 'passive',
                        \ 'active_filetypes': ['php', 'ruby', 'javascript', 'json'],
                        \ 'passive_filetypes': []
                        \}
let g:syntastic_ruby_checkers=['rubocop']
let g:syntastic_javascript_checkers=['jshint']
let g:syntastic_php_checkers=['php','phpcs']
let g:syntastic_quite_warnings=0

参考

rubocopのインストール系
http://qiita.com/yuku_t/items/0ac33cea18e10f14e185

phpdcsのインストール
pear install PHP_CodeSniffer

jshintのインストール系
http://d.hatena.ne.jp/sasaplus1/20120517/1337260047

9
10
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
9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?