Skip to content

Commit 5ada29c

Browse files
committed
Add copyright check
1 parent 2669dee commit 5ada29c

16 files changed

Lines changed: 217 additions & 122 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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
formatting-check:
26+
uses: eclipse-score/cicd-workflows/.github/workflows/format-check.yml@main
27+
# license-check:
28+
# uses: eclipse-score/cicd-workflows/.github/workflows/license-check.yml@main
29+
# secrets:
30+
# dash-api-token: ${{ secrets.ECLIPSE_GITLAB_API_TOKEN }}
31+
# static-analysis:
32+
# uses: eclipse-score/cicd-workflows/.github/workflows/static-analysis.yml@main

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")

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

examples/asan_test.cpp

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
/********************************************************************************
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-
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+
********************************************************************************/
1413
#include <gtest/gtest.h>
1514

1615
// Reproduce the buggy logic as a callable function (rather than a real main()).

examples/lsan_test.cpp

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
/********************************************************************************
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-
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+
********************************************************************************/
1413
#include <gtest/gtest.h>
1514
#include <cstdlib>
1615

examples/main.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/********************************************************************************
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-
********************************************************************************/
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+
********************************************************************************/
1313
#include <iostream>
1414

1515
int main() {

examples/main_pthread.cpp

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
/********************************************************************************
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-
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+
********************************************************************************/
1413
#include <iostream>
1514
#include <pthread.h>
1615

0 commit comments

Comments
 (0)