Giter Club home page Giter Club logo

Comments (4)

americanhanko avatar americanhanko commented on May 28, 2024

Closing the issue until I figure out what I'm doing. ¯\_(ツ)_/¯

from cookstyle.

americanhanko avatar americanhanko commented on May 28, 2024

Updating the cops in cookstyle_default.yml resolves the issue and matches cookstyle behavior:

$ rubocop --config default.yml
Inspecting 24 files
........................

24 files inspected, no offenses detected

from cookstyle.

lamont-granquist avatar lamont-granquist commented on May 28, 2024

you have to be running exactly the same version of rubocop as is pinned in cookstyle or else you'll get differing results. the debug output you got indicates that you probably had a different version of rubocop. the pinning of the engine is a feature of cookstyle since every new version of rubocop is essentially a breaking change and they don't and probably can't usefully follow semver (as they fix bugs, you'll tend to get more failures even if they kept the ruleset exactly identical -- so every new rubocop release always 'breaks' CI testing -- hence half the purpose of this repo is to equality pin the rubocop engine to a single version across all of the chef cookbooks).

you'd most likely be better off modifying the plugin to run cookstyle instead of rubocop.

from cookstyle.

americanhanko avatar americanhanko commented on May 28, 2024

the debug output you got indicates that you probably had a different version of rubocop.

I was actually using version 0.49.1 for both (I showed it in my first comment with the output of rubocop --version and cookstyle --version). Maybe that means cookstyle_default.yml is due for an update? Once I modified that file, it worked.

you'd most likely be better off modifying the plugin to run cookstyle instead of rubocop.

Indeed this is the best solution. At this point, RubyMine is due for a Cookstyle plugin anyway, or at least a more versatile Rubocop plugin.

from cookstyle.

Related Issues (20)

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.