From de1d4b4dbb25503afe271d28f68f20c81740d0b8 Mon Sep 17 00:00:00 2001 From: Pranav Sharma Date: Thu, 4 Jan 2024 11:13:27 -0500 Subject: [PATCH] Fixed spotless config for copyright year (#279) * Fixed spotless config for copyright year * ignore license header files from header lint check --- .github/header-checker-lint.yml | 2 ++ buildscripts/spotless.license.dockerfile | 2 +- buildscripts/spotless.license.gradle | 2 +- buildscripts/spotless.license.java | 2 +- buildscripts/spotless.license.shell | 2 +- buildscripts/spotless.license.yaml | 2 +- 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/header-checker-lint.yml b/.github/header-checker-lint.yml index 8f09f638..ac38574e 100644 --- a/.github/header-checker-lint.yml +++ b/.github/header-checker-lint.yml @@ -7,3 +7,5 @@ sourceFileExtensions: - Dockerfile allowedCopyrightHolders: - Google LLC +ignoreFiles: + - buildscripts/* diff --git a/buildscripts/spotless.license.dockerfile b/buildscripts/spotless.license.dockerfile index 1dc90d18..e4583e56 100644 --- a/buildscripts/spotless.license.dockerfile +++ b/buildscripts/spotless.license.dockerfile @@ -1,4 +1,4 @@ -# Copyright 2023 Google LLC +# Copyright $YEAR Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/buildscripts/spotless.license.gradle b/buildscripts/spotless.license.gradle index 66d7750c..67e1e7c8 100644 --- a/buildscripts/spotless.license.gradle +++ b/buildscripts/spotless.license.gradle @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright $YEAR Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/buildscripts/spotless.license.java b/buildscripts/spotless.license.java index 66d7750c..67e1e7c8 100644 --- a/buildscripts/spotless.license.java +++ b/buildscripts/spotless.license.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright $YEAR Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/buildscripts/spotless.license.shell b/buildscripts/spotless.license.shell index f67bd2fd..5ffbaa34 100644 --- a/buildscripts/spotless.license.shell +++ b/buildscripts/spotless.license.shell @@ -1,5 +1,5 @@ # -# Copyright 2023 Google LLC +# Copyright $YEAR Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/buildscripts/spotless.license.yaml b/buildscripts/spotless.license.yaml index 1dc90d18..e4583e56 100644 --- a/buildscripts/spotless.license.yaml +++ b/buildscripts/spotless.license.yaml @@ -1,4 +1,4 @@ -# Copyright 2023 Google LLC +# Copyright $YEAR Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.