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

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 @@ -23,7 +23,7 @@ Please see our [support](SUPPORT.md) documentation for further instructions.
## Copyright and License

```
Copyright (c) 2023 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)
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) 2023 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 -t vela-ansible:local . ##
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 @@ 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) 2023 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.
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) 2023 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 action/lint/command.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// command - runs ansible-lint cli

Expand Down
4 changes: 1 addition & 3 deletions action/lint/command_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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 lint

Expand Down
4 changes: 1 addition & 3 deletions action/lint/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// config - ansible-lint configuration

Expand Down
4 changes: 1 addition & 3 deletions action/lint/executor.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// executor - executes ansible-lint

Expand Down
4 changes: 1 addition & 3 deletions action/lint/executor_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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 lint

Expand Down
4 changes: 1 addition & 3 deletions action/lint/flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// flag - sets flags for ansible-lint and creates ansible-lint cli

Expand Down
4 changes: 1 addition & 3 deletions action/lint/flag_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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 lint

Expand Down
4 changes: 1 addition & 3 deletions action/lint/lint.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// lint - ansible-lint flags, struct, and binary

Expand Down
4 changes: 1 addition & 3 deletions action/lint/validate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// validate - validates ansible-lint to make sure that a playbook is defined.

Expand Down
4 changes: 1 addition & 3 deletions action/lint/validate_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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 lint

Expand Down
4 changes: 1 addition & 3 deletions action/playbook/command.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// command - runs ansible-playbook cli

Expand Down
4 changes: 1 addition & 3 deletions action/playbook/command_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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 playbook

Expand Down
4 changes: 1 addition & 3 deletions action/playbook/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// config - ansible-playbook configuration

Expand Down
4 changes: 1 addition & 3 deletions action/playbook/executor.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// executor - executes ansible-playbook

Expand Down
4 changes: 1 addition & 3 deletions action/playbook/executor_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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 playbook

Expand Down
4 changes: 1 addition & 3 deletions action/playbook/flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// flag - sets flags for ansible-playbook and creates ansible-playbook cli

Expand All @@ -13,7 +11,7 @@
"github.com/sirupsen/logrus"
)

// nolint: funlen, gocyclo // ignore statements for flags

Check failure on line 14 in action/playbook/flag.go

View workflow job for this annotation

GitHub Actions / full-review

directive `// nolint: funlen, gocyclo // ignore statements for flags` should be written without leading space as `//nolint: funlen, gocyclo // ignore statements for flags` (nolintlint)

Check failure on line 14 in action/playbook/flag.go

View workflow job for this annotation

GitHub Actions / diff-review

directive `// nolint: funlen, gocyclo // ignore statements for flags` should be written without leading space as `//nolint: funlen, gocyclo // ignore statements for flags` (nolintlint)

Check failure on line 14 in action/playbook/flag.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] action/playbook/flag.go#L14

directive `// nolint: funlen, gocyclo // ignore statements for flags` should be written without leading space as `//nolint: funlen, gocyclo // ignore statements for flags` (nolintlint)
Raw output
action/playbook/flag.go:14:1: directive `// nolint: funlen, gocyclo // ignore statements for flags` should be written without leading space as `//nolint: funlen, gocyclo // ignore statements for flags` (nolintlint)
// nolint: funlen, gocyclo // ignore statements for flags
^
// setFlags creates the command line with flags to run ansible-playbook.
func setFlags(p *Playbook) *exec.Cmd {
logrus.Trace("entered plugin.playbook.setFlags")
Expand Down
4 changes: 1 addition & 3 deletions action/playbook/flag_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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 playbook

Expand Down
4 changes: 1 addition & 3 deletions action/playbook/playbook.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// playbook - ansible-playbook flags, struct, and binary

Expand Down
4 changes: 1 addition & 3 deletions action/playbook/validate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// validate - validates ansible-playbook to make sure that a playbook and inventory is defined.

Expand Down
4 changes: 1 addition & 3 deletions action/playbook/validate_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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 playbook

Expand Down
6 changes: 2 additions & 4 deletions cmd/vela-ansible/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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 @@ -35,7 +33,7 @@ func main() {
Name: "vela-ansible",
HelpName: "vela-ansible",
Usage: "Vela Ansible Plugin for running ansible-playbook and ansible-lint.",
Copyright: "Copyright (c) 2023 Target Brands, Inc. All rights reserved.",
Copyright: "Copyright 2022 Target Brands, Inc. All rights reserved.",
Authors: []*cli.Author{
{
Name: "Vela Admins",
Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-ansible/plugin.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

// plugin - action controller of the plugin.

Expand Down
4 changes: 1 addition & 3 deletions cmd/vela-ansible/plugin_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 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

import (
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) 2023 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