From e5254a7b007e4a0dc59003d94f43e688c25cf7d1 Mon Sep 17 00:00:00 2001 From: lukegleeson Date: Fri, 26 Aug 2022 10:55:04 +0100 Subject: CPS Validator Changes Changed CPS Validator from static to non-static Moved CPSValidator implementation to rest interface layer to prevent duplicated usage Created CPSValidator interface in persistence layer Removed unnecessary tests Refactored misplaced tests Copyright fixes Copyright Check Script output formatting fix Issue-ID: CPS-1228 Signed-off-by: lukegleeson Change-Id: I4c99a51870e7d3b8e416bc1f909aeed5dc3baa42 --- checkstyle/src/main/CopyrightCheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'checkstyle') diff --git a/checkstyle/src/main/CopyrightCheck.py b/checkstyle/src/main/CopyrightCheck.py index 8f1dbff571..ff3d4029b5 100644 --- a/checkstyle/src/main/CopyrightCheck.py +++ b/checkstyle/src/main/CopyrightCheck.py @@ -221,7 +221,7 @@ def CheckCopyrightFormat(copyrightInFile, templateCopyright, filePath): for copyrightInFileKey, templateLine in zip(copyrightInFile, templateCopyright): if copyrightInFile[copyrightInFileKey] != templateLine: issueCounter += 1 - errorWithComparison += filePath + ' | line ' + '{:2}'.format(copyrightInFileKey) + ' read \t ' + repr(copyrightInFile[copyrightInFileKey]) + '\n' + errorWithComparison += filePath + ' | line ' + '{:2}'.format(copyrightInFileKey) + ' read \t ' + repr(copyrightInFile[copyrightInFileKey]) + '\n' errorWithComparison += filePath + ' | line ' + '{:2}'.format(copyrightInFileKey) + ' expected ' + repr(templateLine) + '\n' if errorWithComparison != '': print(errorWithComparison.rstrip('\n')) -- cgit 1.2.3-korg