From f2ec6821aa4d13f9e4b1f7604b6cd2ebcc14a307 Mon Sep 17 00:00:00 2001 From: David May <49894298+wass3rw3rk@users.noreply.github.com> Date: Wed, 11 Oct 2023 09:12:10 -0500 Subject: [PATCH] chore(license): update source code headers + copyright year (#46) --- .github/README.md | 4 ++-- .golangci.yml | 4 +--- Dockerfile | 4 +--- LICENSE | 2 +- Makefile | 4 +--- cmd/vela-github-release/command.go | 4 +--- cmd/vela-github-release/command_test.go | 4 +--- cmd/vela-github-release/config.go | 4 +--- cmd/vela-github-release/config_test.go | 4 +--- cmd/vela-github-release/create.go | 4 +--- cmd/vela-github-release/create_test.go | 4 +--- cmd/vela-github-release/delete.go | 4 +--- cmd/vela-github-release/delete_test.go | 4 +--- cmd/vela-github-release/download.go | 4 +--- cmd/vela-github-release/download_test.go | 4 +--- cmd/vela-github-release/gh.go | 4 +--- cmd/vela-github-release/gh_test.go | 4 +--- cmd/vela-github-release/list.go | 4 +--- cmd/vela-github-release/list_test.go | 4 +--- cmd/vela-github-release/main.go | 6 ++---- cmd/vela-github-release/plugin.go | 4 +--- cmd/vela-github-release/upload.go | 4 +--- cmd/vela-github-release/upload_test.go | 4 +--- cmd/vela-github-release/view.go | 4 +--- cmd/vela-github-release/view_test.go | 4 +--- version/version.go | 4 +--- 26 files changed, 28 insertions(+), 76 deletions(-) diff --git a/.github/README.md b/.github/README.md index d8f131f..921f274 100644 --- a/.github/README.md +++ b/.github/README.md @@ -28,7 +28,7 @@ Please see our [support](SUPPORT.md) documentation for further instructions. ## Copyright and License ``` -Copyright (c) 2022 Target Brands, Inc. +Copyright 2022 Target Brands, Inc. ``` -[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) +[Apache License, Version 2.0](../LICENSE) diff --git a/.golangci.yml b/.golangci.yml index 8dfcde3..272f334 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -35,9 +35,7 @@ linters-settings: # https://github.com/denis-tingaikin/go-header goheader: template: |- - Copyright (c) {{ YEAR }} Target Brands, Inc. All rights reserved. - - Use of this source code is governed by the LICENSE file in this repository. + SPDX-License-Identifier: Apache-2.0 # https://github.com/client9/misspell misspell: diff --git a/Dockerfile b/Dockerfile index 3e15830..0a3da99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,4 @@ -# Copyright (c) 2022 Target Brands, Inc. All rights reserved. -# -# Use of this source code is governed by the LICENSE file in this repository. +# SPDX-License-Identifier: Apache-2.0 # set a global Docker argument for the default CLI version # diff --git a/LICENSE b/LICENSE index 2954d18..f3c02b3 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright (c) 2022 Target Brands, Inc. +Copyright 2022 Target Brands, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/Makefile b/Makefile index 4be89df..28d9b4b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,5 @@ -# Copyright (c) 2022 Target Brands, Inc. All rights reserved. -# -# Use of this source code is governed by the LICENSE file in this repository. +# SPDX-License-Identifier: Apache-2.0 # capture the current date we build the application from BUILD_DATE = $(shell date +%Y-%m-%dT%H:%M:%SZ) diff --git a/cmd/vela-github-release/command.go b/cmd/vela-github-release/command.go index a3512c7..1a6db75 100644 --- a/cmd/vela-github-release/command.go +++ b/cmd/vela-github-release/command.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/command_test.go b/cmd/vela-github-release/command_test.go index 1da97b3..04461e5 100644 --- a/cmd/vela-github-release/command_test.go +++ b/cmd/vela-github-release/command_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/config.go b/cmd/vela-github-release/config.go index 5c888c8..1bddb6f 100644 --- a/cmd/vela-github-release/config.go +++ b/cmd/vela-github-release/config.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/config_test.go b/cmd/vela-github-release/config_test.go index d2b93ea..3816252 100644 --- a/cmd/vela-github-release/config_test.go +++ b/cmd/vela-github-release/config_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/create.go b/cmd/vela-github-release/create.go index d850885..78b007c 100644 --- a/cmd/vela-github-release/create.go +++ b/cmd/vela-github-release/create.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/create_test.go b/cmd/vela-github-release/create_test.go index d9d0cb4..23628e9 100644 --- a/cmd/vela-github-release/create_test.go +++ b/cmd/vela-github-release/create_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/delete.go b/cmd/vela-github-release/delete.go index d576a7c..adb8ca7 100644 --- a/cmd/vela-github-release/delete.go +++ b/cmd/vela-github-release/delete.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 // nolint: dupl // ignore code similarity to keep consistent structure package main diff --git a/cmd/vela-github-release/delete_test.go b/cmd/vela-github-release/delete_test.go index 00c6ec1..8e16a9e 100644 --- a/cmd/vela-github-release/delete_test.go +++ b/cmd/vela-github-release/delete_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/download.go b/cmd/vela-github-release/download.go index 33a5b2b..2cac1c1 100644 --- a/cmd/vela-github-release/download.go +++ b/cmd/vela-github-release/download.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/download_test.go b/cmd/vela-github-release/download_test.go index 40e82dc..a4d8bd6 100644 --- a/cmd/vela-github-release/download_test.go +++ b/cmd/vela-github-release/download_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/gh.go b/cmd/vela-github-release/gh.go index 8b5bd81..261c5d8 100644 --- a/cmd/vela-github-release/gh.go +++ b/cmd/vela-github-release/gh.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/gh_test.go b/cmd/vela-github-release/gh_test.go index 96ee6e5..f971a46 100644 --- a/cmd/vela-github-release/gh_test.go +++ b/cmd/vela-github-release/gh_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/list.go b/cmd/vela-github-release/list.go index d7951db..462f4fe 100644 --- a/cmd/vela-github-release/list.go +++ b/cmd/vela-github-release/list.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/list_test.go b/cmd/vela-github-release/list_test.go index 76aea12..84dcf6f 100644 --- a/cmd/vela-github-release/list_test.go +++ b/cmd/vela-github-release/list_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/main.go b/cmd/vela-github-release/main.go index e031e49..2ef4154 100644 --- a/cmd/vela-github-release/main.go +++ b/cmd/vela-github-release/main.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main @@ -34,7 +32,7 @@ func main() { Name: "vela-github-release", HelpName: "vela-github-release", Usage: "Vela Github Release plugin for managing Gihub Releases in a Vela Pipeline.", - Copyright: "Copyright (c) 2022 Target Brands, Inc. All rights reserved.", + Copyright: "Copyright 2022 Target Brands, Inc. All rights reserved.", Authors: []*cli.Author{ { Name: "Vela Admins", diff --git a/cmd/vela-github-release/plugin.go b/cmd/vela-github-release/plugin.go index 3693819..d514032 100644 --- a/cmd/vela-github-release/plugin.go +++ b/cmd/vela-github-release/plugin.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/upload.go b/cmd/vela-github-release/upload.go index e966ec4..0207d5b 100644 --- a/cmd/vela-github-release/upload.go +++ b/cmd/vela-github-release/upload.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/upload_test.go b/cmd/vela-github-release/upload_test.go index cf298b6..4112e30 100644 --- a/cmd/vela-github-release/upload_test.go +++ b/cmd/vela-github-release/upload_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-github-release/view.go b/cmd/vela-github-release/view.go index 8ebf574..e8010a9 100644 --- a/cmd/vela-github-release/view.go +++ b/cmd/vela-github-release/view.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 // nolint: dupl // ignore code similarity to keep consistent structure package main diff --git a/cmd/vela-github-release/view_test.go b/cmd/vela-github-release/view_test.go index 144b4ed..ac755b9 100644 --- a/cmd/vela-github-release/view_test.go +++ b/cmd/vela-github-release/view_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/version/version.go b/version/version.go index acd7f6e..192ceab 100644 --- a/version/version.go +++ b/version/version.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package version