Skip to content

Commit 73ee89a

Browse files
committed
Improve no-void-functions rule
1 parent c3e6515 commit 73ee89a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

devin_lifeguard.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
rules:
22
- name: no-void-functions
33
trigger: >-
4-
All public functions (WOLFSSL_API) must return a value. Avoid using "void"
5-
return types to ensure error values can be propagated upstream.
4+
When implementing new public functions (WOLFSSL_API) avoid using "void"
5+
return type to ensure error values can be propagated upstream. Does not
6+
apply to "doc/" directory.
67
solution: >-
78
Change the function to return an appropriate error code or result instead
89
of void. Ensure all return paths provide a meaningful value.

0 commit comments

Comments
 (0)