Skip to content

Commit

Permalink
Add ktlint check for Kotlin files
Browse files Browse the repository at this point in the history
Signed-off-by: James Bradlee <[email protected]>
  • Loading branch information
testersen committed Apr 1, 2024
1 parent fd70c6f commit 7dbb501
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/quality-assurance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
args=$(gh pr diff --name-only ${{ github.event.number }} | grep -E "\.kts?$" | xargs printf -- '%s\n' | tr '\n' ' ')
fi
if [[ -n "$args" ]]; then
echo "Running ktlint on: $args"
ktlint --relative $args
fi
env:
Expand Down

0 comments on commit 7dbb501

Please sign in to comment.