Skip to content

Commit

Permalink
Squash script analyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
devblackops committed Nov 17, 2023
1 parent 118a7b5 commit 43c4778
Show file tree
Hide file tree
Showing 8 changed files with 2,191 additions and 2,179 deletions.
1 change: 1 addition & 0 deletions Terminal-Icons/Private/Get-CurrentSettings.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function Get-CurrentSettings {
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseSingularNouns', '')]
[OutputType([hashtable])]
param(
[Preferences]$Preferences = $script:prefs,
Expand Down
6 changes: 4 additions & 2 deletions Terminal-Icons/Private/Get-ThemeStoragePath.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ function Get-ThemeStoragePath {
param()

if ($IsLinux -or $IsMacOs) {
if (-not ($basePath = $env:XDG_CONFIG_HOME)) {
$basePath = $env:XDG_CONFIG_HOME
if (-not $basePath) {
$basePath = [IO.Path]::Combine($HOME, '.local', 'share')
}
} else {
if (-not ($basePath = $env:APPDATA)) {
$basePath = $env:APPDATA
if (-not $basePath) {
$basePath = [Environment]::GetFolderPath('ApplicationData')
}
}
Expand Down
1 change: 1 addition & 0 deletions Terminal-Icons/Private/Import-Preferences.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
function Import-Preferences {
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseSingularNouns', '')]
[OutputType([Preferences])]
[cmdletbinding()]
param(
Expand Down
1 change: 1 addition & 0 deletions Terminal-Icons/Private/Save-Preferences.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function Save-Preferences {
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseSingularNouns', '')]
[cmdletbinding()]
param(
[parameter(Mandatory, ValueFromPipeline)]
Expand Down
1 change: 1 addition & 0 deletions Terminal-Icons/Public/Format-TerminalIcons.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function Format-TerminalIcons {
Outputs a colorized string with an icon prepended.
#>
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseSingularNouns', '')]
[OutputType([string])]
[CmdletBinding()]
param(
Expand Down
1 change: 1 addition & 0 deletions Terminal-Icons/Public/Get-TerminalIconsGlyphs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.LINK
Set-TerminalIconsIcon
#>
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseSingularNouns', '')]
[OutputType([String])]
[CmdletBinding()]
param(
Expand Down
4,358 changes: 2,181 additions & 2,177 deletions Terminal-Icons/Public/Invoke-TerminalIconsThemeMigration.ps1

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Terminal-Icons/Public/Set-TerminalIconsPreference.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function Set-TerminalIconsPreference {
.LINK
Get-TerminalIconsPreference
#>
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
[cmdletbinding()]
param(
[ArgumentCompleter({
Expand Down

0 comments on commit 43c4778

Please sign in to comment.