copywrite icon indicating copy to clipboard operation
copywrite copied to clipboard

Incorrect license is not detected/fixed

Open radeksimko opened this issue 2 years ago • 0 comments

It appears the copywrite will not detect or attempt to fix wrong license, for example in hashicorp/terraform:

If I attempt to change provider_source.go in root to contain

// SPDX-License-Identifier: MPL-2.0
$ copywrite headers
Using license identifier: BUSL-1.1
Using copyright holder: HashiCorp, Inc.

Exempting the following search patterns:
**/*.tf
**/testdata/**
**/*.pb.go
**/*_string.go
**/mock*.go
docs/plugin-protocol/**
internal/tfplugin*/**

The following files are missing headers:
$ head -2 provider_source.go
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

radeksimko avatar Feb 13 '24 12:02 radeksimko