Expand Minimize

Avoid using Backticks (`) to spread code over multiple lines

Backticks are used to spread lines of code in PowerShell over multiple lines. The downside is that they are difficult to see and hard to maintain and grasp a clear intent for the code structure.

CheckId SPC059104
TypeName AvoidUsageofBackTicks
Severity Warning
Type PowerShell File

Bad Practice

Write-Error `  'Hello World';
Good Practice
Write-Error 'Hello World';

Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.