Skip to content

Commit

Permalink
Fix links and titles to docs (#239)
Browse files Browse the repository at this point in the history
Change the title of each doc to match the name of the rule. Also added
missing docs.

Signed-off-by: Eric Brown <eric.brown@securesauce.dev>
  • Loading branch information
ericwb authored Jan 28, 2024
1 parent 0abd2bb commit 5661aee
Show file tree
Hide file tree
Showing 26 changed files with 91 additions and 59 deletions.
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ Rule Listing
.. toctree::
:maxdepth: 1

rules/go/index
rules/python/index
8 changes: 8 additions & 0 deletions docs/source/rules/go/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Go
==


.. toctree::
:maxdepth: 1

stdlib/index
5 changes: 5 additions & 0 deletions docs/source/rules/go/stdlib/crypto_weak_cipher.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
====================
crypto — weak cipher
====================

.. automodule:: precli.rules.go.stdlib.crypto_weak_cipher
5 changes: 5 additions & 0 deletions docs/source/rules/go/stdlib/crypto_weak_hash.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
==================
crypto — weak hash
==================

.. automodule:: precli.rules.go.stdlib.crypto_weak_hash
5 changes: 5 additions & 0 deletions docs/source/rules/go/stdlib/crypto_weak_key.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=================
crypto — weak key
=================

.. automodule:: precli.rules.go.stdlib.crypto_weak_key
8 changes: 8 additions & 0 deletions docs/source/rules/go/stdlib/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Standard Library
================

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

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

This file was deleted.

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

.. automodule:: precli.rules.python.stdlib.crypt_weak_hash
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/ftplib_cleartext.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0003
=======
==================
ftplib — cleartext
==================

.. automodule:: precli.rules.python.stdlib.ftplib_cleartext
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/hashlib_weak_hash.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0004
=======
===================
hashlib — weak hash
===================

.. automodule:: precli.rules.python.stdlib.hashlib_weak_hash
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/hmac_timing_attack.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0005
=======
====================
hmac — timing attack
====================

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

.. automodule:: precli.rules.python.stdlib.hmac_weak_hash
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/imaplib_cleartext.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0005
=======
===================
imaplib — cleartext
===================

.. automodule:: precli.rules.python.stdlib.imaplib_cleartext
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/json_load.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0006
=======
===========
json — load
===========

.. automodule:: precli.rules.python.stdlib.json_load
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0007
=======
================================
logging — insecure listen config
================================

.. automodule:: precli.rules.python.stdlib.logging_insecure_listen_config
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/marshal_load.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0008
=======
==============
marshal — load
==============

.. automodule:: precli.rules.python.stdlib.marshal_load
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/nntplib_cleartext.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0008
=======
===================
nntplib — cleartext
===================

.. automodule:: precli.rules.python.stdlib.nntplib_cleartext
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/pickle_load.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0009
=======
=============
pickle — load
=============

.. automodule:: precli.rules.python.stdlib.pickle_load
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/poplib_cleartext.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0009
=======
==================
poplib — cleartext
==================

.. automodule:: precli.rules.python.stdlib.poplib_cleartext
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/shelve_open.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0010
=======
=============
shelve — open
=============

.. automodule:: precli.rules.python.stdlib.shelve_open
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/smtplib_cleartext.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0010
=======
===================
smtplib — cleartext
===================

.. automodule:: precli.rules.python.stdlib.smtplib_cleartext
5 changes: 5 additions & 0 deletions docs/source/rules/python/stdlib/ssl_context_weak_key.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
==============
ssl — weak key
==============

.. automodule:: precli.rules.python.stdlib.ssl_context_weak_key
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0011
=======
===============================
ssl — create unverified context
===============================

.. automodule:: precli.rules.python.stdlib.ssl_create_unverified_context
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/ssl_insecure_tls_version.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0012
=======
==========================
ssl — insecure tls version
==========================

.. automodule:: precli.rules.python.stdlib.ssl_insecure_tls_version
6 changes: 3 additions & 3 deletions docs/source/rules/python/stdlib/telnetlib_cleartext.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0013
=======
=====================
telnetlib — cleartext
=====================

.. automodule:: precli.rules.python.stdlib.telnetlib_cleartext
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======
PRE0013
=======
================================
tempfile — mktemp race condition
================================

.. automodule:: precli.rules.python.stdlib.tempfile_mktemp_race_condition

0 comments on commit 5661aee

Please sign in to comment.