This gist shows an example of how to create custom rules with DLLs in PSScriptAnalyzer.
There are a few obstacles to surmount before you can make custom rule DLLs work in PSScriptAnalyzer:
- The latest PSScriptAnalyzer release doesn't support custom rule DLLs. Instead you need the changes in PSScriptAnalyzer #1718.