opentofu/scripts/exhaustive.sh
2023-05-02 15:33:06 +00:00

11 lines
343 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
echo "==> Checking for switch statement exhaustiveness..."
# For now we're only checking a handful of packages, rather than defaulting to
# everything with a skip list.
go run github.com/nishanths/exhaustive/cmd/exhaustive ./internal/command/views/json