Skip to content

fix: improve git hooks reliability and correctness

c321a83
Select commit
Loading
Failed to load commit list.
Merged

ci: add git hooks for local CI parity #960

fix: improve git hooks reliability and correctness
c321a83
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Mar 1, 2026 in 0s

4 new issues (0 max.) of at least medium severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 4
           

See the complete overview on Codacy

Annotations

Check warning on line 18 in .githooks/hooks/Invoke-PreCommit.ps1

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

.githooks/hooks/Invoke-PreCommit.ps1#L18

File 'Invoke-PreCommit.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.

Check warning on line 94 in .githooks/hooks/Invoke-PreCommit.ps1

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

.githooks/hooks/Invoke-PreCommit.ps1#L94

File 'Invoke-PreCommit.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.

Check warning on line 95 in .githooks/hooks/Invoke-PreCommit.ps1

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

.githooks/hooks/Invoke-PreCommit.ps1#L95

File 'Invoke-PreCommit.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.

Check warning on line 100 in .githooks/hooks/Invoke-PreCommit.ps1

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

.githooks/hooks/Invoke-PreCommit.ps1#L100

File 'Invoke-PreCommit.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.