Skip to content

Commit

Permalink
Add doc for new smtplib no timeout rule
Browse files Browse the repository at this point in the history
The doc for smtplib_no_timeout rule was missing. Thus this
commit creates the autodoc for it and adds to the list of
rules.

Signed-off-by: Eric Brown <[email protected]>
  • Loading branch information
ericwb committed Sep 26, 2024
1 parent c7ea5b5 commit 076923e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@
| PY037 | [pathlib — incorrect permission](rules/python/stdlib/pathlib-loose-file-perm.md) | Incorrect Permission Assignment for Critical Resource using `pathlib` Module |
| PY038 | [os — unnecessary privileges](rules/python/stdlib/os-setuid-root.md) | Execution with Unnecessary Privileges using `os` Module |
| PY039 | [socket — no timeout](rules/python/stdlib/socket-no-timeout.md) | Synchronous Access of `socket` without Timeout |
| PY040 | [smtplib — no timeout](rules/python/stdlib/smtplib-no-timeout.md) | Synchronous Access of `SMTP` without Timeout |
10 changes: 10 additions & 0 deletions docs/rules/python/stdlib/smtplib-no-timeout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
id: PY040
title: smtplib — no timeout
hide_title: true
pagination_prev: null
pagination_next: null
slug: /rules/PY040
---

::: precli.rules.python.stdlib.smtplib_no_timeout

0 comments on commit 076923e

Please sign in to comment.