Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check bzlmod files #38

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

module(name = "lowrisc_misc_linters")

bazel_dep(name = "rules_python", version = "0.32.2")
Expand Down
4 changes: 4 additions & 0 deletions WORKSPACE.bzlmod
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

load("@aspect_rules_lint//lint:ruff.bzl", "fetch_ruff")
fetch_ruff()
12 changes: 11 additions & 1 deletion licence-checker/licence-checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,17 @@ def full_line_parts(self, licence_line):
([".proto"], SLASH_SLASH), # Protobuf
# Software Build Systems
(["meson.build", "toolchain.txt", "meson_options.txt"], HASH), # Meson
(["WORKSPACE", "BUILD", "BUILD.bazel", ".bzl"], HASH), # Bazel
(
[
"WORKSPACE",
"WORKSPACE.bzlmod",
"MODULE.bazel",
"BUILD",
"BUILD.bazel",
".bzl",
],
HASH,
), # Bazel
# General Tooling
([".py"], HASH), # Python
([".sh"], HASH), # Shell Scripts
Expand Down