title: PowerShell Aliases, PSScriptAnalyzer and VSCode
body: <p>Is there a way to suppress <code>PSScriptAnalyzer</code> from highlighting <code>alias</code> warnings? e.g.</p>
  
  <pre><code>'rm' is an alias of 'Remove-Item'. Aliases can introduce possible problems and make scripts hard to maintain. Please consider changing alias to its full content.
  </code></pre>
  
  <p>Aliases in PowerShell are extremely useful. I have a simple rule: I only ever use the <em>rational</em> built-in aliases in scripts (I ignore the strange ones). Why? Well, most of these particular aliases are now 13 years old and have never changed (PowerShell 1.0 release November 14, 2006). So, for example, <code>%</code> or <code>ls</code> or <code>cd</code> are reliable in 99.99% of cases. I consider 99.99% reliability to be "good enough". Possibly the single-most-over-repeated comment on <em>all</em> PowerShell StackOverflow questions is "<em>Note: it is not recommended to use aliases in PowerShell scripts as they can change!</em>" (not recommended by <em>whom</em> I often wonder? God? ;-) )</p>
  
  <p>However, <code>PSScriptAnalyzer</code> in VSCode highlights all aliases as <em>problems</em> so that my current 7,000 line script has 488 such "problems". Is there a way to tell <code>PSScriptAnalyzer</code> that I like aliases, I intend to use aliases for the vastly more concise code, clarity, and greatly improved readability that they give me, and so I do not consider them to be <em>problems</em>?</p>