(Emacs24.1, Ruby1.9.3)
gem Install tailor
"A RubyGem that allows for checking standard styling of Ruby files. "
gem install tailor
init.el
;; FlymakeTailorRuby (defun flymake-tailor-ruby-init () (let* ((temp-file (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace)) (local-file (file-relative-name temp-file (file-name-directory buffer-file-name)))) (list "tailor" (list "-d" local-file)))) (push '(".+\\.rb$" flymake-tailor-ruby-init) flymake-allowed-file-name-masks) (push '("^.*?<Problem> ?+\\([0-9]+\\)\\[\\([0-9]+\\)\\] ?+: ?+ERROR\\[.*?\\] ?+\\(.*?\\)$" nil 1 2 3) flymake-err-line-patterns)