|
| 1 | +# ******************************************************************************* |
| 2 | +# Copyright (c) 2025 Contributors to the Eclipse Foundation |
| 3 | +# |
| 4 | +# See the NOTICE file(s) distributed with this work for additional |
| 5 | +# information regarding copyright ownership. |
| 6 | +# |
| 7 | +# This program and the accompanying materials are made available under the |
| 8 | +# terms of the Apache License Version 2.0 which is available at |
| 9 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# SPDX-License-Identifier: Apache-2.0 |
| 12 | +# ******************************************************************************* |
| 13 | + |
| 14 | +module( |
| 15 | + name = "score_linter", |
| 16 | + version = "0.1.0", |
| 17 | + compatibility_level = 0, |
| 18 | +) |
| 19 | + |
| 20 | +bazel_dep(name = "bazel_skylib", version = "1.5.0") |
| 21 | +bazel_dep(name = "rules_multitool", version = "1.2.0") |
| 22 | + |
| 23 | +multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool") |
| 24 | + |
| 25 | +# Ruff Hub |
| 26 | +multitool.hub( |
| 27 | + hub_name = "ruff_hub", |
| 28 | + lockfile = "//:ruff.lock.json", |
| 29 | +) |
| 30 | +use_repo(multitool, "ruff_hub") |
| 31 | + |
| 32 | +# Actionlint Hub |
| 33 | +multitool.hub( |
| 34 | + hub_name = "actionlint_hub", |
| 35 | + lockfile = "//:actionlint.lock.json", |
| 36 | +) |
| 37 | +use_repo(multitool, "actionlint_hub") |
| 38 | + |
| 39 | +# Shellcheck Hub |
| 40 | +multitool.hub( |
| 41 | + hub_name = "shellcheck_hub", |
| 42 | + lockfile = "//:shellcheck.lock.json", |
| 43 | +) |
| 44 | +use_repo(multitool, "shellcheck_hub") |
| 45 | + |
| 46 | +# YAMLfmt Hub |
| 47 | +multitool.hub( |
| 48 | + hub_name = "yamlfmt_hub", |
| 49 | + lockfile = "//:yamlfmt.lock.json", |
| 50 | +) |
| 51 | +use_repo(multitool, "yamlfmt_hub") |
0 commit comments