Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,12 @@ jobs:
shell: pwsh
run: |
&.\include_what_you_using_all_the_things.ps1
$files = (git diff --name-only)
foreach ($file in $files) {
$diff = (git diff $file)
echo "::warning file=$file,line=1,title=Include what you using::include_what_you_using_all_the_things.ps1 modifies this file as follows:%0A$([string]::join('%0A', (git diff $file)))"
$files = (git diff --name-only -z)
if ($files) {
$files = $files.Split("`0", [StringSplitOptions]::RemoveEmptyEntries)
foreach ($file in $files) {
$diff = (git diff $file)
echo "::warning file=$file,line=1,title=Include what you using::include_what_you_using_all_the_things.ps1 modifies this file as follows:%0A$([string]::join('%0A', (git diff $file)))"
}
exit $files.Length
}
exit $files.Length
Loading