Repository navigation
Integrate InSpec check with Cookstyle - #5618
Conversation
|
✔️ Deploy Preview for chef-inspec ready! 🔨 Explore the source changes: ec7526f 🔍 Inspect the deploy log: https://app.netlify.com/sites/chef-inspec/deploys/6156bb1ee6fa0200084c8b13 😎 Browse the preview: https://deploy-preview-5618--chef-inspec.netlify.app/inspec/cli |
3c4583f to
ba7196a
Compare
clintoncwolfe
left a comment
There was a problem hiding this comment.
Couple of minor things to change - most important one being we need to call cookstyle without specifying the exact rules, we want all the rules in the InSpec category.
|
Sadly right now you can't say --only InSpec. We're the only people doing the 3 level configs and that's a use case they haven't gotten working. It's something we need to track down and fix so people can do the same thing with the Chef cops. What you can do is this though:
|
|
SonarCloud Quality Gate failed.
|
I have made the minor changes as requested @clintoncwolfe. About not specifying the exact rules, I tried using the cop categories mentioned by @tas50 but since most of those cops definitions do not exist for InSpec right now in cookstyle gem, those were overriding the offenses produced by the one cop which does exist and was returning zero offenses. So for now i have only included |
|
Before we can merge this, we need to update the CLI docs with an updated description of what |
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2c2f7aa to
11b9196
Compare
cookstyle relevant changes in inspec check Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
|
SonarCloud Quality Gate failed.
|








Signed-off-by: Nikita Mathur nikita.mathur@chef.io
Description
InSpec check now also checks for code offenses using
cookstylegem.Only using InSpec cops of cookstyle for the check.
Related Issue
Closes #5611
Types of changes
Checklist: