Skip to content

Commit

Permalink
Add missing trailing newline in source file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnavion committed Jan 19, 2022
1 parent 646cc8e commit 5656b55
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,12 @@ jobs:
run: ./ci/k8s-openapi-derive.sh
env:
OP: "${{ matrix.op }}"


style:
runs-on: 'ubuntu-20.04'

steps:
- uses: 'actions/checkout@v2'
- name: 'Run'
run: ./ci/style.sh
13 changes: 13 additions & 0 deletions ci/style.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -euo pipefail

find . '(' -path './.git' -o -path './target*' -o -path './k8s-openapi-codegen-common/templates' ')' -prune -o -type f -print0 |
while IFS= read -r -d '' f; do
printf '%s: ' "$f"
if [[ "$(tail -c 1 "$f" | wc -l)" -eq '0' ]]; then
echo 'missing newline'
exit 1
fi
echo 'OK'
done
2 changes: 1 addition & 1 deletion k8s-openapi-codegen/src/supported_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@ impl SupportedVersion {

Ok(())
}
}
}

0 comments on commit 5656b55

Please sign in to comment.