ci: add git hooks for local CI parity - #960
10 new issues (0 max.) of at least medium severity.
Here is an overview of what got changed by this pull request:
Issues
======
- Added 10
See the complete overview on Codacy
Annotations
Check warning on line 18 in .githooks/hooks/Invoke-PreCommit.ps1
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 95 in .githooks/hooks/Invoke-PreCommit.ps1
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 96 in .githooks/hooks/Invoke-PreCommit.ps1
codacy-production / Codacy Static Code Analysis
.githooks/hooks/Invoke-PreCommit.ps1#L96
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 101 in .githooks/hooks/Invoke-PreCommit.ps1
codacy-production / Codacy Static Code Analysis
.githooks/hooks/Invoke-PreCommit.ps1#L101
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 16 in .githooks/hooks/Invoke-PrePush.ps1
codacy-production / Codacy Static Code Analysis
.githooks/hooks/Invoke-PrePush.ps1#L16
File 'Invoke-PrePush.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 27 in .githooks/hooks/Invoke-PrePush.ps1
codacy-production / Codacy Static Code Analysis
.githooks/hooks/Invoke-PrePush.ps1#L27
File 'Invoke-PrePush.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 28 in .githooks/hooks/Invoke-PrePush.ps1
codacy-production / Codacy Static Code Analysis
.githooks/hooks/Invoke-PrePush.ps1#L28
File 'Invoke-PrePush.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 33 in .githooks/hooks/Invoke-PrePush.ps1
codacy-production / Codacy Static Code Analysis
.githooks/hooks/Invoke-PrePush.ps1#L33
File 'Invoke-PrePush.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 64 in .githooks/lib/LintHelpers.ps1
codacy-production / Codacy Static Code Analysis
.githooks/lib/LintHelpers.ps1#L64
File 'LintHelpers.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 76 in .githooks/lib/LintHelpers.ps1
codacy-production / Codacy Static Code Analysis
.githooks/lib/LintHelpers.ps1#L76
File 'LintHelpers.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.