Skip to content

Commit

Permalink
Test good workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnybottles authored Nov 20, 2024
1 parent 2f29338 commit fa67a23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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,8 +78,7 @@ 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 fa67a23

Please sign in to comment.