feat(copyright): preserve less-normalized output by default#837
Merged
feat(copyright): preserve less-normalized output by default#837
Conversation
Signed-off-by: Maxim Stykow <maxim.stykow@gmail.com>
Signed-off-by: Maxim Stykow <maxim.stykow@gmail.com>
Signed-off-by: Maxim Stykow <maxim.stykow@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
files[].copyrights[].copyrightby default while still carrying normalized shadow values internally for tallies, shaping, summary fallback, and package metadata promotion--compat-mode scancodeprojection so parity-sensitive workflows can still emit ScanCode-style rendered copyright strings without changing the public field shapeAll rights reserved/ trailing-punctuation rendering delta while still surfacing real copyright-count and value differencesScope and exclusions
Intentional differences from Python
files[].copyrights[].copyright; users can opt back into ScanCode-style rendering with--compat-mode scancodeConcrete examples
From a real Kubernetes file:
vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/errors.goSource header:
// Copyright 2020 The Go Authors. All rights reserved.Copyright 2020 The Go Authors. All rights reserved.--compat-mode scancodeoutput:Copyright 2020 The Go AuthorsFrom another real Kubernetes file:
vendor/k8s.io/kube-openapi/pkg/aggregator/aggregator.goSource header:
Copyright 2017 The Kubernetes Authors.Copyright 2017 The Kubernetes Authors.--compat-mode scancodeoutput:Copyright 2017 The Kubernetes AuthorsFollow-up work
--from-jsonshould preserve more compatibility metadata than the current output shape carries