From 30ec390479c9b7eeeaa90f036be02162c29ae918 Mon Sep 17 00:00:00 2001 From: "guillaume.lambert" Date: Tue, 14 Sep 2021 12:32:24 +0200 Subject: [COMMON] Add and run pre-commit linters via tox - create a .pre-commit-config.yaml configuration file with * gitlint * trailing blanks linter * tabs removal linter - exclude .git folder from it - exclude Makefiles since tabs are mandatory by default in them - create a tox pre-commit profile to run it from tox note gitlint is not runnable at this pre-commit stage - create pre-commit-install and pre-commit-uninstall tox profiles to (un)install hooks locally and (un)perform tests at each "git commit" call (i.e. without calling manually the pre-commit tox profile) - precise pre-commit stages/types in the pre-commit configuration file so that hooks are installed correctly. This avoids messages about skipped tests when they are run at a wrong stage. Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert Change-Id: Ie95bb4f6f90be80b05a1398973caffeff7936881 --- .../aai-graphadmin/resources/config/logback.xml | 58 +++++++++------------- 1 file changed, 23 insertions(+), 35 deletions(-) (limited to 'kubernetes/aai/components/aai-graphadmin/resources/config/logback.xml') diff --git a/kubernetes/aai/components/aai-graphadmin/resources/config/logback.xml b/kubernetes/aai/components/aai-graphadmin/resources/config/logback.xml index 7f055cf51f..95b8140e0b 100644 --- a/kubernetes/aai/components/aai-graphadmin/resources/config/logback.xml +++ b/kubernetes/aai/components/aai-graphadmin/resources/config/logback.xml @@ -27,13 +27,13 @@ + --> @@ -55,8 +55,8 @@ - %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx} - + %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx} + @@ -65,8 +65,7 @@ ${logDirectory}/rest/sane.log.%d{yyyy-MM-dd} - %d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n - + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n @@ -77,8 +76,7 @@ ${logDirectory}/rest/metrics.log - ${logDirectory}/rest/metrics.log.%d{yyyy-MM-dd} - + ${logDirectory}/rest/metrics.log.%d{yyyy-MM-dd} ${metricPattern} @@ -128,7 +126,7 @@ ${logDirectory}/rest/audit.log ${logDirectory}/rest/audit.log.%d{yyyy-MM-dd} - + ${auditPattern} @@ -147,8 +145,7 @@ ${logDirectory}/rest/translog.log - ${logDirectory}/rest/translog.log.%d{yyyy-MM-dd} - + ${logDirectory}/rest/translog.log.%d{yyyy-MM-dd} ${transLogPattern} @@ -165,8 +162,7 @@ ${logDirectory}/dmaapAAIEventConsumer/error.log - ${logDirectory}/dmaapAAIEventConsumer/error.log.%d{yyyy-MM-dd} - + ${logDirectory}/dmaapAAIEventConsumer/error.log.%d{yyyy-MM-dd} ${"errorPattern"} @@ -195,8 +191,7 @@ ${logDirectory}/dmaapAAIEventConsumer/debug.log - ${logDirectory}/dmaapAAIEventConsumer/debug.log.%d{yyyy-MM-dd} - + ${logDirectory}/dmaapAAIEventConsumer/debug.log.%d{yyyy-MM-dd} ${debugPattern} @@ -211,7 +206,7 @@ ${logDirectory}/dmaapAAIEventConsumer/metrics.log ${logDirectory}/dmaapAAIEventConsumer/metrics.log.%d{yyyy-MM-dd} - + ${metricPattern} @@ -224,7 +219,7 @@ ${logDirectory}/external/external.log ${logDirectory}/external/external.log.%d{yyyy-MM-dd} - + ${debugPattern} @@ -749,8 +744,7 @@ - + @@ -770,8 +764,7 @@ - + @@ -789,11 +782,9 @@ - ${logDirectory}/perf-audit/Audit-${lrmRVer}-${lrmRO}-${Pid}.log - + ${logDirectory}/perf-audit/Audit-${lrmRVer}-${lrmRO}-${Pid}.log - ${logDirectory}/perf-audit/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip - + ${logDirectory}/perf-audit/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip 1 9 @@ -806,11 +797,9 @@ - ${logDirectory}/perf-audit/Perform-${lrmRVer}-${lrmRO}-${Pid}.log - + ${logDirectory}/perf-audit/Perform-${lrmRVer}-${lrmRO}-${Pid}.log - ${logDirectory}/perf-audit/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip - + ${logDirectory}/perf-audit/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip 1 9 @@ -827,8 +816,7 @@ ${logDirectory}/auth/auth.log - ${logDirectory}/auth/auth.log.%d{yyyy-MM-dd} - + ${logDirectory}/auth/auth.log.%d{yyyy-MM-dd} %d{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}[%thread] %-5level %logger{1024} - %msg%n -- cgit 1.2.3-korg