mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 11:53:39 +00:00
lint: check copyright headers #36967
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36967
Loading…
Reference in a new issue
No description provided.
Delete branch "lint_copyright_header"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Followsup to https://github.com/bitcoin/bitcoin/pull/34106#issuecomment-7138103662.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Earlier concerns neither republished nor resolved: 1 minor finding. See the Run archive linked from the Review report for their assessments.
🔵 Suggestion · Copyright lint skips Objective-C++ and CMake sources
The pathspec omits tracked
.mmand.cmakefiles, so missing headers in those formats go unchecked even though the existing Objective-C++ headers already satisfy the predicate.Location:
test/lint/test_runner/src/lint_docs.rs:39(head).Review coverage was incomplete.
Reviewed:
801b7e82b45f· Review report · Previous reportspermalink
Concept ACK, less review burden when this is automatically checked.
I think in a follow-up we should just bite the bullet and standardize everything to a single
Copyright (c) The Bitcoin Core developersheader, but best to get this in first.thx, I think it makes sense to automate this boilerplate going forward, instead of spending manual (recurring) review on this.
I think there is one ci file which is missing the
The.could make sense to add it in both?
Thanks, changed both.
ACK
2dfb2ab5e0, non-blocking suggestionsnit: might be useful to feedback which file failed? my llm tells me
let text = fs::read_to_string(file).unwrap_or_else(|e| panic!("Failed to read {file}: {e}"));would be a good alternative but i'm not a rustacean.I think .rs, .cmake and CMakeLists files are also common enough to be included here?
Many of these are MIT license and heavily modified by us, so I think we can just merge headers and remove exclusion for a lot of these?
git diff on
2dfb2ab5e0nit
I think you're right. Have pushed that up.
I think this was written by Mara for Bitcoin Core, not external
re-ACK
19f4b1f32fnit: this diff is in the wrong commit
Thanks, fixed.
Made not-external.
re-ACK
801b7e82b4