Use reuse pre commit hook from devcontainer#33
Use reuse pre commit hook from devcontainer#33lurtz wants to merge 3 commits intoeclipse-score:mainfrom
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run //:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
|
This is conflicting with the copyright checker from tooling. Having two tools for the same job feels wrong. Then you should also remove that one. Also it is an anti-pattern to always update the year of the copyright each year. Can we disable that kind of behavior? |
lurtz
left a comment
There was a problem hiding this comment.
Is the header style of reuse ok? I suspect the bazel based header checks will fail now
| // ******************************************************************************* | ||
| // Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| // | ||
| // See the NOTICE file(s) distributed with this work for additional | ||
| // information regarding copyright ownership. | ||
| // | ||
| // This program and the accompanying materials are made available under the | ||
| // terms of the Apache License Version 2.0 which is available at | ||
| // https://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // SPDX-FileCopyrightText: 2025, 2026 Contributors to the Eclipse Foundation | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| // ******************************************************************************* |
There was a problem hiding this comment.
is this header change ok?
| @@ -8,8 +9,10 @@ | |||
| * terms of the Apache License Version 2.0 which is available at | |||
| * https://www.apache.org/licenses/LICENSE-2.0 | |||
| * | |||
| * SPDX-FileCopyrightText: 2025, 2026 Contributors to the Eclipse Foundation | |||
| * SPDX-License-Identifier: Apache-2.0 | |||
| ********************************************************************************/ | |||
| * ******************************************************************************* | |||
| */ | |||
There was a problem hiding this comment.
is there a way to force reuse to C comments?
| - repo: https://github.com/elektrobit-contrib/eclipse-score_devcontainer | ||
| rev: c2a743cb05d841eb2236daba55c3458c0a217197 | ||
| hooks: | ||
| - id: reuse-annotate |
There was a problem hiding this comment.
the change which triggered all
It is an experiment, because Eclipse asked S-CORE if we could make use of reuse. If it works well, the bazel based logic will be removed as far as I know. The copyright year is at the moment hardcoded in the template. The easiest solution would be for me to completely omit the year and let the SPDX tag set the year. |
|
As far as I can tell there is no way to make the reuse template generic over the year. Simplest solution would be to not use the template and only use the SPDX tags or have no year in the template. If both are not feasible we have to patch reuse. |
|
As far as I can tell, Therefore I would only run Alternatively repos using bazel stick to the bazel solution. |
| @@ -1,5 +1,5 @@ | |||
| # ******************************************************************************* | |||
| # Copyright (c) 2025 Contributors to the Eclipse Foundation | |||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | |||
There was a problem hiding this comment.
we should not change the year in existing comments
There was a problem hiding this comment.
This is unavoidable if we stick to reuse annotate. I did not find a way to make it not do that.
This shows how running the reuse pre-commit hook defined in the devcontainer could look like. We might search for a better place for the pre-commit hook definitions or just keep them at the devcontainer. We have to limit the amount of repositories we use.
Makes use of the changes in eclipse-score/devcontainer#91