Skip to content

Commit

Permalink
Test failing PSSA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnybottles authored Nov 20, 2024
1 parent 2635344 commit 2f29338
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Hawk/tests/general/Test-PreCommitHook.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function Test-AdvancedFunction {
#region Bad Code Examples - Uncomment to test PSScriptAnalyzer
# NOTE: The following code is intentionally written with issues to demonstrate PSScriptAnalyzer rules

<#

# Bad function - Multiple issues
function test-badfunction { # Wrong capitalization
param([string]$param1) # Missing CmdletBinding
Expand All @@ -78,7 +78,8 @@ function Test-BadValidation {

# Aliases and positional parameters
dir C:\ | where {$_.Length -gt 1000} # Using aliases instead of full cmdlet names
#>


#endregion

#region Testing Instructions
Expand Down

0 comments on commit 2f29338

Please sign in to comment.