diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 4581799..1a19633 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -4,19 +4,6 @@ ################################################################################ # Copyright 2024 SAP SE -# -# 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. -# # SPDX-License-Identifier: Apache-2.0 name: Checks diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 18b2386..4370293 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,19 +4,6 @@ ################################################################################ # Copyright 2024 SAP SE -# -# 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. -# # SPDX-License-Identifier: Apache-2.0 name: CI diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index be64a3b..09e243c 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -4,19 +4,6 @@ ################################################################################ # Copyright 2024 SAP SE -# -# 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. -# # SPDX-License-Identifier: Apache-2.0 name: CodeQL diff --git a/.golangci.yaml b/.golangci.yaml index ecd4ea1..d95bbe1 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -4,19 +4,6 @@ ################################################################################ # Copyright 2024 SAP SE -# -# 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. -# # SPDX-License-Identifier: Apache-2.0 run: diff --git a/Makefile b/Makefile index 23c4e75..8747681 100644 --- a/Makefile +++ b/Makefile @@ -4,19 +4,6 @@ ################################################################################ # Copyright 2024 SAP SE -# -# 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. -# # SPDX-License-Identifier: Apache-2.0 MAKEFLAGS=--warn-undefined-variables diff --git a/internal/core/config.go b/internal/core/config.go index 60a244b..2d13794 100644 --- a/internal/core/config.go +++ b/internal/core/config.go @@ -1,17 +1,4 @@ // Copyright 2020 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package core @@ -30,19 +17,6 @@ var AutogeneratedHeader = strings.TrimSpace(` ################################################################################ # Copyright 2024 SAP SE -# -# 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. -# # SPDX-License-Identifier: Apache-2.0 `) diff --git a/internal/core/constants.go b/internal/core/constants.go index 52ccfc0..d767496 100644 --- a/internal/core/constants.go +++ b/internal/core/constants.go @@ -1,17 +1,4 @@ // Copyright 2023 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package core diff --git a/internal/dockerfile/docker.go b/internal/dockerfile/docker.go index 8567a5a..e525d69 100644 --- a/internal/dockerfile/docker.go +++ b/internal/dockerfile/docker.go @@ -1,17 +1,4 @@ // Copyright 2022 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package dockerfile diff --git a/internal/ghworkflow/render.go b/internal/ghworkflow/render.go index 8c7f61b..fd8280e 100644 --- a/internal/ghworkflow/render.go +++ b/internal/ghworkflow/render.go @@ -1,17 +1,4 @@ // Copyright 2021 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package ghworkflow diff --git a/internal/ghworkflow/utils.go b/internal/ghworkflow/utils.go index c831859..2250414 100644 --- a/internal/ghworkflow/utils.go +++ b/internal/ghworkflow/utils.go @@ -1,17 +1,4 @@ // Copyright 2021 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package ghworkflow diff --git a/internal/ghworkflow/workflow.go b/internal/ghworkflow/workflow.go index 58e89b1..db9a663 100644 --- a/internal/ghworkflow/workflow.go +++ b/internal/ghworkflow/workflow.go @@ -1,17 +1,4 @@ // Copyright 2021 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package ghworkflow diff --git a/internal/ghworkflow/workflow_checks.go b/internal/ghworkflow/workflow_checks.go index 5bbd361..7764345 100644 --- a/internal/ghworkflow/workflow_checks.go +++ b/internal/ghworkflow/workflow_checks.go @@ -1,17 +1,4 @@ // Copyright 2022 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package ghworkflow diff --git a/internal/ghworkflow/workflow_ci.go b/internal/ghworkflow/workflow_ci.go index 51f7cc1..aa3e344 100644 --- a/internal/ghworkflow/workflow_ci.go +++ b/internal/ghworkflow/workflow_ci.go @@ -1,17 +1,4 @@ // Copyright 2021 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package ghworkflow diff --git a/internal/ghworkflow/workflow_codeql.go b/internal/ghworkflow/workflow_codeql.go index 98ade2b..46270b4 100644 --- a/internal/ghworkflow/workflow_codeql.go +++ b/internal/ghworkflow/workflow_codeql.go @@ -1,17 +1,4 @@ // Copyright 2021 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package ghworkflow diff --git a/internal/ghworkflow/workflow_ghcr.go b/internal/ghworkflow/workflow_ghcr.go index c0b03c4..a932e84 100644 --- a/internal/ghworkflow/workflow_ghcr.go +++ b/internal/ghworkflow/workflow_ghcr.go @@ -1,17 +1,4 @@ // Copyright 2021 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package ghworkflow diff --git a/internal/ghworkflow/workflow_release.go b/internal/ghworkflow/workflow_release.go index 12c9d72..82cd28a 100644 --- a/internal/ghworkflow/workflow_release.go +++ b/internal/ghworkflow/workflow_release.go @@ -1,17 +1,4 @@ // Copyright 2023 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package ghworkflow diff --git a/internal/golang/scan.go b/internal/golang/scan.go index 3f05a2c..223e4c7 100644 --- a/internal/golang/scan.go +++ b/internal/golang/scan.go @@ -1,17 +1,4 @@ // Copyright 2022 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package golang diff --git a/internal/golang/update-go-mod.go b/internal/golang/update-go-mod.go index 9834a6b..52ee912 100644 --- a/internal/golang/update-go-mod.go +++ b/internal/golang/update-go-mod.go @@ -1,17 +1,4 @@ // Copyright 2024 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package golang diff --git a/internal/golangcilint/golangci_lint.go b/internal/golangcilint/golangci_lint.go index 5342176..9f5fe88 100644 --- a/internal/golangcilint/golangci_lint.go +++ b/internal/golangcilint/golangci_lint.go @@ -1,17 +1,4 @@ // Copyright 2021 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package golangcilint diff --git a/internal/goreleaser/goreleaser.go b/internal/goreleaser/goreleaser.go index 70321db..35f9afc 100644 --- a/internal/goreleaser/goreleaser.go +++ b/internal/goreleaser/goreleaser.go @@ -1,17 +1,4 @@ // Copyright 2023 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package goreleaser diff --git a/internal/makefile/funcs.go b/internal/makefile/funcs.go index ca80b96..646b86a 100644 --- a/internal/makefile/funcs.go +++ b/internal/makefile/funcs.go @@ -1,17 +1,4 @@ // Copyright 2020 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package makefile diff --git a/internal/makefile/funcs_test.go b/internal/makefile/funcs_test.go index 8cc187f..e4d984f 100644 --- a/internal/makefile/funcs_test.go +++ b/internal/makefile/funcs_test.go @@ -1,17 +1,4 @@ // Copyright 2020 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package makefile diff --git a/internal/makefile/makefile.go b/internal/makefile/makefile.go index fd32825..72956c7 100644 --- a/internal/makefile/makefile.go +++ b/internal/makefile/makefile.go @@ -1,17 +1,4 @@ // Copyright 2020 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package makefile diff --git a/internal/makefile/render.go b/internal/makefile/render.go index 6c6592e..6bb8bfd 100644 --- a/internal/makefile/render.go +++ b/internal/makefile/render.go @@ -1,17 +1,4 @@ // Copyright 2022 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package makefile diff --git a/internal/nix/nix-shell.go b/internal/nix/nix-shell.go index b6ea82c..2005ed4 100644 --- a/internal/nix/nix-shell.go +++ b/internal/nix/nix-shell.go @@ -1,17 +1,4 @@ // Copyright 2024 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package nix @@ -29,7 +16,8 @@ import ( ) func RenderShell(cfg core.Configuration, sr golang.ScanResult, renderGoreleaserConfig bool) { - nixShellTemplate := `# SPDX-License-Identifier: Apache-2.0 + nixShellTemplate := `# Copyright 2024 SAP SE +# SPDX-License-Identifier: Apache-2.0 { pkgs ? import { } }: diff --git a/internal/renovate/renovate.go b/internal/renovate/renovate.go index 3c6d585..28db3da 100644 --- a/internal/renovate/renovate.go +++ b/internal/renovate/renovate.go @@ -1,17 +1,4 @@ // Copyright 2022 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package renovate diff --git a/main.go b/main.go index 193a998..48e9254 100644 --- a/main.go +++ b/main.go @@ -1,17 +1,4 @@ // Copyright 2020 SAP SE -// -// 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. -// // SPDX-License-Identifier: Apache-2.0 package main diff --git a/shell.nix b/shell.nix index fb6d652..7bb4bd7 100644 --- a/shell.nix +++ b/shell.nix @@ -1,3 +1,4 @@ +# Copyright 2024 SAP SE # SPDX-License-Identifier: Apache-2.0 { pkgs ? import { } }: