plugin-ruby VS rubocop

Compare plugin-ruby vs rubocop and see what are their differences.

rubocop

A Ruby static code analyzer and formatter, based on the community Ruby style guide. (by rubocop)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
plugin-ruby rubocop
7 40
1,446 12,501
0.8% 0.1%
8.2 9.8
12 days ago about 21 hours ago
JavaScript Ruby
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

plugin-ruby

Posts with mentions or reviews of plugin-ruby. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-23.
  • Unveiling the big leap in Ruby 3.3's IRB
    6 projects | news.ycombinator.com | 23 Dec 2023
  • Rails vs Rubocop?
    3 projects | /r/rails | 1 Jul 2022
  • Linting and Auto-formatting Ruby Code With RuboCop
    12 projects | dev.to | 29 Jun 2022
    Prettier started out as an opinionated code formatter for JavaScript, but it now supports many other languages, including Ruby. Installing its Ruby plugin is straight forward: add the prettier gem to your Gemfile and then run bundle.
  • Halp: Prettier not working on lua files
    4 projects | /r/neovim | 14 May 2022
    You'd need a prettier plugin for Lua, similar to the ones that exist for php (https://github.com/prettier/plugin-php) and ruby (https://github.com/prettier/plugin-ruby). I'm pretty sure that there isn't one for Lua, but you can try googling it.
  • Formatter
    1 project | /r/ruby | 31 May 2021
    Did you try prettier maybe?
  • Standard Ruby 1.0
    1 project | news.ycombinator.com | 11 Mar 2021
    To me "stardard" ruby style is style used in the std-lib.

    Whilst I can see the benefit of having an AST format code for you, e.g. if can you use it to fix language version changes like positional arguments and keyword arguments in Ruby 3,.0 I worry about how good/bad RuboCop is at formatting.

    Last time I tried it, it was indenting in a different way to the std-lib.

    At the time I found that prettier-ruby[1] did a much better job. Hopefully that's improved since.

    1. https://github.com/prettier/plugin-ruby

  • My Rubocop Configuration for a Successful Rails Project
    3 projects | dev.to | 9 Feb 2021
    Rubocop has a very nice auto-correct feature to automatically fix many of the warnings it gives, but we've noticed in the past that with line length issues specifically the auto-corrected files can be misformatted. For that reason, we use the Ruby plugin for Prettier to correct line length.

rubocop

Posts with mentions or reviews of rubocop. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-06.
  • Utilities for refactoring and upgrading Ruby code based on ASTs
    3 projects | news.ycombinator.com | 6 May 2024
    https://github.com/rubocop/rubocop/issues/8091#issuecomment-...

    perhaps they are biased against the tool from participating in a campaign to police the name in the past.

  • Must-have gems for mature Rails
    8 projects | dev.to | 2 Feb 2024
    gem "rubocop" - https://github.com/rubocop/rubocop | Set up code guidelines for your dev team, I recommend using whatever Standard recommends.
  • I Love Ruby
    12 projects | news.ycombinator.com | 18 Dec 2023
    I believe if you use the `||` operator instead of `or`, then things just work out fine. I agree it is really annoying. But I am pretty sure if you use a tool like RuboCop https://github.com/rubocop/rubocop (a static code analysis tool) then it will catch bugs like this. Note that I am not recommending Ruby. But in my experience if you want to work with a language and it has a community style guide and a linter that enforces it, it will save me some heartache.
  • Mastering Linters : A Code Quality Assurance Comprehensive Guide using Ruby on Rails
    1 project | dev.to | 8 Nov 2023
  • code review / feedback for improvement
    2 projects | /r/ruby | 16 Sep 2023
    Adopt some sort of consistent formatting. Your top-level module starts off indented, seems like wasted space. May I suggest RuboCop?
  • An Introduction to RuboCop for Ruby on Rails
    3 projects | dev.to | 13 Sep 2023
    By default, out of the box, RuboCop comes with a default set of pre-configured rules. The documentation will tell you Rubocop's default rules.
  • I live and work in the US where protests against police brutality have been ongoing for days, and coming to work this week the word "cop" has an uncomfortable feeling about it.
    3 projects | /r/programmingcirclejerk | 7 Jul 2023
  • Code Reviewing a Ruby on Rails application.
    6 projects | dev.to | 3 Jul 2023
    RuboCop is a Ruby static code analyzer (a.k.a. linter) and code formatter. Out of the box it will enforce many of the guidelines outlined in the community Ruby Style Guide. Apart from reporting the problems discovered in your code, RuboCop can also automatically fix many of them for you.
  • Xeme: I'd value your opinion on my new Ruby gem
    5 projects | /r/ruby | 29 May 2023
    But I will encourage you to adopt Rubocop to enforce the style you want, so that if others want to contribute, they can write with spaces and then run rubocop -a and end up with the styling you prefer. Tabs indentation support was added a couple of years back: https://github.com/rubocop/rubocop/pull/7867
  • Welcome to Rails Cheat Sheet
    3 projects | news.ycombinator.com | 13 May 2023
    In my last job I encountered my first Rails codebase ever (mostly REST APIs but a few server-rendered views as well). After the initial chaotic impression of the codebase (it was a startup after all) with all the Rails magic on top, I really fell in love with the framework after a more experienced Rails dev introduced a few key conventions and helpful libraries to the codebase.

    Out of those, I’d at least add the RuboCop [1] linter and the BetterSpecs [2] guidelines to this list. Both helped tremendously in eliminating bikeshedding in the team and freeing up brainpower to solve actual problems. The first one helped me learn intricacies of Ruby bit by bit right in my IDE and the latter guided us to write tests in a style that’s easy to maintain and trust.

    [1] https://github.com/rubocop/rubocop

    [2] https://www.betterspecs.org/

What are some alternatives?

When comparing plugin-ruby and rubocop you can also consider the following projects:

vim-prettier - A Vim plugin for Prettier

sorbet - A fast, powerful type checker designed for Ruby

coc-solargraph - Solargraph extension for coc.nvim

Rubycritic - A Ruby code quality reporter

prettier-plugin-solidity - A Prettier plugin for automatically formatting your Solidity code.

prettier-plugin-prisma - Prettier plugin for Prisma

bullet - help to kill N+1 queries and unused eager loading

prettier - Prettier is an opinionated code formatter.

Reek - Code smell detector for Ruby

prettier-eslint - Code :arrow_right: prettier :arrow_right: eslint --fix :arrow_right: Formatted Code :sparkles:

Ruby style guide - A community-driven Ruby coding style guide