- Notifications
You must be signed in to change notification settings - Fork 294
Open
Description
I'm currently working on a internal style guide for new colleagues and got stuck while comparing the capitalization content.
So I read the article and discussions here. And there is one aspect I couldn't find or just have missed.
Whats about the function parameter types like:
String/stringInteger/integerSwitch/switchPSCustomObject/pscustomobject?
Should these be written in PascalCase oder is there difference between basic types and objects/classes? - In the code snippets of the Code-Layout-and-Formatting article they are in lowercase. So If i get this right, they should be in PascalCase because they match to the rule for .Net Class types, since pwsh types are basically .net Objects?
💡 Example:
function Invoke-FooBar { [CmdletBinding()] #[OutputType([String])] param ( [Parameter(Mandatory = $true)] [String]$MyParam ) begin { } process { } end { } }Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels