mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 14:41:28 -07:00
22 lines
253 B
Bash
Executable File
22 lines
253 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
args=(
|
|
--type-aware
|
|
.
|
|
)
|
|
|
|
if [[ -n "${CI:-}" ]]; then
|
|
args+=("--max-warnings=0")
|
|
else
|
|
args+=("--max-warnings=1000")
|
|
fi
|
|
|
|
# get additional args
|
|
while [[ $# -gt 0 ]]; do
|
|
args+=("$1")
|
|
shift
|
|
done
|
|
|
|
exec oxlint "${args[@]}"
|