#!/bin/sh # script/lint-fix: run the linter's autofixer. Rewrites files in place # for every finding the enabled linters know how to fix; findings # without an autofix are reported but left alone (exit status is # nonzero while any remain). # # Delegates to script/lint so the autofixer is the same pinned linter # version that script/lint and CI use - fixes written by a different # version are not necessarily fixes for the version that gates. set -eu SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)" main() { exec "$SCRIPT_DIR/lint" --fix "$@" } main "$@"