To keep PowerShell code tidy, we should check to see if the line ends with whitespace characters. If it does, then we should recommend trimming the trailing whitespace, and even fix it automatically for the developer.
This is similar to one of the requirements in the PEP8 guideline for Python, which is validated by the Pylint module.
https://www.python.org/dev/peps/pep-0008/
Cheers,
Trevor Sullivan