Skip to content

Commit 32e72a7

Browse files
tmeckelThomas Meckel
authored andcommitted
refactor: update entry points for PSScriptAnalyzer hooks .pre-commit-hooks.yaml
1 parent e142f18 commit 32e72a7

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.pre-commit-hooks.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,39 @@
22
- id: psscriptanalyzer-check
33
name: check PowerShell code using PSScriptAnalyzer
44
language: script
5-
entry: PSScriptAnalyzer-wrapper.ps1 -Check
5+
entry: pre-commit-run.sh -Check
66
args:
77
- -ExcludeRule
88
- PSUseBOMForUnicodeEncodedFile
99
- -Fix
1010
types:
1111
- file
1212
files: \.ps[dm]?1$
13+
1314
- id: psscriptanalyzer-format
1415
name: format PowerShell code using PSScriptAnalyzer
1516
language: script
16-
entry: PSScriptAnalyzer-wrapper.ps1 -Format
17+
entry: pre-commit-run.sh -Format
1718
types:
1819
- file
1920
files: \.ps[dm]?1$
21+
2022
- id: psscriptanalyzer-check-docker
2123
name: check PowerShell code using PSScriptAnalyzer
2224
language: docker
23-
entry: PSScriptAnalyzer-wrapper.ps1 -Check
25+
entry: -Check
2426
args:
2527
- -ExcludeRule
2628
- PSUseBOMForUnicodeEncodedFile
2729
- -Fix
2830
types:
2931
- file
3032
files: \.ps[dm]?1$
33+
3134
- id: psscriptanalyzer-format-docker
3235
name: format PowerShell code using PSScriptAnalyzer
3336
language: docker
34-
entry: PSScriptAnalyzer-wrapper.ps1 -Format
37+
entry: -Format
3538
types:
3639
- file
3740
files: \.ps[dm]?1$

0 commit comments

Comments
 (0)