From 103403b1740acd5e90873e454adb3cb0079cbf2d Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Fri, 26 Jan 2024 13:47:45 -0800 Subject: [PATCH] Flatten the directory structure of rules (#230) Now putting all stdlib rules in one directory rather than one per module. This aligns well with third-party libraries. Signed-off-by: Eric Brown --- precli/rules/go/stdlib/crypto/__init__.py | 0 .../weak_cipher.py => crypto_weak_cipher.py} | 0 .../weak_hash.py => crypto_weak_hash.py} | 0 .../weak_key.py => crypto_weak_key.py} | 0 .../python/stdlib/{assert => }/assert.py | 0 precli/rules/python/stdlib/assert/__init__.py | 0 precli/rules/python/stdlib/crypt/__init__.py | 0 .../stdlib/{crypt => }/crypt_weak_hash.py | 0 precli/rules/python/stdlib/eval/__init__.py | 0 precli/rules/python/stdlib/exec/__init__.py | 0 precli/rules/python/stdlib/ftplib/__init__.py | 0 .../ftp_cleartext.py => ftplib_cleartext.py} | 0 .../rules/python/stdlib/hashlib/__init__.py | 0 .../stdlib/{hashlib => }/hashlib_weak_hash.py | 0 precli/rules/python/stdlib/hmac/__init__.py | 0 .../stdlib/{hmac => }/hmac_timing_attack.py | 0 .../stdlib/{hmac => }/hmac_weak_hash.py | 0 precli/rules/python/stdlib/http/__init__.py | 0 .../rules/python/stdlib/imaplib/__init__.py | 0 ...imap_cleartext.py => imaplib_cleartext.py} | 0 precli/rules/python/stdlib/json/__init__.py | 0 .../python/stdlib/{json => }/json_load.py | 0 .../rules/python/stdlib/logging/__init__.py | 0 ...g.py => logging_insecure_listen_config.py} | 0 precli/rules/python/stdlib/lxml/__init__.py | 0 .../rules/python/stdlib/mailbox/__init__.py | 0 .../rules/python/stdlib/marshal/__init__.py | 0 .../stdlib/{marshal => }/marshal_load.py | 0 .../python/stdlib/multiprocessing/__init__.py | 0 .../rules/python/stdlib/nntplib/__init__.py | 0 ...nntp_cleartext.py => nntplib_cleartext.py} | 0 precli/rules/python/stdlib/os/__init__.py | 0 precli/rules/python/stdlib/pickle/__init__.py | 0 .../python/stdlib/{pickle => }/pickle_load.py | 0 precli/rules/python/stdlib/poplib/__init__.py | 0 .../pop_cleartext.py => poplib_cleartext.py} | 0 precli/rules/python/stdlib/random/__init__.py | 0 precli/rules/python/stdlib/shelve/__init__.py | 0 .../python/stdlib/{shelve => }/shelve_open.py | 0 precli/rules/python/stdlib/shlex/__init__.py | 0 precli/rules/python/stdlib/shutil/__init__.py | 0 .../rules/python/stdlib/smtplib/__init__.py | 0 ...smtp_cleartext.py => smtplib_cleartext.py} | 0 precli/rules/python/stdlib/ssl/__init__.py | 0 ...xt_weak_key.py => ssl_context_weak_key.py} | 0 ...xt.py => ssl_create_unverified_context.py} | 0 ...version.py => ssl_insecure_tls_version.py} | 0 .../python/stdlib/subprocess/__init__.py | 0 .../rules/python/stdlib/tarfile/__init__.py | 0 .../rules/python/stdlib/telnetlib/__init__.py | 0 .../{telnetlib => }/telnetlib_cleartext.py | 0 .../rules/python/stdlib/tempfile/__init__.py | 0 ...n.py => tempfile_mktemp_race_condition.py} | 0 precli/rules/python/stdlib/urllib/__init__.py | 0 precli/rules/python/stdlib/xml/__init__.py | 0 precli/rules/python/stdlib/xmlrpc/__init__.py | 0 .../rules/python/stdlib/zipfile/__init__.py | 0 setup.cfg | 90 +++++++++---------- 58 files changed, 45 insertions(+), 45 deletions(-) delete mode 100644 precli/rules/go/stdlib/crypto/__init__.py rename precli/rules/go/stdlib/{crypto/weak_cipher.py => crypto_weak_cipher.py} (100%) rename precli/rules/go/stdlib/{crypto/weak_hash.py => crypto_weak_hash.py} (100%) rename precli/rules/go/stdlib/{crypto/weak_key.py => crypto_weak_key.py} (100%) rename precli/rules/python/stdlib/{assert => }/assert.py (100%) delete mode 100644 precli/rules/python/stdlib/assert/__init__.py delete mode 100644 precli/rules/python/stdlib/crypt/__init__.py rename precli/rules/python/stdlib/{crypt => }/crypt_weak_hash.py (100%) delete mode 100644 precli/rules/python/stdlib/eval/__init__.py delete mode 100644 precli/rules/python/stdlib/exec/__init__.py delete mode 100644 precli/rules/python/stdlib/ftplib/__init__.py rename precli/rules/python/stdlib/{ftplib/ftp_cleartext.py => ftplib_cleartext.py} (100%) delete mode 100644 precli/rules/python/stdlib/hashlib/__init__.py rename precli/rules/python/stdlib/{hashlib => }/hashlib_weak_hash.py (100%) delete mode 100644 precli/rules/python/stdlib/hmac/__init__.py rename precli/rules/python/stdlib/{hmac => }/hmac_timing_attack.py (100%) rename precli/rules/python/stdlib/{hmac => }/hmac_weak_hash.py (100%) delete mode 100644 precli/rules/python/stdlib/http/__init__.py delete mode 100644 precli/rules/python/stdlib/imaplib/__init__.py rename precli/rules/python/stdlib/{imaplib/imap_cleartext.py => imaplib_cleartext.py} (100%) delete mode 100644 precli/rules/python/stdlib/json/__init__.py rename precli/rules/python/stdlib/{json => }/json_load.py (100%) delete mode 100644 precli/rules/python/stdlib/logging/__init__.py rename precli/rules/python/stdlib/{logging/insecure_listen_config.py => logging_insecure_listen_config.py} (100%) delete mode 100644 precli/rules/python/stdlib/lxml/__init__.py delete mode 100644 precli/rules/python/stdlib/mailbox/__init__.py delete mode 100644 precli/rules/python/stdlib/marshal/__init__.py rename precli/rules/python/stdlib/{marshal => }/marshal_load.py (100%) delete mode 100644 precli/rules/python/stdlib/multiprocessing/__init__.py delete mode 100644 precli/rules/python/stdlib/nntplib/__init__.py rename precli/rules/python/stdlib/{nntplib/nntp_cleartext.py => nntplib_cleartext.py} (100%) delete mode 100644 precli/rules/python/stdlib/os/__init__.py delete mode 100644 precli/rules/python/stdlib/pickle/__init__.py rename precli/rules/python/stdlib/{pickle => }/pickle_load.py (100%) delete mode 100644 precli/rules/python/stdlib/poplib/__init__.py rename precli/rules/python/stdlib/{poplib/pop_cleartext.py => poplib_cleartext.py} (100%) delete mode 100644 precli/rules/python/stdlib/random/__init__.py delete mode 100644 precli/rules/python/stdlib/shelve/__init__.py rename precli/rules/python/stdlib/{shelve => }/shelve_open.py (100%) delete mode 100644 precli/rules/python/stdlib/shlex/__init__.py delete mode 100644 precli/rules/python/stdlib/shutil/__init__.py delete mode 100644 precli/rules/python/stdlib/smtplib/__init__.py rename precli/rules/python/stdlib/{smtplib/smtp_cleartext.py => smtplib_cleartext.py} (100%) delete mode 100644 precli/rules/python/stdlib/ssl/__init__.py rename precli/rules/python/stdlib/{ssl/sslcontext_weak_key.py => ssl_context_weak_key.py} (100%) rename precli/rules/python/stdlib/{ssl/create_unverified_context.py => ssl_create_unverified_context.py} (100%) rename precli/rules/python/stdlib/{ssl/insecure_tls_version.py => ssl_insecure_tls_version.py} (100%) delete mode 100644 precli/rules/python/stdlib/subprocess/__init__.py delete mode 100644 precli/rules/python/stdlib/tarfile/__init__.py delete mode 100644 precli/rules/python/stdlib/telnetlib/__init__.py rename precli/rules/python/stdlib/{telnetlib => }/telnetlib_cleartext.py (100%) delete mode 100644 precli/rules/python/stdlib/tempfile/__init__.py rename precli/rules/python/stdlib/{tempfile/mktemp_race_condition.py => tempfile_mktemp_race_condition.py} (100%) delete mode 100644 precli/rules/python/stdlib/urllib/__init__.py delete mode 100644 precli/rules/python/stdlib/xml/__init__.py delete mode 100644 precli/rules/python/stdlib/xmlrpc/__init__.py delete mode 100644 precli/rules/python/stdlib/zipfile/__init__.py diff --git a/precli/rules/go/stdlib/crypto/__init__.py b/precli/rules/go/stdlib/crypto/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/go/stdlib/crypto/weak_cipher.py b/precli/rules/go/stdlib/crypto_weak_cipher.py similarity index 100% rename from precli/rules/go/stdlib/crypto/weak_cipher.py rename to precli/rules/go/stdlib/crypto_weak_cipher.py diff --git a/precli/rules/go/stdlib/crypto/weak_hash.py b/precli/rules/go/stdlib/crypto_weak_hash.py similarity index 100% rename from precli/rules/go/stdlib/crypto/weak_hash.py rename to precli/rules/go/stdlib/crypto_weak_hash.py diff --git a/precli/rules/go/stdlib/crypto/weak_key.py b/precli/rules/go/stdlib/crypto_weak_key.py similarity index 100% rename from precli/rules/go/stdlib/crypto/weak_key.py rename to precli/rules/go/stdlib/crypto_weak_key.py diff --git a/precli/rules/python/stdlib/assert/assert.py b/precli/rules/python/stdlib/assert.py similarity index 100% rename from precli/rules/python/stdlib/assert/assert.py rename to precli/rules/python/stdlib/assert.py diff --git a/precli/rules/python/stdlib/assert/__init__.py b/precli/rules/python/stdlib/assert/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/crypt/__init__.py b/precli/rules/python/stdlib/crypt/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/crypt/crypt_weak_hash.py b/precli/rules/python/stdlib/crypt_weak_hash.py similarity index 100% rename from precli/rules/python/stdlib/crypt/crypt_weak_hash.py rename to precli/rules/python/stdlib/crypt_weak_hash.py diff --git a/precli/rules/python/stdlib/eval/__init__.py b/precli/rules/python/stdlib/eval/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/exec/__init__.py b/precli/rules/python/stdlib/exec/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/ftplib/__init__.py b/precli/rules/python/stdlib/ftplib/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/ftplib/ftp_cleartext.py b/precli/rules/python/stdlib/ftplib_cleartext.py similarity index 100% rename from precli/rules/python/stdlib/ftplib/ftp_cleartext.py rename to precli/rules/python/stdlib/ftplib_cleartext.py diff --git a/precli/rules/python/stdlib/hashlib/__init__.py b/precli/rules/python/stdlib/hashlib/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/hashlib/hashlib_weak_hash.py b/precli/rules/python/stdlib/hashlib_weak_hash.py similarity index 100% rename from precli/rules/python/stdlib/hashlib/hashlib_weak_hash.py rename to precli/rules/python/stdlib/hashlib_weak_hash.py diff --git a/precli/rules/python/stdlib/hmac/__init__.py b/precli/rules/python/stdlib/hmac/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/hmac/hmac_timing_attack.py b/precli/rules/python/stdlib/hmac_timing_attack.py similarity index 100% rename from precli/rules/python/stdlib/hmac/hmac_timing_attack.py rename to precli/rules/python/stdlib/hmac_timing_attack.py diff --git a/precli/rules/python/stdlib/hmac/hmac_weak_hash.py b/precli/rules/python/stdlib/hmac_weak_hash.py similarity index 100% rename from precli/rules/python/stdlib/hmac/hmac_weak_hash.py rename to precli/rules/python/stdlib/hmac_weak_hash.py diff --git a/precli/rules/python/stdlib/http/__init__.py b/precli/rules/python/stdlib/http/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/imaplib/__init__.py b/precli/rules/python/stdlib/imaplib/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/imaplib/imap_cleartext.py b/precli/rules/python/stdlib/imaplib_cleartext.py similarity index 100% rename from precli/rules/python/stdlib/imaplib/imap_cleartext.py rename to precli/rules/python/stdlib/imaplib_cleartext.py diff --git a/precli/rules/python/stdlib/json/__init__.py b/precli/rules/python/stdlib/json/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/json/json_load.py b/precli/rules/python/stdlib/json_load.py similarity index 100% rename from precli/rules/python/stdlib/json/json_load.py rename to precli/rules/python/stdlib/json_load.py diff --git a/precli/rules/python/stdlib/logging/__init__.py b/precli/rules/python/stdlib/logging/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/logging/insecure_listen_config.py b/precli/rules/python/stdlib/logging_insecure_listen_config.py similarity index 100% rename from precli/rules/python/stdlib/logging/insecure_listen_config.py rename to precli/rules/python/stdlib/logging_insecure_listen_config.py diff --git a/precli/rules/python/stdlib/lxml/__init__.py b/precli/rules/python/stdlib/lxml/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/mailbox/__init__.py b/precli/rules/python/stdlib/mailbox/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/marshal/__init__.py b/precli/rules/python/stdlib/marshal/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/marshal/marshal_load.py b/precli/rules/python/stdlib/marshal_load.py similarity index 100% rename from precli/rules/python/stdlib/marshal/marshal_load.py rename to precli/rules/python/stdlib/marshal_load.py diff --git a/precli/rules/python/stdlib/multiprocessing/__init__.py b/precli/rules/python/stdlib/multiprocessing/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/nntplib/__init__.py b/precli/rules/python/stdlib/nntplib/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/nntplib/nntp_cleartext.py b/precli/rules/python/stdlib/nntplib_cleartext.py similarity index 100% rename from precli/rules/python/stdlib/nntplib/nntp_cleartext.py rename to precli/rules/python/stdlib/nntplib_cleartext.py diff --git a/precli/rules/python/stdlib/os/__init__.py b/precli/rules/python/stdlib/os/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/pickle/__init__.py b/precli/rules/python/stdlib/pickle/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/pickle/pickle_load.py b/precli/rules/python/stdlib/pickle_load.py similarity index 100% rename from precli/rules/python/stdlib/pickle/pickle_load.py rename to precli/rules/python/stdlib/pickle_load.py diff --git a/precli/rules/python/stdlib/poplib/__init__.py b/precli/rules/python/stdlib/poplib/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/poplib/pop_cleartext.py b/precli/rules/python/stdlib/poplib_cleartext.py similarity index 100% rename from precli/rules/python/stdlib/poplib/pop_cleartext.py rename to precli/rules/python/stdlib/poplib_cleartext.py diff --git a/precli/rules/python/stdlib/random/__init__.py b/precli/rules/python/stdlib/random/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/shelve/__init__.py b/precli/rules/python/stdlib/shelve/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/shelve/shelve_open.py b/precli/rules/python/stdlib/shelve_open.py similarity index 100% rename from precli/rules/python/stdlib/shelve/shelve_open.py rename to precli/rules/python/stdlib/shelve_open.py diff --git a/precli/rules/python/stdlib/shlex/__init__.py b/precli/rules/python/stdlib/shlex/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/shutil/__init__.py b/precli/rules/python/stdlib/shutil/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/smtplib/__init__.py b/precli/rules/python/stdlib/smtplib/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/smtplib/smtp_cleartext.py b/precli/rules/python/stdlib/smtplib_cleartext.py similarity index 100% rename from precli/rules/python/stdlib/smtplib/smtp_cleartext.py rename to precli/rules/python/stdlib/smtplib_cleartext.py diff --git a/precli/rules/python/stdlib/ssl/__init__.py b/precli/rules/python/stdlib/ssl/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/ssl/sslcontext_weak_key.py b/precli/rules/python/stdlib/ssl_context_weak_key.py similarity index 100% rename from precli/rules/python/stdlib/ssl/sslcontext_weak_key.py rename to precli/rules/python/stdlib/ssl_context_weak_key.py diff --git a/precli/rules/python/stdlib/ssl/create_unverified_context.py b/precli/rules/python/stdlib/ssl_create_unverified_context.py similarity index 100% rename from precli/rules/python/stdlib/ssl/create_unverified_context.py rename to precli/rules/python/stdlib/ssl_create_unverified_context.py diff --git a/precli/rules/python/stdlib/ssl/insecure_tls_version.py b/precli/rules/python/stdlib/ssl_insecure_tls_version.py similarity index 100% rename from precli/rules/python/stdlib/ssl/insecure_tls_version.py rename to precli/rules/python/stdlib/ssl_insecure_tls_version.py diff --git a/precli/rules/python/stdlib/subprocess/__init__.py b/precli/rules/python/stdlib/subprocess/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/tarfile/__init__.py b/precli/rules/python/stdlib/tarfile/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/telnetlib/__init__.py b/precli/rules/python/stdlib/telnetlib/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/telnetlib/telnetlib_cleartext.py b/precli/rules/python/stdlib/telnetlib_cleartext.py similarity index 100% rename from precli/rules/python/stdlib/telnetlib/telnetlib_cleartext.py rename to precli/rules/python/stdlib/telnetlib_cleartext.py diff --git a/precli/rules/python/stdlib/tempfile/__init__.py b/precli/rules/python/stdlib/tempfile/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/tempfile/mktemp_race_condition.py b/precli/rules/python/stdlib/tempfile_mktemp_race_condition.py similarity index 100% rename from precli/rules/python/stdlib/tempfile/mktemp_race_condition.py rename to precli/rules/python/stdlib/tempfile_mktemp_race_condition.py diff --git a/precli/rules/python/stdlib/urllib/__init__.py b/precli/rules/python/stdlib/urllib/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/xml/__init__.py b/precli/rules/python/stdlib/xml/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/xmlrpc/__init__.py b/precli/rules/python/stdlib/xmlrpc/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/precli/rules/python/stdlib/zipfile/__init__.py b/precli/rules/python/stdlib/zipfile/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/setup.cfg b/setup.cfg index 93255c27..86e24762 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,14 +33,14 @@ precli.parsers = python = precli.parsers.python:Python precli.rules.go = - # precli/rules/go/stdlib/crypto/weak_cipher.py - GO001 = precli.rules.go.stdlib.crypto.weak_cipher:WeakCipher + # precli/rules/go/stdlib/crypto_weak_cipher.py + GO001 = precli.rules.go.stdlib.crypto_weak_cipher:WeakCipher - # precli/rules/go/stdlib/crypto/weak_hash.py - GO002 = precli.rules.go.stdlib.crypto.weak_hash:WeakHash + # precli/rules/go/stdlib/crypto_weak_hash.py + GO002 = precli.rules.go.stdlib.crypto_weak_hash:WeakHash - # precli/rules/go/stdlib/crypto/weak_key.py - GO003 = precli.rules.go.stdlib.crypto.weak_key:WeakKey + # precli/rules/go/stdlib/crypto_weak_key.py + GO003 = precli.rules.go.stdlib.crypto_weak_key:WeakKey # precli/rules/go/golang_org_x_crypto/ssh_insecure_ignore_hostkey.py GO501 = precli.rules.go.golang_org_x_crypto.ssh_insecure_ignore_hostkey:SshInsecureIgnoreHostKey @@ -52,65 +52,65 @@ precli.rules.go = GO503 = precli.rules.go.golang_org_x_crypto.weak_hash:WeakHash precli.rules.python = - # precli/rules/python/stdlib/assert/assert.py - PY001 = precli.rules.python.stdlib.assert.assert:Assert + # precli/rules/python/stdlib/assert.py + PY001 = precli.rules.python.stdlib.assert:Assert # precli/rules/python/stdlib/crypt/crypt_weak_hash.py - PY002 = precli.rules.python.stdlib.crypt.crypt_weak_hash:CryptWeakHash + PY002 = precli.rules.python.stdlib.crypt_weak_hash:CryptWeakHash - # precli/rules/python/stdlib/ftplib/ftp_cleartext.py - PY003 = precli.rules.python.stdlib.ftplib.ftp_cleartext:FtpCleartext + # precli/rules/python/stdlib/ftplib_cleartext.py + PY003 = precli.rules.python.stdlib.ftplib_cleartext:FtpCleartext - # precli/rules/python/stdlib/hashlib/hashlib_weak_hash.py - PY004 = precli.rules.python.stdlib.hashlib.hashlib_weak_hash:HashlibWeakHash + # precli/rules/python/stdlib/hashlib_weak_hash.py + PY004 = precli.rules.python.stdlib.hashlib_weak_hash:HashlibWeakHash - # precli/rules/python/stdlib/hmac/hmac_timing_attack.py - PY005 = precli.rules.python.stdlib.hmac.hmac_timing_attack:HmacTimingAttack + # precli/rules/python/stdlib/hmac_timing_attack.py + PY005 = precli.rules.python.stdlib.hmac_timing_attack:HmacTimingAttack - # precli/rules/python/stdlib/hmac/hmac_weak_hash.py - PY006 = precli.rules.python.stdlib.hmac.hmac_weak_hash:HmacWeakHash + # precli/rules/python/stdlib/hmac_weak_hash.py + PY006 = precli.rules.python.stdlib.hmac_weak_hash:HmacWeakHash - # precli/rules/python/stdlib/imaplib/imap_cleartext.py - PY007 = precli.rules.python.stdlib.imaplib.imap_cleartext:ImapCleartext + # precli/rules/python/stdlib/imaplib_cleartext.py + PY007 = precli.rules.python.stdlib.imaplib_cleartext:ImapCleartext - # precli/rules/python/stdlib/json/json_load.py - PY008 = precli.rules.python.stdlib.json.json_load:JsonLoad + # precli/rules/python/stdlib/json_load.py + PY008 = precli.rules.python.stdlib.json_load:JsonLoad - # precli/rules/python/stdlib/logging/insecure_listen_config.py - PY009 = precli.rules.python.stdlib.logging.insecure_listen_config:InsecureListenConfig + # precli/rules/python/stdlib/logging_insecure_listen_config.py + PY009 = precli.rules.python.stdlib.logging_insecure_listen_config:InsecureListenConfig - # precli/rules/python/stdlib/marshal/marshal_load.py - PY010 = precli.rules.python.stdlib.marshal.marshal_load:MarshalLoad + # precli/rules/python/stdlib/marshal_load.py + PY010 = precli.rules.python.stdlib.marshal_load:MarshalLoad - # precli/rules/python/stdlib/nntplib/nntp_cleartext.py - PY011 = precli.rules.python.stdlib.nntplib.nntp_cleartext:NntpCleartext + # precli/rules/python/stdlib/nntplib_cleartext.py + PY011 = precli.rules.python.stdlib.nntplib_cleartext:NntpCleartext - # precli/rules/python/stdlib/pickle/pickle_load.py - PY012 = precli.rules.python.stdlib.pickle.pickle_load:PickleLoad + # precli/rules/python/stdlib/pickle_load.py + PY012 = precli.rules.python.stdlib.pickle_load:PickleLoad - # precli/rules/python/stdlib/poplib/pop_cleartext.py - PY013 = precli.rules.python.stdlib.poplib.pop_cleartext:PopCleartext + # precli/rules/python/stdlib/pop_cleartext.py + PY013 = precli.rules.python.stdlib.poplib_cleartext:PopCleartext - # precli/rules/python/stdlib/shelve/shelve_open.py - PY014 = precli.rules.python.stdlib.shelve.shelve_open:ShelveOpen + # precli/rules/python/stdlib/shelve_open.py + PY014 = precli.rules.python.stdlib.shelve_open:ShelveOpen - # precli/rules/python/stdlib/smtplib/smtp_cleartext.py - PY015 = precli.rules.python.stdlib.smtplib.smtp_cleartext:SmtpCleartext + # precli/rules/python/stdlib/smtplib_cleartext.py + PY015 = precli.rules.python.stdlib.smtplib_cleartext:SmtpCleartext - # precli/rules/python/stdlib/ssl/create_unverified_context.py - PY016 = precli.rules.python.stdlib.ssl.create_unverified_context:CreateUnverifiedContext + # precli/rules/python/stdlib/ssl_create_unverified_context.py + PY016 = precli.rules.python.stdlib.ssl_create_unverified_context:CreateUnverifiedContext - # precli/rules/python/stdlib/ssl/insecure_tls_version.py - PY017 = precli.rules.python.stdlib.ssl.insecure_tls_version:InsecureTlsVersion + # precli/rules/python/stdlib/ssl_insecure_tls_version.py + PY017 = precli.rules.python.stdlib.ssl_insecure_tls_version:InsecureTlsVersion - # precli/rules/python/stdlib/ssl/sslcontext_weak_key.py - PY018 = precli.rules.python.stdlib.ssl.sslcontext_weak_key:SslContextWeakKey + # precli/rules/python/stdlib/ssl_context_weak_key.py + PY018 = precli.rules.python.stdlib.ssl_context_weak_key:SslContextWeakKey - # precli/rules/python/stdlib/telnetlib/telnetlib_cleartext.py - PY019 = precli.rules.python.stdlib.telnetlib.telnetlib_cleartext:TelnetlibCleartext + # precli/rules/python/stdlib/telnetlib_cleartext.py + PY019 = precli.rules.python.stdlib.telnetlib_cleartext:TelnetlibCleartext - # precli/rules/python/stdlib/tempfile/mktemp_race_condition.py - PY020 = precli.rules.python.stdlib.tempfile.mktemp_race_condition:MktempRaceCondition + # precli/rules/python/stdlib/tempfile_mktemp_race_condition.py + PY020 = precli.rules.python.stdlib.tempfile_mktemp_race_condition:MktempRaceCondition # precli/rules/python/aiohttp/no_certificate_verify.py PY501 = precli.rules.python.aiohttp.no_certificate_verify:NoCertificateVerify