Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move 3rd party rules to separate repo #232

Merged
merged 1 commit into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions docs/source/rules/python/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ Python
:maxdepth: 1

stdlib/index

.. toctree::
:maxdepth: 1

third_party/index
5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/assert.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-------
PRE0001
-------

.. automodule:: precli.rules.python.stdlib.assert
5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/assert/assert.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/assert/index.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/crypt/crypt_weak_hash.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/crypt/index.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/crypt_weak_hash.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0002
=======

.. automodule:: precli.rules.python.stdlib.crypt_weak_hash
5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/ftplib/ftp_cleartext.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/ftplib/index.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/ftplib_cleartext.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0003
=======

.. automodule:: precli.rules.python.stdlib.ftplib_cleartext

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/hashlib/index.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/hashlib_weak_hash.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0004
=======

.. automodule:: precli.rules.python.stdlib.hashlib_weak_hash
5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/hmac/hmac_timing_attack.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/hmac/hmac_weak_hash.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/hmac/index.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/hmac_timing_attack.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0005
=======

.. automodule:: precli.rules.python.stdlib.hmac_timing_attack
5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/hmac_weak_hash.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0005
=======

.. automodule:: precli.rules.python.stdlib.hmac_weak_hash
5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/imaplib/imap_cleartext.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/imaplib/index.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/imaplib_cleartext.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0005
=======

.. automodule:: precli.rules.python.stdlib.imaplib_cleartext
81 changes: 2 additions & 79 deletions docs/source/rules/python/stdlib/index.rst
Original file line number Diff line number Diff line change
@@ -1,85 +1,8 @@
Standard Library
================

.. list-table:: Active Rules
:widths: auto
:header-rows: 1

* - ID
- Module
- Name
- Level
* - :doc:`assert/assert`
- `assert <https://docs.python.org/3/reference/simple_stmts.html#assert>`_
- assert
- Warning
* - :doc:`crypt/crypt_weak_hash`
- `crypt <https://docs.python.org/3/library/crypt.html>`_
- reversible_one_way_hash
- Warning
* - :doc:`ftplib/ftp_cleartext`
- `ftplib <https://docs.python.org/3/library/ftplib.html>`_
- cleartext_transmission
- Warning or Error
* - :doc:`hashlib/hashlib_weak_hash`
- `hashlib <https://docs.python.org/3/library/hashlib.html>`_
- reversible_one_way_hash
- Error
* - :doc:`hmac/hmac_weak_hash`
- `hmac <https://docs.python.org/3/library/hmac.html>`_
- reversible_one_way_hash
- Error
* - :doc:`json/json_load`
- `json <https://docs.python.org/3/library/json.html>`_
- deserialization_of_untrusted_data
- Warning
* - :doc:`logging/insecure_listen_config`
- `logging <https://docs.python.org/3/library/logging.html>`_
- code_injection
- Warning
* - :doc:`marshal/marshal_load`
- `marshal <https://docs.python.org/3/library/marshal.html>`_
- deserialization_of_untrusted_data
- Warning
* - :doc:`pickle/pickle_load`
- `pickle <https://docs.python.org/3/library/pickle.html>`_
- deserialization_of_untrusted_data
- Warning
* - :doc:`shelve/shelve_open`
- `shelve <https://docs.python.org/3/library/shelve.html>`_
- deserialization_of_untrusted_data
- Warning
* - :doc:`ssl/create_unverified_context`
- `ssl <https://docs.python.org/3/library/ssl.html>`_
- improper_certificate_validation
- Warning
* - :doc:`ssl/insecure_tls_version`
- `ssl <https://docs.python.org/3/library/ssl.html>`_
- inadequate_encryption_strength
- Error
* - :doc:`telnetlib/telnetlib_cleartext`
- `telnetlib <https://docs.python.org/3/library/telnetlib.html>`_
- cleartext_transmission
- Error

.. toctree::
:hidden:
:maxdepth: 1
:glob:

assert/index
crypt/index
ftplib/index
hashlib/index
hmac/index
imaplib/index
json/index
logging/index
marshal/index
nntplib/index
pickle/index
poplib/index
shelve/index
smtplib/index
ssl/index
telnetlib/index
tempfile/index
*
8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/json/index.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/json/json_load.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/json_load.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0006
=======

.. automodule:: precli.rules.python.stdlib.json_load
8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/logging/index.rst

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0007
=======

.. automodule:: precli.rules.python.stdlib.logging_insecure_listen_config
8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/marshal/index.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/marshal/marshal_load.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/marshal_load.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0008
=======

.. automodule:: precli.rules.python.stdlib.marshal_load
8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/nntplib/index.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/nntplib/nntp_cleartext.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/nntplib_cleartext.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0008
=======

.. automodule:: precli.rules.python.stdlib.nntplib_cleartext
8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/pickle/index.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/pickle/pickle_load.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/pickle_load.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0009
=======

.. automodule:: precli.rules.python.stdlib.pickle_load
8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/poplib/index.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/poplib/pop_cleartext.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/poplib_cleartext.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0009
=======

.. automodule:: precli.rules.python.stdlib.poplib_cleartext
8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/shelve/index.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/shelve/shelve_open.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/shelve_open.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
PRE0010
=======

.. automodule:: precli.rules.python.stdlib.shelve_open
8 changes: 0 additions & 8 deletions docs/source/rules/python/stdlib/smtplib/index.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/rules/python/stdlib/smtplib/smtp_cleartext.rst

This file was deleted.

Loading