diff --git a/tasks/lint/super-linter.sh b/tasks/lint/super-linter.sh index e7102c3..c4a40d1 100755 --- a/tasks/lint/super-linter.sh +++ b/tasks/lint/super-linter.sh @@ -127,10 +127,11 @@ if [ "$NATIVE" = "true" ]; then git ls-files else if [ -n "$_MERGE_BASE" ]; then - # Files changed in the PR + uncommitted changes + # Files changed in the PR + uncommitted (staged and unstaged) changes { git diff --name-only --diff-filter=d "$_MERGE_BASE"...HEAD git diff --name-only --diff-filter=d + git diff --name-only --diff-filter=d --cached } | sort -u else # No merge base found (e.g. shallow clone), fall back to all files