Skip to content

feat!: rename bm25 APIs to paradedb and always use the paradedb access method #101

feat!: rename bm25 APIs to paradedb and always use the paradedb access method

feat!: rename bm25 APIs to paradedb and always use the paradedb access method #101

Workflow file for this run

# workflows/lint-format.yml
#
# Lint Format
# Lint the project's file trailing spaces, line endings, and format.
name: Lint Format
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
concurrency:
group: lint-format-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint-format:
name: Lint File Endings & Trailing Whitespaces
runs-on: ubuntu-latest
steps:
- name: Checkout Git Repository
uses: actions/checkout@v7
- name: Check for CRLF Files
run: |
FILES=$(git ls-files --eol | grep crlf || true)
if [[ ! -z "$FILES" ]]; then
echo "The following files have incorrect line endings:"
echo "$FILES"
false
fi
- name: Check for Trailing Whitespaces
run: |
FILES=$(git grep -Ilr '[[:blank:]]$' || true)
if [[ ! -z "$FILES" ]]; then
echo "The following files have trailing whitespaces:"
echo "$FILES"
exit 1
fi
- name: Check for Missing Final Newlines
run: |
MISSING=""
while IFS= read -r file; do
if [[ -s "$file" && -n "$(tail -c1 "$file")" ]]; then
MISSING="${MISSING}${file}"$'\n'
fi
done < <(git grep -Il '.')
if [[ -n "$MISSING" ]]; then
echo "The following files are missing a trailing newline:"
echo "$MISSING"
exit 1
fi