From 1c826a41e0738f2863809f56edd8be53fdfd6e35 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Thu, 16 May 2019 12:13:05 +0200 Subject: [PATCH] feat: warn about extraneous copyright years References #17 --- src/common.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common.ts b/src/common.ts index d54c6df9..24948e86 100644 --- a/src/common.ts +++ b/src/common.ts @@ -475,6 +475,9 @@ export function checkCopyrightYears(path: PathLike, subDir: PathLike): void { if (idx >= 0) { changedYears.splice(idx, 1); + } else { + // tslint:disable-next-line:max-line-length + consoleWarn(`File '${join(subDir.toString(), fileSystemObject)}' wrongly states '${copyrightYear}' as year in the copyright line.`); } }