Skip to content

Commit c3e6515

Browse files
committed
Improve the Devin lifeguard coding standard rules
1 parent 96e2e80 commit c3e6515

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

devin_lifeguard.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
rules:
22
- name: no-void-functions
33
trigger: >-
4-
All functions must return a value. Avoid using void return types to ensure
5-
error values can be propagated upstream.
4+
All public functions (WOLFSSL_API) must return a value. Avoid using "void"
5+
return types to ensure error values can be propagated upstream.
66
solution: >-
77
Change the function to return an appropriate error code or result instead
88
of void. Ensure all return paths provide a meaningful value.
@@ -51,8 +51,8 @@ rules:
5151
variables to minimize stack usage within the function.
5252
- name: prefer-constant-time
5353
trigger: >-
54-
Implement algorithms in constant time to prevent timing attacks and ensure
55-
security.
54+
For private key based asymmetric algorithms implement in constant time
55+
to prevent timing attacks and ensure security.
5656
solution: >-
5757
Review and refactor algorithms to ensure their execution time does not
5858
depend on input values. Use constant-time libraries or functions where
@@ -153,3 +153,4 @@ rules:
153153
WOLFSSL_API. For functions local to the library but not static, use
154154
WOLFSSL_LOCAL and prefix the function name with wolfssl_local_ or wc_local_
155155
to clearly indicate internal usage.
156+
-

0 commit comments

Comments
 (0)