Hey PowerShell peeps, I've got a couple "soft" questions around PowerShell naming conventions for my module. So I just put out a freshly minted prerelease module last night called GitClean (https://github.com/deadlydog/PowerShell.GitClean). It's very simple and the purpose is simply to run git clean -xfd across many local git repos. It only has one cmdlet, which I currently have named Clean-GitRepositories.
Clean-GitRepositories violates 2 PSScriptAnalyzer rules:
- Clean is not an approved verb.
- It wants me to not use plurals (by calling it
Clean-GitReposiory)
Typically I try to follow the PSScriptAnalyzer conventions, but am conflicted in this case:
Cleanis a git operation, and there doesn't seem to be an approved verb that is similar to it.- The whole point of the module is to clean multiple git repos. If I wanted to clean a single repo, I'd just use the native git operation without PowerShell.
I'm curious to get others' thoughts on this.
Do you think it's fine to use Clean as the verb? I'm not sure what I would use otherwise.
And do you think I should change it to the singular Repository, or does it make sense to stick with Repositories? This is the one I'm more conflicted about.
Thanks in advance!