From 393e74c5c4ae5e40ccbd73d1e0b059d06cbf0e87 Mon Sep 17 00:00:00 2001 From: cagache Date: Thu, 19 Dec 2019 09:42:50 +0200 Subject: [PATCH 01/11] Exclude automation project from sourceclear scan --- srcclr.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 srcclr.yml diff --git a/srcclr.yml b/srcclr.yml new file mode 100644 index 0000000000..e7b526f466 --- /dev/null +++ b/srcclr.yml @@ -0,0 +1 @@ +vuln_methods_ignored_directories: rm-automation \ No newline at end of file From 02258c5d920d06cd4ed8be59798a36e49fc29c4e Mon Sep 17 00:00:00 2001 From: cagache Date: Thu, 19 Dec 2019 10:20:49 +0200 Subject: [PATCH 02/11] Exclude automation project from sourceclear scan --- srcclr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcclr.yml b/srcclr.yml index e7b526f466..3198531064 100644 --- a/srcclr.yml +++ b/srcclr.yml @@ -1 +1 @@ -vuln_methods_ignored_directories: rm-automation \ No newline at end of file +vuln_methods_ignored_directories: rm-automation,rm-automation-community-rest-api,rm-automation-enterprise-rest-api,rm-automation-ui \ No newline at end of file From ac4f4bd551f8ed6205718ba5a1cda3047576e6c6 Mon Sep 17 00:00:00 2001 From: cagache Date: Thu, 19 Dec 2019 10:25:52 +0200 Subject: [PATCH 03/11] Exclude automation project from sourceclear scan --- srcclr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcclr.yml b/srcclr.yml index 3198531064..6261d7aba3 100644 --- a/srcclr.yml +++ b/srcclr.yml @@ -1 +1 @@ -vuln_methods_ignored_directories: rm-automation,rm-automation-community-rest-api,rm-automation-enterprise-rest-api,rm-automation-ui \ No newline at end of file +vuln_methods_ignored_directories: rm-automation,rm-automation/rm-automation-community-rest-api,rm-automation/rm-automation-enterprise-rest-api,rm-automation/rm-automation-ui \ No newline at end of file From 9a82186e7ad2dc7c0ecc639a8c54c2fac2c81980 Mon Sep 17 00:00:00 2001 From: cagache Date: Thu, 19 Dec 2019 10:42:34 +0200 Subject: [PATCH 04/11] Try to exclude automation project from sourceclear scan using a custom maven command --- srcclr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcclr.yml b/srcclr.yml index 6261d7aba3..70a8179276 100644 --- a/srcclr.yml +++ b/srcclr.yml @@ -1 +1 @@ -vuln_methods_ignored_directories: rm-automation,rm-automation/rm-automation-community-rest-api,rm-automation/rm-automation-enterprise-rest-api,rm-automation/rm-automation-ui \ No newline at end of file +custom_maven_command: clean compile -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true -pl '!rm-automation' \ No newline at end of file From 82eb477dc8d21c1092cc37ce222e1a41caa6cfac Mon Sep 17 00:00:00 2001 From: cagache Date: Thu, 19 Dec 2019 11:20:26 +0200 Subject: [PATCH 05/11] Try to exclude automation project from sourceclear scan using a custom maven command --- srcclr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcclr.yml b/srcclr.yml index 70a8179276..3234b05772 100644 --- a/srcclr.yml +++ b/srcclr.yml @@ -1 +1 @@ -custom_maven_command: clean compile -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true -pl '!rm-automation' \ No newline at end of file +custom_maven_command: clean compile -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true -pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui' \ No newline at end of file From 60be584154d955c193aa8a0eb2c776120a8b3130 Mon Sep 17 00:00:00 2001 From: cagache Date: Thu, 19 Dec 2019 12:08:20 +0200 Subject: [PATCH 06/11] Try to exclude automation project from sourceclear scan using a custom maven command --- srcclr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcclr.yml b/srcclr.yml index 3234b05772..863466090a 100644 --- a/srcclr.yml +++ b/srcclr.yml @@ -1 +1 @@ -custom_maven_command: clean compile -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true -pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui' \ No newline at end of file +custom_maven_command: compile -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true -pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui' \ No newline at end of file From d71d416521e67672bca088b922a2798b00b1a58b Mon Sep 17 00:00:00 2001 From: cagache Date: Thu, 19 Dec 2019 12:46:16 +0200 Subject: [PATCH 07/11] Try to exclude automation project from sourceclear scan using a custom maven command --- srcclr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcclr.yml b/srcclr.yml index 863466090a..88b5343def 100644 --- a/srcclr.yml +++ b/srcclr.yml @@ -1 +1 @@ -custom_maven_command: compile -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true -pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui' \ No newline at end of file +custom_maven_command: install -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true -pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui' \ No newline at end of file From 84ce8240d00ab29ccaa9f005a27a26907935439b Mon Sep 17 00:00:00 2001 From: cagache Date: Thu, 19 Dec 2019 13:56:53 +0200 Subject: [PATCH 08/11] Try to exclude automation project from source clear scan using a custom maven command --- srcclr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcclr.yml b/srcclr.yml index 88b5343def..279f88a5f4 100644 --- a/srcclr.yml +++ b/srcclr.yml @@ -1 +1 @@ -custom_maven_command: install -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true -pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui' \ No newline at end of file +custom_maven_command: clean install -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true -pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui' \ No newline at end of file From e870bbb5ae9996d340ab1ac5bd4c3cd0767960a4 Mon Sep 17 00:00:00 2001 From: cagache Date: Thu, 19 Dec 2019 15:19:12 +0200 Subject: [PATCH 09/11] Exclude benchmark project from source clear scan using a custom maven command --- srcclr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcclr.yml b/srcclr.yml index 279f88a5f4..160078c634 100644 --- a/srcclr.yml +++ b/srcclr.yml @@ -1 +1 @@ -custom_maven_command: clean install -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true -pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui' \ No newline at end of file +custom_maven_command: clean deploy -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true -pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui,!rm-benchmark' \ No newline at end of file From 57e8e65dc2ea52cdcfc5522e2292f7857fb14f9b Mon Sep 17 00:00:00 2001 From: cagache Date: Thu, 19 Dec 2019 16:20:37 +0200 Subject: [PATCH 10/11] Don't fail fast --- srcclr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcclr.yml b/srcclr.yml index 160078c634..38d0d76fd6 100644 --- a/srcclr.yml +++ b/srcclr.yml @@ -1 +1 @@ -custom_maven_command: clean deploy -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true -pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui,!rm-benchmark' \ No newline at end of file +custom_maven_command: clean install -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true -Denforcer.skip=true -pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui,!rm-benchmark' \ No newline at end of file From 54f138c96e029f70692342157b9029a4de6c873c Mon Sep 17 00:00:00 2001 From: cagache Date: Thu, 19 Dec 2019 17:00:42 +0200 Subject: [PATCH 11/11] Added comment --- srcclr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/srcclr.yml b/srcclr.yml index 38d0d76fd6..8ae09190de 100644 --- a/srcclr.yml +++ b/srcclr.yml @@ -1 +1,2 @@ +# The scope of this file is to have a custom scan directive for SourceClear excluding automation and benchmark projects from the scan. custom_maven_command: clean install -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true -Denforcer.skip=true -pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui,!rm-benchmark' \ No newline at end of file