Skip to content

Commit 6b8ed3f

Browse files
committed
Add copyright check
1 parent 2669dee commit 6b8ed3f

19 files changed

Lines changed: 1985 additions & 123 deletions

.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.3.1

.github/workflows/checks.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
14+
name: S-CORE CI Checks
15+
16+
on:
17+
pull_request:
18+
push:
19+
branches:
20+
- main
21+
22+
jobs:
23+
copyright-check:
24+
uses: eclipse-score/cicd-workflows/.github/workflows/copyright.yml@main
25+
bzlmod-lock:
26+
uses: eclipse-score/cicd-workflows/.github/workflows/bzlmod-lock-check.yml@c1c90b1a82a1fab0fc202979dde6686b2162d5a8 # v0.0.0
27+
with:
28+
working-directory: .

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@
1212
# *******************************************************************************
1313

1414
# Bazel
15-
MODULE.bazel.lock
1615
bazel-*

BUILD

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
)

MODULE.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ bazel_dep(name = "score_bazel_platforms", version = "0.1.1")
3232
# C++ Rules for Bazel
3333
# *******************************************************************************
3434
bazel_dep(name = "rules_cc", version = "0.2.14")
35+
36+
# *******************************************************************************
37+
# Tools for chechin
38+
# *******************************************************************************
39+
bazel_dep(name = "score_tooling", version = "1.1.2")

MODULE.bazel.lock

Lines changed: 862 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# *******************************************************************************
2-
# Copyright (c) 2025 Contributors to the Eclipse Foundation
2+
# Copyright (c) 2026 Contributors to the Eclipse Foundation
33
#
44
# See the NOTICE file(s) distributed with this work for additional
55
# information regarding copyright ownership.
@@ -10,7 +10,6 @@
1010
#
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
13-
1413
project = "S-CORE Bazel C/C++ Toolchain configurations"
1514
project_url = "https://eclipse-score.github.io/bazel_cpp_toolchains"
1615
version = "0.1"

docs/index.rst

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
..
2-
*******************************************************************************
3-
Copyright (c) 2025 Contributors to the Eclipse Foundation
4-
5-
See the NOTICE file(s) distributed with this work for additional
6-
information regarding copyright ownership.
7-
8-
This program and the accompanying materials are made available under the
9-
terms of the Apache License Version 2.0 which is available at
10-
https://www.apache.org/licenses/LICENSE-2.0
11-
12-
SPDX-License-Identifier: Apache-2.0
13-
*******************************************************************************
14-
2+
# *******************************************************************************
3+
# Copyright (c) 2026 Contributors to the Eclipse Foundation
4+
#
5+
# See the NOTICE file(s) distributed with this work for additional
6+
# information regarding copyright ownership.
7+
#
8+
# This program and the accompanying materials are made available under the
9+
# terms of the Apache License Version 2.0 which is available at
10+
# https://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# SPDX-License-Identifier: Apache-2.0
13+
# *******************************************************************************
1514
Bazel C/C++ Toolchain Config Documentation
1615
============================
1716

0 commit comments

Comments
 (0)