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 #179

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
4 changes: 2 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Please see our [support](SUPPORT.md) documentation for further instructions.
## Copyright and License

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

[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
[Apache License, Version 2.0](../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 .vela/template.yml
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

## Template Variables
# - .image (default: "target/vela-kaniko:latest")
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

#########################################################################
## docker build --no-cache --target certs -t vela-kaniko:certs . ##
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 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright (c) 2022 Target Brands, Inc.
Copyright 2019 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-kaniko/build.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-kaniko/build_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-kaniko/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-kaniko/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-kaniko/image.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-kaniko/image_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-kaniko/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 @@ -18,7 +16,7 @@
_ "github.com/joho/godotenv/autoload"
)

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

Check failure on line 19 in cmd/vela-kaniko/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 19 in cmd/vela-kaniko/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 19 in cmd/vela-kaniko/main.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cmd/vela-kaniko/main.go#L19

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-kaniko/main.go:19: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 @@ -40,7 +38,7 @@
app.Name = "vela-kaniko"
app.HelpName = "vela-kaniko"
app.Usage = "Vela Kaniko plugin for building and publishing images"
app.Copyright = "Copyright (c) 2022 Target Brands, Inc. All rights reserved."
app.Copyright = "Copyright 2019 Target Brands, Inc. All rights reserved."
app.Authors = []*cli.Author{
{
Name: "Vela Admins",
Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-kaniko/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-kaniko/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-kaniko/registry.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 @@
// create full path for config.json file
path := "/kaniko/.docker/config.json"

// nolint: gomnd // ignore magic number

Check failure on line 79 in cmd/vela-kaniko/registry.go

View workflow job for this annotation

GitHub Actions / diff-review

directive `// nolint: gomnd // ignore magic number` should be written without leading space as `//nolint: gomnd // ignore magic number` (nolintlint)

Check failure on line 79 in cmd/vela-kaniko/registry.go

View workflow job for this annotation

GitHub Actions / full-review

directive `// nolint: gomnd // ignore magic number` should be written without leading space as `//nolint: gomnd // ignore magic number` (nolintlint)

Check failure on line 79 in cmd/vela-kaniko/registry.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cmd/vela-kaniko/registry.go#L79

directive `// nolint: gomnd // ignore magic number` should be written without leading space as `//nolint: gomnd // ignore magic number` (nolintlint)
Raw output
cmd/vela-kaniko/registry.go:79:2: directive `// nolint: gomnd // ignore magic number` should be written without leading space as `//nolint: gomnd // ignore magic number` (nolintlint)
	// nolint: gomnd // ignore magic number
	^
return a.WriteFile(path, []byte(out), 0644)
}

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-kaniko/registry_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-kaniko/repo.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-kaniko/repo_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