GithubHelp home page GithubHelp logo

mrsool / pronto-rubocop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from letmein/pronto-rubocop

0.0 1.0 0.0 120 KB

Pronto runner for Rubocop, ruby code analyzer

License: MIT License

Ruby 100.00%

pronto-rubocop's Introduction

Pronto runner for RuboCop

Code Climate Build Status Gem Version

Pronto runner for RuboCop, ruby code analyzer. What is Pronto?

Configuration

Configuring RuboCop via .rubocop.yml will work just fine with pronto-rubocop.

You can also specify a custom .rubocop.yml location with the environment variable RUBOCOP_CONFIG.

You can also provide additional configuration via .pronto.yml:

rubocop:
  # Map of RuboCop severity level to Pronto severity level
  severities:
    refactor: info
    warning: error

  # Enable suggestions
  suggestions: true

Suggestions

When suggestions are enabled, the messages will include a line suggesting what to change, using GitHub's syntax on Pull Request reviews, that can be approved in one click right from the Pull Request.

For example:

GitHub screenshot with suggestion

RuboCop versions

If you need to use RuboCop v0.84.0 or v0.85.x, you'll need to ensure that you've also need to add gem 'rubocop-ast', '< 0.7.0' to your Gemfile as these were the first versions to use rubocop-ast, and unfortunately the dependency was loose enough that rubocop-ast versions >= 0.7.0 were allowed, which causes require 'rubocop' to fail with

  NoMethodError:
    undefined method `join' for #<Set: {:==, :===, :!=, :<=, :>=, :>, :<}>
  in rubocop-0.84.0/lib/rubocop/cop/style/redundant_conditional.rb:57:in `<class:RedundantConditional>'

This is due to rubocop/rubocop-ast#22

pronto-rubocop's People

Contributors

mmozuras avatar ashkulz avatar sunny avatar juno avatar jeroenj avatar dankohn avatar marcandre avatar sanemat avatar tlikai avatar zamith avatar yujideveloper avatar toshimaru avatar seikichi avatar doomspork avatar knack avatar m-yamashita01 avatar hlascelles avatar eitoball avatar danielnolan avatar scalp42 avatar adamolien avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.