load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = ["linter.go"],
    importpath = "github.com/google/go-jsonnet/linter",
    visibility = ["//visibility:public"],
    deps = [
        "//:go_default_library",
        "//ast:go_default_library",
        "//internal/errors:go_default_library",
        "//internal/parser:go_default_library",
        "//linter/internal/common:go_default_library",
        "//linter/internal/traversal:go_default_library",
        "//linter/internal/types:go_default_library",
        "//linter/internal/variables:go_default_library",
    ],
)

go_test(
    name = "go_default_test",
    srcs = ["linter_test.go"],
    data = glob(["testdata/**"]),
    embed = [":go_default_library"],
    deps = [
        "//:go_default_library",
        "//internal/testutils:go_default_library",
    ],
)
