Skip to content

Commit d79a03b

Browse files
committed
1 parent efe652b commit d79a03b

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tasks:
2121
cmds:
2222
- dprint fmt
2323
- nixpkgs-fmt ./*.nix
24-
- pwsh -Command "Invoke-ScriptAnalyzer -Recurse -ReportSummary -EnableExit -Settings CodeFormatting -Fix -Path src"
24+
- pwsh -File ./tools/lint-fix.ps1
2525
lint:
2626
cmds:
2727
- dprint check

tools/lint-fix.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Do NOT use 'Invoke-ScriptAnalyzer -Recurse -Path .' It includes dotfiles as .direnv
2+
# https://github.com/PowerShell/PSScriptAnalyzer/issues/561
3+
Get-ChildItem -Recurse -Path . -Include "*.ps1" |
4+
ForEach-Object {
5+
echo $_.FullName
6+
Invoke-ScriptAnalyzer -Recurse -ReportSummary -EnableExit -Settings CodeFormatting -Fix -Path $_.FullName
7+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)