From 73ee89a2fc0c4f9aa3ba59b22834b916ab3d8d1c Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 26 Dec 2025 08:06:37 -0800 Subject: [PATCH] Improve no-void-functions rule --- devin_lifeguard.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devin_lifeguard.yaml b/devin_lifeguard.yaml index 47be181651..db5213d1d6 100644 --- a/devin_lifeguard.yaml +++ b/devin_lifeguard.yaml @@ -1,8 +1,9 @@ rules: - name: no-void-functions trigger: >- - All public functions (WOLFSSL_API) must return a value. Avoid using "void" - return types to ensure error values can be propagated upstream. + When implementing new public functions (WOLFSSL_API) avoid using "void" + return type to ensure error values can be propagated upstream. Does not + apply to "doc/" directory. solution: >- Change the function to return an appropriate error code or result instead of void. Ensure all return paths provide a meaningful value.