ruby-lint - Static syntax checker for Ruby
·1 分で読めます
Recently I found static syntax checker for Ruby called ruby-lint. We haven't had such a syntax checker for Ruby, so I'm very happy to find it. (Although it's alpha quality)
Installation
$ gem install ruby-lintTry
Prepare following ruby code.
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
a = 'hoge'
puts "hello" + bruby-lint it!!
$ ruby-lint hoge.rb
hoge.rb: error: line 4, column 15: undefined local variable or method b
hoge.rb: warning: line 3, column 0: assigned but unused local variable aI cheer an author of ruby-lint. This is a great software!
The Rapid Rubyist (English Edition)
- 作者: Matthew Stopa
- 発売日: 2013/06/29
- メディア: Kindle版
- この商品を含むブログを見る
関連記事
Emacs + ruby-lint + flymakeでRubyのソースを静的チェック
2013-01-12
ruby-lintでRubyのソースを静的チェック
2012-12-22