mirror of
https://github.com/google/go-github.git
synced 2026-10-28 16:34:37 +08:00
11 lines
453 B
Bash
Executable File
11 lines
453 B
Bash
Executable File
#!/bin/bash -e
|
|
#/ script/run-check-structfield-settings.sh runs tools/check-structfield-settings, which
|
|
#/ checks the `structfield` linter exceptions in `.golangci.yml` against the code.
|
|
#/
|
|
#/ With no arguments it reports the exceptions that are no longer needed and the ones that
|
|
#/ are listed twice, and exits non-zero. `-fix` removes and sorts them instead.
|
|
|
|
CDPATH="" cd -- "$(dirname -- "$0")/.."
|
|
|
|
go run -C tools/check-structfield-settings . "$@"
|