zlx / jlint

Ruby Wrap for CheckStyle https://github.com/checkstyle/checkstyle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jlint

Ruby Warp for CheckStyle: https://github.com/checkstyle/checkstyle

Provide more friendly interface for Rubist

Installation

Add this line to your application's Gemfile:

gem 'jlint'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jlint

Dependency

  1. JRE

Usage

  Jlint.lint(content)         #=> [[message, line], ...]
  Jlint.file_lint(file_path)  #=> [[message, line], ...]

# Default it use [sun checks]()
# If Want to custom config

  lint = Jlint.new(config_content)
  lint.lint(content)          #=> [[message, line], ...]

Contributing

  1. Fork it ( http://github.com//jlint/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Ruby Wrap for CheckStyle https://github.com/checkstyle/checkstyle

License:MIT License


Languages

Language:Ruby 97.7%Language:Java 2.3%