[PSS] Code Style validation
Posted: Tue Apr 11, 2017 3:12 pm
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
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