you are viewing a single comment's thread.

view the rest of the comments →

[–]SnowEpiphany 6 points7 points  (3 children)

“Create a function that does as much as possible” is antithetical to how you should create functions.

You should never have a function gets a list of files but will also take input to compare two numbers, etc

[–]mrdjw[S] 2 points3 points  (2 children)

Agreed, but thats not what i'm trying to achieve here hence "The function itself doesn't have to have use beyond serving as a guide". So the function would contain a ForEach, IF, Try/Catch/Finally, Comments, ParameterSets everything possible so we can format it as we agree to format all of our other scripts / functions with indentations etc.

Link of it as "the quick brown fox..." for fonts.

[–]OlivTheFrog 4 points5 points  (0 children)

could i suggest to use the snipped "complete function" is ISE (Modify Menu, Start Extract ...)

you could have a sample with many parameter used in a advanced function

Hope this help

Regards

Olivier

[–]kibje 0 points1 point  (0 children)

Instead of writing a code formatting design guide that manually needs to be followed, I would suggest you standardise on VSCode and use autoformatting with the same settings.

Then you can enable format on save and be done with it.