Comments (8)
And yes I have local workarounds in place, but it would be nice if cookstyle worked out of the box with the ruby that ships with chefdk
from cookstyle.
@kisoku Which chef-dk release are you on?
from cookstyle.
miyamoto [14:45:13] fastly $ chef --version
Chef Development Kit Version: 1.1.16
chef-client version: 12.17.44
delivery version: master (83358fb62c0f711c70ad5a81030a6cae4017f103)
berks version: 5.2.0
kitchen version: 1.14.2
from cookstyle.
Here's my workaround. I shove this in a local .rubocop.yml
AllCops:
TargetRubyVersion: 2.3
from cookstyle.
We might just need to require 2.3 in cookstyle and shove that into our config there.
from cookstyle.
community cookbooks probably still need to support ruby 2.0, certainly ruby 2.1 and barfing on the squiggly heredoc is probably a feature, not a bug.
from cookstyle.
to be more precise: chef-client 12.5 is still supported by community cookbooks and it shipped with ruby 2.0 so while 12.5 is supported by community cookbooks they MUST NOT use 2.3 features like squiggly heredoc.
we only moved to ruby 2.1 in 12.8, we finally moved to 2.3 in 12.14.x
once the community cookbooks no longer support chef-client versions < 12.14.x then the default parser can be bumped to 2.3
from cookstyle.
I've locked Cookstyle to Ruby 2.0 for 1.4.0 since we shipped 2.0 in the 12.X chef releases. Once we EOL Chef 12 we'll be able to bump to 2.4.0 which shipped with Chef 13. Until then we're going to have to keep supporting old Ruby :(
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.