Comments (4)
Closing the issue until I figure out what I'm doing. ¯\_(ツ)_/¯
from cookstyle.
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.
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.
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)
- File verifier used without `%{path}`
- Detect using run_action on the resource block to force compile_time
- Avoid ternary operator in properties HOT 1
- Alert on more uses of mixlib::shellout
- Resource property descriptions shouldn't end with a space
- Don't set empty property descriptions
- remote_file: using a not_if to check if the file doesnt' already exist HOT 1
- Detect single line do/end style blocks
- Detect the usage of chef-sugar
- Conditional use of `unified_mode true` needs to warn HOT 1
- Chef/Modernize/CronDFileOrTemplate fails to flag matching resources that use string interpolation HOT 1
- Chef/Deprecations/Delivery triggers without dot-delivery directory existing HOT 5
- Chef/Modernize/CronDFileOrTemplate fails to match when the path property is used to provide the file path
- Chef/Modernize/CronDFileOrTemplate matches on /etc/cron.deny HOT 2
- Chef/Modernize/CronDFileOrTemplate triggers on cron.daily
- Error: unrecognized cop or department {{cop}} found in {{global vanilla rubocop config}}
- Chef/Modernize/CronDFileOrTemplate causes RuboCop error on non-cron file resources HOT 1
- Chef/Correctness/LazyEvalNodeAttributeDefaults does not detect nested attributes
- RuboCop URL in README uses http://rubocop.org
- Cookstyle configuration "streams" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cookstyle.