All Projects → packsaddle → Ruby Saddler

packsaddle / Ruby Saddler

Licence: mit

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Ruby Saddler

Nodejsscan
nodejsscan is a static security code scanner for Node.js applications.
Stars: ✭ 1,874 (+1915.05%)
Mutual labels:  lint, code-review
Reviewdog
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
Stars: ✭ 4,541 (+4782.8%)
Mutual labels:  lint, code-review
Code Review Bot
Code review bot and CLA verifier
Stars: ✭ 67 (-27.96%)
Mutual labels:  bot, code-review
Xenon
Create backups of your discord server
Stars: ✭ 90 (-3.23%)
Mutual labels:  bot
Go Tgbot
Golang telegram bot API wrapper, session-based router and middleware
Stars: ✭ 90 (-3.23%)
Mutual labels:  bot
Skyra
All-in-one multipurpose Discord Bot designed to carry out most of your server's needs with great performance and stability.
Stars: ✭ 92 (-1.08%)
Mutual labels:  bot
Wow Fish Bot
World of Warcraft ( WoW ) Fish BOT. Python. Simple. For me.
Stars: ✭ 93 (+0%)
Mutual labels:  bot
Ccxt.net
CCXT.NET – CryptoCurrency eXchange Trading Library for .NET
Stars: ✭ 89 (-4.3%)
Mutual labels:  bot
Vim Vimlint
lint for vim script
Stars: ✭ 92 (-1.08%)
Mutual labels:  lint
Alauto
Azur Lane bot based on azurlane-auto. Discord: https://discord.gg/vCFxDen.
Stars: ✭ 92 (-1.08%)
Mutual labels:  bot
Botframework Hubot
Hubot adapter for botframework
Stars: ✭ 91 (-2.15%)
Mutual labels:  bot
Udemy bot
An automation bot for free Udemy courses
Stars: ✭ 91 (-2.15%)
Mutual labels:  bot
Coinboss
⚡️💸💰 A Serverless Coinbase tradingbot.
Stars: ✭ 92 (-1.08%)
Mutual labels:  bot
Node Sdk
An official module for interacting with the top.gg API
Stars: ✭ 90 (-3.23%)
Mutual labels:  bot
Binance Trading Bot
Automated Binance trading bot - Buy low/Sell high with stop loss limit/Trade multiple cryptocurrencies
Stars: ✭ 87 (-6.45%)
Mutual labels:  bot
Wasapbot
[abandoned ❗] Simple WhatsApp bot written in PHP, respond to private & group messages. Uses Chat-API
Stars: ✭ 89 (-4.3%)
Mutual labels:  bot
Discordbot
A Java Discord bot using JDA
Stars: ✭ 92 (-1.08%)
Mutual labels:  bot
Slack Machine
A sexy, simple, yet powerful and extendable Slack bot
Stars: ✭ 91 (-2.15%)
Mutual labels:  bot
Tgdr
Telegram directory to discover channels, bots and groups.
Stars: ✭ 91 (-2.15%)
Mutual labels:  bot
Lint Diff
💅 Run eslint only in the changed parts of the code
Stars: ✭ 92 (-1.08%)
Mutual labels:  lint

Saddler

Gem Version Build Status

To effectively use your lint messages!

checkstyle2anywhere, you can integrate any lint, security checker and tools with anywhere (e.g. GitHub Pull Request Review Comment.)

Pull Request Review Comment

Pull Request Review Comment

Pull Request Comment

Pull Request Comment

Usage

git diff -z --name-only origin/master \
 | xargs -0 rubocop-select \
 | xargs rubocop \
     --require rubocop/formatter/checkstyle_formatter \
     --format RuboCop::Formatter::CheckstyleFormatter \
 | checkstyle_filter-git diff origin/master \
 | saddler report \
    --require saddler/reporter/github \
    --reporter Saddler::Reporter::Github::PullRequestReviewComment

It works!

You can run this from any CI Service (e.g. circle-ci, travis-ci, jenkins, etc).

Reporters

Requirement

Set GITHUB_ACCESS_TOKEN=__your_access_token__ to your environment variable.

TravisCI

Travis CI: Encryption keys

$ gem install travis
$ travis encrypt -r <owner_name>/<repos_name> "GITHUB_ACCESS_TOKEN=<github_token>"

CircleCI

Environment variables - CircleCI

Demo

You can send pull request to repos below. Try this!

Examples

Articles

ja

vi

VS.

Hound (web service)

Easy to configure, only allow GitHub oAuth. Very quick response, because Hound uses not entire code base but pull request hook's payload. But Hound focuses on RuboCop and JavaScript linters wrapped by Rubygems. JavaScript libraries wrapped by Rubygems have code smells.

Hound (oss)

You can host own Hound. If you like caring hosted rails application.

Pronto

Pronto is good application, and pronto influences saddler. Pronto's command seems simple, but this is "tightly-coupled" command. Pronto requires pronto-SOME-WRAPPER, and you should maintain wrapper scripts. Almost all of linters have their own command line interface. Why don't you use that direct?

FAQ

Q: Is there the way to share in the command line?

A: I think that sharing the command line is not a simple solution.

We can call saddler report multiple times. If we want to run Saddler only once, we can create "merged checkstyle file" before calling saddler report.

merge-checkstyle (command-a ...) (command-b ...) \
| saddler report ...

This requires merge-checkstyle command, I'm not sure that this command exists. I search "checkstyle" in rubygems, but I don't find such gem.

Q: Does Saddler support using both the text and Github reporters simultaneously?

A: Use tee. See Saddler::Reporter::Text and Saddler::Reporter::Github::PullRequestReviewComment.

Installation

Add this line to your application's Gemfile:

gem 'saddler'

And then execute:

$ bundle

Or install it yourself as:

$ gem install saddler

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment. Run bundle exec saddler to use the code located in this directory, ignoring other installed copies of this gem.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

  1. Fork it ( https://github.com/packsaddle/ruby-saddler/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 a new Pull Request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].