PowerShell Team has announced FxCop rules for cmdlet authors.
List of rules
- AcceptForceParameterWhenCallingShouldContinue
- AllCmdletsShouldAcceptPipelineInput
- CallShouldProcessOnlyIfDeclaringSupport
- DefineCmdletInTheCorrectNamespace
- DoNotAccessPipelineParametersOutsideProcessRecord
- DoNotCallCertainHostMethods
- DoNotUseConsoleApi
- FollowCmdletClassNamingConvention
- OverrideProcessRecordIfAcceptingPipelineInput
- ParameterShouldHaveConsistentTypePerNoun
- UseCredentialAttributeForPSCredentialParameter
- UseOnlyApprovedCharactersInVerbsAndNouns
- UseOnlyStandardVerbs
- UsePascalCasingInVerbsAndNouns
- UseRecommendedParameterTypes
- UseSingularNouns
- UseSingularParameterNames
- UseSwitchParameterInsteadOfBoolean