Skip to content

Fix: Prevent GUI crash on second launch in Desktop App #37

Fix: Prevent GUI crash on second launch in Desktop App

Fix: Prevent GUI crash on second launch in Desktop App #37

Workflow file for this run

name: PowerShell Lint
permissions:
contents: read
on:
pull_request:
paths:
- '**.ps1'
- '**.psm1'
- '**.psd1'
- '.github/workflows/powershell-lint.yml'
push:
branches:
- master
- dev
paths:
- '**.ps1'
- '**.psm1'
- '**.psd1'
- '.github/workflows/powershell-lint.yml'
jobs:
lint:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install PSScriptAnalyzer
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module -Name PSScriptAnalyzer -Force -Scope CurrentUser
- name: Run PSScriptAnalyzer
shell: pwsh
run: |
# Exclude Write-Host warnings as they're useful for CI output
$results = Invoke-ScriptAnalyzer -Path . -Recurse -ReportSummary -ExcludeRule PSAvoidUsingWriteHost
if ($results) {
$results | Format-Table -AutoSize
Write-Error "PSScriptAnalyzer found issues"
exit 1
} else {
Write-Host "✅ No PowerShell issues found"
}