|
| 1 | +# ******************************************************************************* |
| 2 | +# Copyright (c) 2026 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 | +load("@aspect_rules_lint//format:defs.bzl", "format_multirun", "format_test") |
| 14 | +load("@score_tooling//:defs.bzl", "copyright_checker") |
| 15 | + |
| 16 | +format_multirun( |
| 17 | + name = "format.fix", |
| 18 | + python = "@aspect_rules_lint//format:ruff", |
| 19 | + starlark = "@buildifier_prebuilt//:buildifier", |
| 20 | + visibility = [ |
| 21 | + "//visibility:public", |
| 22 | + ], |
| 23 | + yaml = "@aspect_rules_lint//format:yamlfmt", |
| 24 | +) |
| 25 | + |
| 26 | +format_test( |
| 27 | + name = "format.check", |
| 28 | + no_sandbox = True, |
| 29 | + python = "@aspect_rules_lint//format:ruff", |
| 30 | + starlark = "@buildifier_prebuilt//:buildifier", |
| 31 | + visibility = [ |
| 32 | + "//visibility:public", |
| 33 | + ], |
| 34 | + workspace = "//:MODULE.bazel", |
| 35 | + yaml = "@aspect_rules_lint//format:yamlfmt", |
| 36 | +) |
| 37 | + |
| 38 | +copyright_checker( |
| 39 | + name = "copyright", |
| 40 | + srcs = [ |
| 41 | + ".github", |
| 42 | + "docs", |
| 43 | + "examples", |
| 44 | + "packages", |
| 45 | + "rules", |
| 46 | + "templates", |
| 47 | + "tools", |
| 48 | + "//:BUILD", |
| 49 | + "//:MODULE.bazel", |
| 50 | + ], |
| 51 | + config = "@score_tooling//cr_checker/resources:config", |
| 52 | + template = "@score_tooling//cr_checker/resources:templates", |
| 53 | + visibility = ["//visibility:public"], |
| 54 | +) |
0 commit comments