Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
chef.psm1 PowerShell Module uses unapproved verbs #8525
The Chef powershell module uses unapproved verbs for naming functions and should be updated to reflect proper coding techniques.
Current -> Suggested
The win32 Kernel code at the top could be refactored following the example at the end of this page to make it more readable. https://www.raydbg.com/2017/Call-Native-Win32-API-in-PowerShell/
1 - rename the functions to the suggested or to a compatible verb-noun format
Attached is the suggested changes already made. I included help tips and got rid of extra whitespace as well.
Any hard-coded references to the functions will be impacted. However, since only the chef* functions are actually exported for use by the end-user, the impact should be minimal.