Page 1 of 1

[PSS] Code Style validation

Posted: Tue Apr 11, 2017 3:12 pm
by Bosparan
Hi,

yet another idea inspired by my project work:

PSS already does a great job finding syntax errors. But what if you could also detect style issues in a project?
- Tabs or spaces (and how many?) for indentation?
- Variables properly styled?
-- Uppercased?
-- Lowercased?
-- Camelcased?
-- As a parameter of a function or an internal variable?
-- Illegal letters/symbols in names?
-- Blacklisted names?
-- Too short?
- braces properly placed?
- Parameter block properly laid out?
- Cmdlet binding present?

If this comes, having these rules set as a file that is part of the project would be awesome, since that too could be shared and managed as part of Github.

Cheers,
Fred

Re: [PSS] Code Style validation

Posted: Wed Apr 12, 2017 8:33 am
by DevinL
Thank you for your suggestion, I've filed an internal feature request and if we get some more information on implementing this, we'll be sure to post it here.