Skip to content

Commit

Permalink
Add accurate version added values in docstring
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Brown <[email protected]>
  • Loading branch information
ericwb committed Jan 30, 2024
1 parent c7b1ee8 commit 37acc8e
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion precli/rules/go/stdlib/crypto_weak_cipher.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
- `rc4 package - crypto_rc4 - Go Packages <https://pkg.go.dev/crypto/rc4>`_
- `CWE-327: Use of a Broken or Risky Cryptographic Algorithm <https://cwe.mitre.org/data/definitions/327.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.2.1
""" # noqa: E501
from precli.core.level import Level
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/go/stdlib/crypto_weak_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
- `CWE-328: Use of Weak Hash <https://cwe.mitre.org/data/definitions/328.html>`_
- `NIST Policy on Hash Functions <https://csrc.nist.gov/projects/hash-functions>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.2.1
""" # noqa: E501
from precli.core.level import Level
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/go/stdlib/crypto_weak_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
- `rsa package - crypto_rsa - Go Packages <https://pkg.go.dev/crypto/rsa#GenerateKey>`_
- `CWE-326: Inadequate Encryption Strength <https://cwe.mitre.org/data/definitions/326.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.2.1
""" # noqa: E501
from precli.core.level import Level
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/crypt_weak_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
- `CWE-328: Use of Weak Hash <https://cwe.mitre.org/data/definitions/328.html>`_
- `NIST Policy on Hash Functions <https://csrc.nist.gov/projects/hash-functions>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.0
""" # noqa: E501
from precli.core.location import Location
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/ftplib_cleartext.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
- https://www.paramiko.org/
- https://twisted.org/
.. versionadded:: 1.0.0
.. versionadded:: 0.1.0
""" # noqa: E501
from precli.core.level import Level
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/hashlib_weak_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
- `CWE-328: Use of Weak Hash <https://cwe.mitre.org/data/definitions/328.html>`_
- `NIST Policy on Hash Functions <https://csrc.nist.gov/projects/hash-functions>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.0
""" # noqa: E501
from precli.core.argument import Argument
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/hmac_timing_attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
- `hmac — Keyed-Hashing for Message Authentication <https://docs.python.org/3/library/hmac.html>`_
- `CWE-208: Observable Timing Discrepancy <https://cwe.mitre.org/data/definitions/208.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.4
""" # noqa: E501
from precli.core.level import Level
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/hmac_weak_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
- `CWE-328: Use of Weak Hash <https://cwe.mitre.org/data/definitions/328.html>`_
- `NIST Policy on Hash Functions <https://csrc.nist.gov/projects/hash-functions>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.0
""" # noqa: E501
from precli.core.level import Level
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/imaplib_cleartext.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
- `imaplib — IMAP4 protocol client <https://docs.python.org/3/library/imaplib.html>`_
- `CWE-319: Cleartext Transmission of Sensitive Information <https://cwe.mitre.org/data/definitions/319.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.9
""" # noqa: E501
from precli.core.level import Level
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/json_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
- `json — JSON encoder and decoder <https://docs.python.org/3/library/json.html>`_
- `CWE-502: Deserialization of Untrusted Data <https://cwe.mitre.org/data/definitions/502.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.0
""" # noqa: E501
from precli.core.location import Location
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def validate(recv: bytes):
- `logging.config — Logging configuration <https://docs.python.org/3/library/logging.config.html#module-logging.config>`_
- `CWE-94: Improper Control of Generation of Code ('Code Injection') <https://cwe.mitre.org/data/definitions/94.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.0
""" # noqa: E501
from precli.core.location import Location
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/marshal_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
- `marshal — Internal Python object serialization <https://docs.python.org/3/library/marshal.html>`_
- `CWE-502: Deserialization of Untrusted Data <https://cwe.mitre.org/data/definitions/502.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.0
""" # noqa: E501
from precli.core.location import Location
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/nntplib_cleartext.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
- `nntplib — NNTP protocol client <https://docs.python.org/3/library/nntplib.html>`_
- `CWE-319: Cleartext Transmission of Sensitive Information <https://cwe.mitre.org/data/definitions/319.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.9
""" # noqa: E501
from precli.core.level import Level
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/pickle_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def load_pickle_file(file_path):
- `CWE-502: Deserialization of Untrusted Data <https://cwe.mitre.org/data/definitions/502.html>`_
- `json — JSON encoder and decoder <https://docs.python.org/3/library/json.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.0
""" # noqa: E501
from precli.core.location import Location
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/poplib_cleartext.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
- `poplib — POP3 protocol client <https://docs.python.org/3/library/poplib.html>`_
- `CWE-319: Cleartext Transmission of Sensitive Information <https://cwe.mitre.org/data/definitions/319.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.9
""" # noqa: E501
from precli.core.level import Level
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/shelve_open.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
- `shelve — Python object persistence <https://docs.python.org/3/library/shelve.html>`_
- `CWE-502: Deserialization of Untrusted Data <https://cwe.mitre.org/data/definitions/502.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.0
""" # noqa: E501
from precli.core.location import Location
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/smtplib_cleartext.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def prompt(prompt):
- `smtplib — SMTP protocol client <https://docs.python.org/3/library/smtplib.html>`_
- `CWE-319: Cleartext Transmission of Sensitive Information <https://cwe.mitre.org/data/definitions/319.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.9
""" # noqa: E501
from precli.core.level import Level
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/ssl_context_weak_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
- `CWE-326: Inadequate Encryption Strength <https://cwe.mitre.org/data/definitions/326.html>`_
- `Transport Layer Security (TLS) Parameters <https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-8>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.2.3
""" # noqa: E501
import re
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
- `ssl — TLS/SSL wrapper for socket objects <https://docs.python.org/3/library/ssl.html>`_
- `CWE-295: Improper Certificate Validation <https://cwe.mitre.org/data/definitions/295.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.0
""" # noqa: E501
from precli.core.location import Location
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/ssl_insecure_tls_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
- `ssl — TLS/SSL wrapper for socket objects <https://docs.python.org/3/library/ssl.html>`_
- `CWE-326: Inadequate Encryption Strength <https://cwe.mitre.org/data/definitions/326.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.0
""" # noqa: E501
from precli.core.argument import Argument
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/telnetlib_cleartext.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
- https://www.paramiko.org/
- https://twisted.org/
.. versionadded:: 1.0.0
.. versionadded:: 0.1.0
""" # noqa: E501
from precli.core.level import Level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
- `tempfile — Generate temporary files and directories <https://docs.python.org/3/library/tempfile.html#tempfile.mktemp>`_
- `CWE-377: Insecure Temporary File <https://cwe.mitre.org/data/definitions/377.html>`_
.. versionadded:: 1.0.0
.. versionadded:: 0.1.9
""" # noqa: E501
from precli.core.fix import Fix
Expand Down

0 comments on commit 37acc8e

Please sign in to comment.