From bd8b2962dc77a11bb5283dc6737cd2a5eaa47cd0 Mon Sep 17 00:00:00 2001 From: Andrew Suderman Date: Thu, 31 Mar 2022 09:02:10 -0600 Subject: [PATCH] Fix license headers (#736) * Update license headers * Fmt Co-authored-by: Barnabas Makonda <6409210+makoscafee@users.noreply.github.com> --- .licenserc.yaml | 24 ++++++++++++++++++++++++ pkg/config/checks.go | 14 ++++++++++++++ pkg/config/exemptions.go | 14 ++++++++++++++ pkg/config/schema.go | 14 ++++++++++++++ pkg/dashboard/helpers_test.go | 15 ++++++++++++++- pkg/kube/resource.go | 14 ++++++++++++++ pkg/kube/resources.go | 14 ++++++++++++++ pkg/kube/resources_test.go | 14 ++++++++++++++ pkg/validator/fullaudit.go | 14 ++++++++++++++ pkg/validator/fullaudit_test.go | 14 ++++++++++++++ pkg/validator/schema.go | 14 ++++++++++++++ pkg/validator/schema_test.go | 14 ++++++++++++++ pkg/validator/summary.go | 14 ++++++++++++++ test/fixtures.go | 14 ++++++++++++++ test/schema_test.go | 14 ++++++++++++++ 15 files changed, 220 insertions(+), 1 deletion(-) create mode 100644 .licenserc.yaml diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 00000000..f809ab6f --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,24 @@ +header: + license: + spdx-id: Apache-2.0 + copyright-owner: 'FairwindsOps, Inc.' + content: | + // Copyright 2019 FairwindsOps Inc + // + // Licensed under the Apache License, Version 2.0 (the "License"); + // you may not use this file except in compliance with the License. + // You may obtain a copy of the License at + // + // http://www.apache.org/licenses/LICENSE-2.0 + // + // Unless required by applicable law or agreed to in writing, software + // distributed under the License is distributed on an "AS IS" BASIS, + // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + // See the License for the specific language governing permissions and + // limitations under the License. + paths: + - '**/*.go' + comment: on-failure +dependency: + files: + - go.mod diff --git a/pkg/config/checks.go b/pkg/config/checks.go index 767b9a7a..48ce4f62 100644 --- a/pkg/config/checks.go +++ b/pkg/config/checks.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/pkg/config/exemptions.go b/pkg/config/exemptions.go index 5886667d..4a56ce6f 100644 --- a/pkg/config/exemptions.go +++ b/pkg/config/exemptions.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/pkg/config/schema.go b/pkg/config/schema.go index d6d3b520..678fc01f 100644 --- a/pkg/config/schema.go +++ b/pkg/config/schema.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/pkg/dashboard/helpers_test.go b/pkg/dashboard/helpers_test.go index cbfdb41d..62e95f47 100644 --- a/pkg/dashboard/helpers_test.go +++ b/pkg/dashboard/helpers_test.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package dashboard import ( @@ -238,4 +252,3 @@ func TestStringInSlice(t *testing.T) { assert.Equal(t, expectedOutput, actual) assert.NotEqual(t, true, actual) } - diff --git a/pkg/kube/resource.go b/pkg/kube/resource.go index b906f57a..ad739f7d 100644 --- a/pkg/kube/resource.go +++ b/pkg/kube/resource.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kube import ( diff --git a/pkg/kube/resources.go b/pkg/kube/resources.go index 711f7175..2e847d97 100644 --- a/pkg/kube/resources.go +++ b/pkg/kube/resources.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kube import ( diff --git a/pkg/kube/resources_test.go b/pkg/kube/resources_test.go index 3ecf2877..50d1826e 100644 --- a/pkg/kube/resources_test.go +++ b/pkg/kube/resources_test.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kube import ( diff --git a/pkg/validator/fullaudit.go b/pkg/validator/fullaudit.go index 1bca5bb4..34566b67 100644 --- a/pkg/validator/fullaudit.go +++ b/pkg/validator/fullaudit.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package validator import ( diff --git a/pkg/validator/fullaudit_test.go b/pkg/validator/fullaudit_test.go index eb6e7597..acf0e175 100644 --- a/pkg/validator/fullaudit_test.go +++ b/pkg/validator/fullaudit_test.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package validator import ( diff --git a/pkg/validator/schema.go b/pkg/validator/schema.go index fb06e568..ea167815 100644 --- a/pkg/validator/schema.go +++ b/pkg/validator/schema.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package validator import ( diff --git a/pkg/validator/schema_test.go b/pkg/validator/schema_test.go index 7e8add4a..55349682 100644 --- a/pkg/validator/schema_test.go +++ b/pkg/validator/schema_test.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package validator import ( diff --git a/pkg/validator/summary.go b/pkg/validator/summary.go index 76c51912..ffd9d9f5 100644 --- a/pkg/validator/summary.go +++ b/pkg/validator/summary.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package validator import ( diff --git a/test/fixtures.go b/test/fixtures.go index 586e932b..3e4b4317 100644 --- a/test/fixtures.go +++ b/test/fixtures.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package test import ( diff --git a/test/schema_test.go b/test/schema_test.go index b9216e8e..9fee950c 100644 --- a/test/schema_test.go +++ b/test/schema_test.go @@ -1,3 +1,17 @@ +// Copyright 2022 FairwindsOps, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package test import (