Skip to content

Commit d7e4bd7

Browse files
committed
Add copyright check
1 parent 2669dee commit d7e4bd7

15 files changed

Lines changed: 176 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/copyright.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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: Copyright Check CI
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+
with:
26+
bazel-target: "run //:copyright-check" # optional, this is the default

BUILD

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+
load("@score_tooling//:defs.bzl", "copyright_checker")
15+
16+
copyright_checker(
17+
name = "copyright",
18+
srcs = [
19+
".github",
20+
"docs",
21+
"examples",
22+
"packages",
23+
"rules",
24+
"templates",
25+
"tools",
26+
"//:BUILD",
27+
"//:MODULE.bazel",
28+
],
29+
config = "@score_tooling//cr_checker/resources:config",
30+
template = "@score_tooling//cr_checker/resources:templates",
31+
visibility = ["//visibility:public"],
32+
)

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)