Permalink
Browse files

Merge pull request #13 from haya14busa/support-rubocop

support rubocop
  • Loading branch information...
2 parents dd3efab + e2e2c7e commit 650dea9d7c0fb56c7abf37e2e37fa45b1ad3d56c @haya14busa committed on GitHub Nov 9, 2016
Showing with 1,063 additions and 0 deletions.
  1. +2 −0 fmts/doc.go
  2. +19 −0 fmts/ruby.go
  3. +780 −0 fmts/testdata/rubocop.in
  4. +262 −0 fmts/testdata/rubocop.ok
View
@@ -15,6 +15,8 @@
// javascript
// eslint (eslint [-f stylish]) A fully pluggable tool for identifying and reporting on patterns in JavaScript - https://github.com/eslint/eslint
// eslint-compact (eslint -f compact) A fully pluggable tool for identifying and reporting on patterns in JavaScript - https://github.com/eslint/eslint
+// ruby
+// rubocop A Ruby static code analyzer, based on the community Ruby style guide - https://github.com/bbatsov/rubocop
// scala
// sbt the interactive build tool - http://www.scala-sbt.org/
// sbt-scalastyle Scalastyle - SBT plugin - http://www.scalastyle.org/sbt.html
View
@@ -0,0 +1,19 @@
+package fmts
+
+func init() {
+ const lang = "ruby"
+
+ register(&Fmt{
+ Name: "rubocop",
+ Errorformat: []string{
+ `%A%f:%l:%c: %t: %m`,
+ `%Z%p^%#`,
+ `%C%.%#`,
+ `%-G%.%#`,
+ },
+ Description: "A Ruby static code analyzer, based on the community Ruby style guide",
+ URL: "https://github.com/bbatsov/rubocop",
+ Language: lang,
+ })
+
+}
Oops, something went wrong.

0 comments on commit 650dea9

Please sign in to comment.