Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(license): update source code headers + copyright year #156

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Please see our [support](SUPPORT.md) documentation for further instructions.
## Copyright and License

```
Copyright (c) 2022 Target Brands, Inc.
Copyright 2020 Target Brands, Inc.
```

[![license](https://img.shields.io/crates/l/gl.svg)](LICENSE)
4 changes: 1 addition & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
#
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Apache License
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright (c) 2022 Target Brands, Inc.
Copyright 2020 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.
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

# capture the current date we build the application from
BUILD_DATE = $(shell date +%Y-%m-%dT%H:%M:%SZ)
Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/apply.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -155,7 +153,7 @@

globalFlags = append(globalFlags, applyAction)

// nolint: gosec // ignore G204

Check failure on line 156 in cmd/vela-terraform/apply.go

View workflow job for this annotation

GitHub Actions / full-review

directive `// nolint: gosec // ignore G204` should be written without leading space as `//nolint: gosec // ignore G204` (nolintlint)

Check failure on line 156 in cmd/vela-terraform/apply.go

View workflow job for this annotation

GitHub Actions / diff-review

directive `// nolint: gosec // ignore G204` should be written without leading space as `//nolint: gosec // ignore G204` (nolintlint)

Check failure on line 156 in cmd/vela-terraform/apply.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cmd/vela-terraform/apply.go#L156

directive `// nolint: gosec // ignore G204` should be written without leading space as `//nolint: gosec // ignore G204` (nolintlint)
Raw output
cmd/vela-terraform/apply.go:156:2: directive `// nolint: gosec // ignore G204` should be written without leading space as `//nolint: gosec // ignore G204` (nolintlint)
	// nolint: gosec // ignore G204
	^
return exec.Command(_terraform, append(globalFlags, flags...)...)
}

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/apply_test.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/command.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/command_test.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/config.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/config_test.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/destroy.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -147,7 +145,7 @@

globalFlags = append(globalFlags, destroyAction)

// nolint: gosec // ignore G204

Check failure on line 148 in cmd/vela-terraform/destroy.go

View workflow job for this annotation

GitHub Actions / full-review

directive `// nolint: gosec // ignore G204` should be written without leading space as `//nolint: gosec // ignore G204` (nolintlint)

Check failure on line 148 in cmd/vela-terraform/destroy.go

View workflow job for this annotation

GitHub Actions / diff-review

directive `// nolint: gosec // ignore G204` should be written without leading space as `//nolint: gosec // ignore G204` (nolintlint)

Check failure on line 148 in cmd/vela-terraform/destroy.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cmd/vela-terraform/destroy.go#L148

directive `// nolint: gosec // ignore G204` should be written without leading space as `//nolint: gosec // ignore G204` (nolintlint)
Raw output
cmd/vela-terraform/destroy.go:148:2: directive `// nolint: gosec // ignore G204` should be written without leading space as `//nolint: gosec // ignore G204` (nolintlint)
	// nolint: gosec // ignore G204
	^
return exec.Command(_terraform, append(globalFlags, flags...)...)
}

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/destroy_test.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/fmt.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -78,7 +76,7 @@

globalFlags = append(globalFlags, fmtAction)

// nolint: gosec // ignore G204

Check failure on line 79 in cmd/vela-terraform/fmt.go

View workflow job for this annotation

GitHub Actions / full-review

directive `// nolint: gosec // ignore G204` should be written without leading space as `//nolint: gosec // ignore G204` (nolintlint)

Check failure on line 79 in cmd/vela-terraform/fmt.go

View workflow job for this annotation

GitHub Actions / diff-review

directive `// nolint: gosec // ignore G204` should be written without leading space as `//nolint: gosec // ignore G204` (nolintlint)

Check failure on line 79 in cmd/vela-terraform/fmt.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cmd/vela-terraform/fmt.go#L79

directive `// nolint: gosec // ignore G204` should be written without leading space as `//nolint: gosec // ignore G204` (nolintlint)
Raw output
cmd/vela-terraform/fmt.go:79:2: directive `// nolint: gosec // ignore G204` should be written without leading space as `//nolint: gosec // ignore G204` (nolintlint)
	// nolint: gosec // ignore G204
	^
return exec.Command(_terraform, append(globalFlags, flags...)...)
}

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/fmt_test.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/init.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/init_test.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 2 additions & 4 deletions cmd/vela-terraform/main.go
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -20,7 +18,7 @@
_ "github.com/joho/godotenv/autoload"
)

// nolint: funlen // ignore function length due to comments and flags

Check failure on line 21 in cmd/vela-terraform/main.go

View workflow job for this annotation

GitHub Actions / full-review

directive `// nolint: funlen // ignore function length due to comments and flags` should be written without leading space as `//nolint: funlen // ignore function length due to comments and flags` (nolintlint)

Check failure on line 21 in cmd/vela-terraform/main.go

View workflow job for this annotation

GitHub Actions / diff-review

directive `// nolint: funlen // ignore function length due to comments and flags` should be written without leading space as `//nolint: funlen // ignore function length due to comments and flags` (nolintlint)

Check failure on line 21 in cmd/vela-terraform/main.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cmd/vela-terraform/main.go#L21

directive `// nolint: funlen // ignore function length due to comments and flags` should be written without leading space as `//nolint: funlen // ignore function length due to comments and flags` (nolintlint)
Raw output
cmd/vela-terraform/main.go:21:1: directive `// nolint: funlen // ignore function length due to comments and flags` should be written without leading space as `//nolint: funlen // ignore function length due to comments and flags` (nolintlint)
// nolint: funlen // ignore function length due to comments and flags
^
func main() {
// capture application version information
v := version.New()
Expand All @@ -42,7 +40,7 @@
app.Name = "vela-terraform"
app.HelpName = "vela-terraform"
app.Usage = "Vela Terraform plugin for running Terraform"
app.Copyright = "Copyright (c) 2022 Target Brands, Inc. All rights reserved."
app.Copyright = "Copyright 2020 Target Brands, Inc. All rights reserved."
app.Authors = []*cli.Author{
{
Name: "Vela Admins",
Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/plan.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/plan_test.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/plugin.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/plugin_test.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/terraform.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/terraform_test.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/validate.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-terraform/validate_test.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions version/version.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down