From dcaabbf974d5612d062d11c67dffb7dc5b0c3d93 Mon Sep 17 00:00:00 2001 From: daniele-mng Date: Fri, 7 Jun 2024 14:27:22 +0200 Subject: [PATCH] ignore specific year in header --- .eslintrc.cjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index d23d0b469e..89d1309057 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -45,7 +45,10 @@ module.exports = { 2, 'block', [ - ' SPDX-FileCopyrightText: 2024 Greenbone AG', + { + pattern: ' SPDX-FileCopyrightText: \\d{4} Greenbone AG', + template: ' SPDX-FileCopyrightText: 2024 Greenbone AG', + }, ' *', ' * SPDX-License-Identifier: AGPL-3.0-or-later', ' ',