Skip to content

Instantly share code, notes, and snippets.

View dbrennand's full-sized avatar
🍵
Coding 👨‍💻 & Tea drinking 🍵

Daniel Brennand dbrennand

🍵
Coding 👨‍💻 & Tea drinking 🍵
View GitHub Profile
@dbrennand
dbrennand / PSScriptAnalyzer-Git-Hook.md
Last active November 27, 2024 22:06
PowerShell 7 Pre Commit Hook using PSScriptAnalyzer

Summary

A PowerShell 7 pre commit hook to lint your PowerShell code using the PSScriptAnalyzer module.

Prerequisites

  1. PowerShell 7
  2. Git
  3. PSScriptAnalyzer module