Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Chef/NodeSet cop with autocorrect #70

Merged
merged 5 commits into from
Jul 12, 2019
Merged

add Chef/NodeSet cop with autocorrect #70

merged 5 commits into from
Jul 12, 2019

Conversation

lamont-granquist
Copy link
Contributor

autocorrects to node.normal.

we need a Chef/NodeNormal to warn about that, but this is a tiny bit
of progress.

autocorrects to node.normal.

we need a Chef/NodeNormal to warn about that, but this is a tiny bit
of progress.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>

def on_send(node)
node_set?(node) do
add_offense(node, location: :expression, message: MSG, severity: :error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these new rules need to be warning level for now

@tas50 tas50 merged commit d558576 into master Jul 12, 2019
@chef-ci chef-ci deleted the lcg/node-set branch July 12, 2019 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants