chef / cookstyle

A linting tool that helps you to write better Chef Infra cookbooks and InSpec profiles by detecting and automatically correcting style, syntax, and logic mistakes in your code.
Apache License 2.0
107 stars 54 forks source link

Fix #970: Add extra stub to pass ConfigValidator #971

Closed dafyddcrosby closed 2 months ago

dafyddcrosby commented 4 months ago

We need to pass TargetChefVersion into the default config, otherwise the ConfigValidator#each_invalid_parameter method complains

Description

Related Issue

Types of changes

Checklist:

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

tpowell-progress commented 2 months ago

Lets use nil instead, which will make the monkeypatch use '99', which I think is the desired behavior.

@jaymzh calling this resolved, per @dafyddcrosby's latest changes.