-
Notifications
You must be signed in to change notification settings - Fork 153
Create a rule for "execute resource used to install packages" #180
Comments
This is still a good idea. |
I'd support this sort of rule, but we'd have to make sure to be pretty cautious in how it would be implemented since there's a lot of operations with those tools that don't involve installing/removing packages. We'd want to make sure to run any solution against all cookbooks on Supermarket to check for false positives. |
that's what heh, no but seriously, trying to eliminate false-positives if fine for the catchable stuff... but there's actually very little. (yum|apt) list avail? There's APIs for that in Chef. (yum|apt) search? wtf yum-shell - I want this to give you a lint warning, holy hell. The more legitimate things are mostly in other commands like 'createrepo' and such. I'm sure there's some legitimate stuff we should try to not warn on, and I'm all for running it over common stuff in supermarket, but we shouldn't hold up good rules because there might be some valid use case. There' TONS of lint rules for which there might be valid use cases. |
Moved over to Cookstyle in chef/cookstyle#257 |
In a similar idea to FC040 and FC041, I think a rule used to identify when an execute or script block is used to run commands for installing packages would be useful:
The text was updated successfully, but these errors were encountered: