Skip to content

Use reuse lint instead of reuse annotate#100

Open
lurtz wants to merge 3 commits intoeclipse-score:mainfrom
elektrobit-contrib:reuse-improvements
Open

Use reuse lint instead of reuse annotate#100
lurtz wants to merge 3 commits intoeclipse-score:mainfrom
elektrobit-contrib:reuse-improvements

Conversation

@lurtz
Copy link
Contributor

@lurtz lurtz commented Feb 25, 2026

reuse annotate was never meant to be run without human interaction and is unsuited to be run in CI environments. reuse lint is much more reliable.

Some cleanup was also done for stuff not needed for reuse lint

@lurtz lurtz marked this pull request as ready for review February 25, 2026 22:32
- id: reuse lint
name: Check copyright headers with reuse lint
entry: ./scripts/run_reuse_lint.sh
language: unsupported_script

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does that mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://pre-commit.com/#unsupported_script

It basically tells pre-commit just to invoke a shell script without extra sandboxing.

annotate was never meant to be run without human intervention and reuse lint thus works more reliable
@lurtz lurtz force-pushed the reuse-improvements branch from 218c578 to fdf05cc Compare February 26, 2026 19:44
@lurtz
Copy link
Contributor Author

lurtz commented Feb 27, 2026

FYI the minimum copyright header this can enforce is

# Copyright (c) <year> Contributors to the Eclipse Foundation
# SPDX-License-Identifier: Apache-2.0

I now made up my mind, what the best combination of tools is.

We should run reuse lint as a cheap check. opengrep will then do the more comprehensive check. Because the opengrep solution is custom made, it could miss some spots to which reuse lint could point us to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants