fix hasErrors - ignore warnings release-1.5.1
authorAlan <alan@roojs.com>
Mon, 19 Feb 2024 04:39:54 +0000 (12:39 +0800)
committerAlan <alan@roojs.com>
Mon, 19 Feb 2024 04:39:54 +0000 (12:39 +0800)
debian/changelog
debian/files
roojspacker/Packer.vala

index 9046123..6009c4f 100644 (file)
@@ -1,4 +1,10 @@
-roojspacker (1.5) UNRELEASED; urgency=medium
+roojspacker (1.5.1) UNRELEASED; urgency=medium
+
+  * Fix has errors to ignore wanrings
+
+ -- Alan Knowles  <alan@roojs.com>  Mon, 19 Feb 2024 12:35:29 +0800
+
+roojspacker (1.5) unstable; urgency=medium
 
   * Converted to Meson build
   * PackerRun result format changed (closer to LSP)
@@ -7,7 +13,7 @@ roojspacker (1.5) UNRELEASED; urgency=medium
  
 roojspacker (1.4) unstable; urgency=medium
 
-  * Upgrading detection of multiple features , including adding child depenancies and value lists etc. 
+  * Upgrading detection of multiple features , including adding child depenancies and value lists etc.
 
  -- Alan Knowles <alan@roojs.com>  Mon, 02 May 2022 10:37:20 +0800
 
index ffffa28..21226ba 100644 (file)
@@ -1,3 +1,3 @@
-roojspacker-dbgsym_1.5_amd64.ddeb debug optional automatic=yes
-roojspacker_1.5_amd64.buildinfo unknown optional
-roojspacker_1.5_amd64.deb unknown optional
+roojspacker-dbgsym_1.5.1_amd64.ddeb debug optional automatic=yes
+roojspacker_1.5.1_amd64.buildinfo unknown optional
+roojspacker_1.5.1_amd64.deb unknown optional
index 7821864..582a522 100644 (file)
@@ -180,19 +180,27 @@ namespace JSDOC
                                }
                                var ar = this.result.get_array_member(filename.to_string());                            
                                if (fn == "") {
-                                       if (ar.get_length() > 0) {
-                                               ret = true;
-                                               return;
+                                       
+                                       for(var i = 0 ; i < ar.get_length(); i++) {
+                                               if (ar.get_object_element(i).get_int_member("severity") != ResultType.warn) {
+                               
+                                                       ret = true;
+                                                       return;
+                                               }
                                        }
+                                       
                                        return; // next.
                                }
                                
                                if (fn != filename) {
                                        return; // next;
                                }
-                               if (ar.get_length() > 0) {
-                                       ret = true;
-                                       return;
+                               for(var i = 0 ; i < ar.get_length(); i++) {
+                                       if (ar.get_object_element(i).get_int_member("severity") != ResultType.warn) {
+                       
+                                               ret = true;
+                                               return;
+                                       }
                                }
                                
                         });