psconfluencepublisher/scripts/analyze.ps1
Rodweil, Theodor 46b1b7c83f
refactor: make this a valid nuget package for Powershell gallery
feat: add build environment scripts
2023-08-07 20:56:50 +02:00

16 lines
318 B
PowerShell
Executable file

#! /usr/bin/pwsh
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
$ErrorView = "NormalView"
$basePath = Join-Path $PSScriptRoot '..'
Import-Module PSScriptAnalyzer -ErrorAction Stop -Force
Invoke-ScriptAnalyzer `
-Path (Join-Path -Path $basePath 'src') `
-Settings PSGallery `
-Recurse