From 1f4e98ac30c9367c094be41cfb4750e6ca8125e6 Mon Sep 17 00:00:00 2001 From: Romanitho <96626929+Romanitho@users.noreply.github.com> Date: Mon, 2 Sep 2024 22:23:24 +0000 Subject: [PATCH] [MegaLinter] Apply linters automatic fixes --- .github/cspell.json | 2 +- Sources/Winget-AutoUpdate/Winget-Install.ps1 | 2 +- Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 | 2 +- Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/cspell.json b/.github/cspell.json index 8b9e341..b237755 100644 --- a/.github/cspell.json +++ b/.github/cspell.json @@ -49,4 +49,4 @@ "*.csv", "*.txt" ] -} \ No newline at end of file +} diff --git a/Sources/Winget-AutoUpdate/Winget-Install.ps1 b/Sources/Winget-AutoUpdate/Winget-Install.ps1 index 055433e..033b925 100644 --- a/Sources/Winget-AutoUpdate/Winget-Install.ps1 +++ b/Sources/Winget-AutoUpdate/Winget-Install.ps1 @@ -272,7 +272,7 @@ function Add-WAUWhiteList ($AppID) { } Write-ToLog "-> Add $AppID to WAU included_apps.txt" #Add App to "included_apps.txt" - Add-Content -path $WhiteList -Value "`n$AppID" -Force + Add-Content -Path $WhiteList -Value "`n$AppID" -Force #Remove duplicate and blank lines $file = Get-Content $WhiteList | Select-Object -Unique | Where-Object { $_.trim() -ne "" } | Sort-Object $file | Out-File $WhiteList diff --git a/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 b/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 index 82559b4..398ca8d 100644 --- a/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 @@ -1,6 +1,6 @@ #Function to get the outdated app list, in formatted array -function Get-WingetOutdatedApps { +function Get-WingetOutdatedApp { class Software { [string]$Name [string]$Id diff --git a/Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 b/Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 index 2b4e09c..fa342d3 100644 --- a/Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 @@ -1,4 +1,4 @@ -#Function to rotate the logs +#Function to rotate the logs function Invoke-LogRotation ($LogFile, $MaxLogFiles, $MaxLogSize) {