From c749538d9a33c709a8ad2a267c83c64399af95f8 Mon Sep 17 00:00:00 2001 From: han-jiang277 Date: Mon, 16 Mar 2026 17:43:54 +0800 Subject: [PATCH] Fix multi-year license check --- .licenserc.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index 2fbbafe..041d2ac 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -5,7 +5,7 @@ header: # `header` section is configurations for source codes license header. spdx-id: Apache-2.0 # the spdx id of the license, it's convenient when your license is standard SPDX license. copyright-owner: vivo Mobile Communication Co., Ltd # the copyright owner to replace the [owner] in the `spdx-id` template. content: | # `license` will be used as the content when `fix` command needs to insert a license header. - Copyright (c) 2025 vivo Mobile Communication Co., Ltd. + Copyright (c) [year] vivo Mobile Communication Co., Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,9 +20,9 @@ header: # `header` section is configurations for source codes license header. limitations under the License. # `pattern` is optional regexp if all the file headers are the same as `license` or the license of `spdx-id` and `copyright-owner`. pattern: | - Copyright (c) 2025 vivo Mobile Communication Co., Ltd. + Copyright (c) \d+ vivo Mobile Communication Co., Ltd. - Licensed under the Apache License, Version 2.0 (the "License"); + 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