diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 000000000..f809ab6fd --- /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 767b9a7a6..48ce4f626 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 5886667dc..4a56ce6fb 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 d6d3b5209..678fc01f0 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 cbfdb41d1..62e95f478 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 b906f57aa..ad739f7d3 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 711f71754..2e847d97e 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 3ecf2877e..50d1826ef 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 1bca5bb46..34566b67d 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 eb6e75978..acf0e1756 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 fb06e568d..ea1678155 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 7e8add4a9..553496826 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 76c519122..ffd9d9f5e 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 586e932b4..3e4b4317d 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 b9216e8ec..9fee950c3 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 (