From 6092714ac2180eedb9f71ea25fc1d1e0b967dfc0 Mon Sep 17 00:00:00 2001 From: Pranav Gaikwad Date: Tue, 13 Feb 2024 10:36:25 -0500 Subject: [PATCH] :bug: improve accuracy on chained builtin conditions (#62) Signed-off-by: Pranav Gaikwad --- .../eap6/31-xml-webservices.windup.yaml | 4 +- .../55-weblogic-xml-descriptors.windup.yaml | 10 ++-- .../eap7/82-hibernate51-53.windup.yaml | 2 +- .../98-weblogic-xml-descriptors.windup.yaml | 2 +- ...0-javaee-to-jakarta-namespaces.windup.yaml | 48 +++++++++---------- .../hibernate/143-hibernate-xml.windup.yaml | 4 +- 6 files changed, 35 insertions(+), 35 deletions(-) diff --git a/default/generated/eap6/31-xml-webservices.windup.yaml b/default/generated/eap6/31-xml-webservices.windup.yaml index 89906c6..62460ab 100644 --- a/default/generated/eap6/31-xml-webservices.windup.yaml +++ b/default/generated/eap6/31-xml-webservices.windup.yaml @@ -105,7 +105,7 @@ API. ruleID: xml-webservices-06000 when: - or: + and: - as: webservices builtin.xml: namespaces: @@ -134,7 +134,7 @@ message: JBoss EAP developer documentation about JAX-WS Web Services Endpoints ruleID: xml-webservices-06001 when: - or: + and: - as: webservices builtin.xml: namespaces: diff --git a/default/generated/eap6/55-weblogic-xml-descriptors.windup.yaml b/default/generated/eap6/55-weblogic-xml-descriptors.windup.yaml index bdebd5a..e59bc89 100644 --- a/default/generated/eap6/55-weblogic-xml-descriptors.windup.yaml +++ b/default/generated/eap6/55-weblogic-xml-descriptors.windup.yaml @@ -215,7 +215,7 @@ product documentation for more information.\n " ruleID: weblogic-xml-descriptor-10000 when: - or: + and: - as: webservices builtin.xml: namespaces: @@ -419,10 +419,10 @@ url: https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/6.4/html-single/administration_and_configuration_guide/#Session_Bean_Transaction_Timeout - title: How to set EJB transaction timeout in JBoss EAP 6 url: https://access.redhat.com/solutions/90553 - message: "\n \n The WebLogic `` configuration element sets - the maximum duration for an EJB's container-initiated transactions, in seconds, - after which the transaction is rolled back. \n\n In JBoss EAP 6+, you can achieve - the same behavior by using the `TransactionTimeout` annotation.\n \n " + message: "The WebLogic `` configuration element sets the + maximum duration for an EJB's container-initiated transactions, in seconds, after + which the transaction is rolled back. \n\n In JBoss EAP 6+, you can achieve the + same behavior by using the `TransactionTimeout` annotation." ruleID: weblogic-xml-descriptor-19000 when: builtin.xml: diff --git a/default/generated/eap7/82-hibernate51-53.windup.yaml b/default/generated/eap7/82-hibernate51-53.windup.yaml index 5767eb1..f82cac2 100644 --- a/default/generated/eap7/82-hibernate51-53.windup.yaml +++ b/default/generated/eap7/82-hibernate51-53.windup.yaml @@ -540,7 +540,7 @@ alternatively, set `hibernate.hbm2ddl.jdbc_metadata_extraction_strategy=individually`. ruleID: hibernate51-53-01001 when: - or: + and: - as: persistence_files builtin.xml: namespaces: diff --git a/default/generated/eap7/98-weblogic-xml-descriptors.windup.yaml b/default/generated/eap7/98-weblogic-xml-descriptors.windup.yaml index ad96fc2..08d4cfe 100644 --- a/default/generated/eap7/98-weblogic-xml-descriptors.windup.yaml +++ b/default/generated/eap7/98-weblogic-xml-descriptors.windup.yaml @@ -222,7 +222,7 @@ product documentation for more information.\n " ruleID: weblogic-xml-descriptor-eap7-10000 when: - or: + and: - as: webservices builtin.xml: namespaces: diff --git a/default/generated/eap8/120-javaee-to-jakarta-namespaces.windup.yaml b/default/generated/eap8/120-javaee-to-jakarta-namespaces.windup.yaml index 00d05e0..8928b59 100644 --- a/default/generated/eap8/120-javaee-to-jakarta-namespaces.windup.yaml +++ b/default/generated/eap8/120-javaee-to-jakarta-namespaces.windup.yaml @@ -652,7 +652,7 @@ message: In the root tag, replace the `version` attribute value `2.1` with `3.0` ruleID: javaee-to-jakarta-namespaces-00033 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -677,7 +677,7 @@ message: In the root tag, replace the `version` attribute value `7` with `9` ruleID: javaee-to-jakarta-namespaces-00034 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -703,7 +703,7 @@ with `3.0`' ruleID: javaee-to-jakarta-namespaces-00035 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -729,7 +729,7 @@ with `3.0`' ruleID: javaee-to-jakarta-namespaces-00036 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -755,7 +755,7 @@ value with `9`' ruleID: javaee-to-jakarta-namespaces-00037 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -781,7 +781,7 @@ value with `9`' ruleID: javaee-to-jakarta-namespaces-00038 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -807,7 +807,7 @@ value with `9`' ruleID: javaee-to-jakarta-namespaces-00039 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -833,7 +833,7 @@ value with `9`' ruleID: javaee-to-jakarta-namespaces-00040 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -859,7 +859,7 @@ value with `2.0`' ruleID: javaee-to-jakarta-namespaces-00041 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -885,7 +885,7 @@ with `4.0`' ruleID: javaee-to-jakarta-namespaces-00042 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -911,7 +911,7 @@ attribute value with `2.0`' ruleID: javaee-to-jakarta-namespaces-00043 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -937,7 +937,7 @@ with `5.0`' ruleID: javaee-to-jakarta-namespaces-00044 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -963,7 +963,7 @@ with `5.0`' ruleID: javaee-to-jakarta-namespaces-00045 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -989,7 +989,7 @@ with `5.0`' ruleID: javaee-to-jakarta-namespaces-00046 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -1015,7 +1015,7 @@ with `5.0`' ruleID: javaee-to-jakarta-namespaces-00047 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -1041,7 +1041,7 @@ value with `3.0`' ruleID: javaee-to-jakarta-namespaces-00048 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -1067,7 +1067,7 @@ value with `3.0`' ruleID: javaee-to-jakarta-namespaces-00049 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -1093,7 +1093,7 @@ value with `3.0`' ruleID: javaee-to-jakarta-namespaces-00050 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -1119,7 +1119,7 @@ value with `3.0`' ruleID: javaee-to-jakarta-namespaces-00051 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -1145,7 +1145,7 @@ value with `3.0`' ruleID: javaee-to-jakarta-namespaces-00052 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -1171,7 +1171,7 @@ value with `3.0`' ruleID: javaee-to-jakarta-namespaces-00053 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -1197,7 +1197,7 @@ attribute value with `3.0`' ruleID: javaee-to-jakarta-namespaces-00054 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -1223,7 +1223,7 @@ `3.0`' ruleID: javaee-to-jakarta-namespaces-00055 when: - or: + and: - as: result builtin.filecontent: filePattern: "" @@ -1249,7 +1249,7 @@ `3.0`' ruleID: javaee-to-jakarta-namespaces-00056 when: - or: + and: - as: result builtin.filecontent: filePattern: "" diff --git a/default/generated/hibernate/143-hibernate-xml.windup.yaml b/default/generated/hibernate/143-hibernate-xml.windup.yaml index fb177ab..9e6f971 100644 --- a/default/generated/hibernate/143-hibernate-xml.windup.yaml +++ b/default/generated/hibernate/143-hibernate-xml.windup.yaml @@ -15,7 +15,7 @@ `String` properties to JDBC CLOB ruleID: hibernate-xml-01000 when: - or: + and: - as: "1" builtin.xml: namespaces: {} @@ -44,7 +44,7 @@ variable must be set to false.\n " ruleID: hibernate-xml-02000 when: - or: + and: - as: "1" builtin.xml: namespaces: {}