Skip to content

Commit

Permalink
Remove third_party directory and flatten rules (#183)
Browse files Browse the repository at this point in the history
* Move 3rd party rules to same level as stdlib, rm third_party
* Do same with tests

Signed-off-by: Eric Brown <eric.brown@securesauce.dev>
  • Loading branch information
ericwb authored Dec 31, 2023
1 parent b918c22 commit 6bff57e
Show file tree
Hide file tree
Showing 298 changed files with 44 additions and 66 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
88 changes: 44 additions & 44 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -94,71 +94,71 @@ precli.rules.python =
# precli/rules/python/stdlib/tempfile/mktemp_race_condition.py
PRE0019 = precli.rules.python.stdlib.tempfile.mktemp_race_condition:MktempRaceCondition

# precli/rules/python/third_party/aiohttp/no_certificate_verify.py
PRE0501 = precli.rules.python.third_party.aiohttp.no_certificate_verify:NoCertificateVerify
# precli/rules/python/aiohttp/no_certificate_verify.py
PRE0501 = precli.rules.python.aiohttp.no_certificate_verify:NoCertificateVerify

# precli/rules/python/third_party/cryptography/cryptography_weak_cipher.py
PRE0502 = precli.rules.python.third_party.cryptography.cryptography_weak_cipher:CryptographyWeakCipher
# precli/rules/python/cryptography/cryptography_weak_cipher.py
PRE0502 = precli.rules.python.cryptography.cryptography_weak_cipher:CryptographyWeakCipher

# precli/rules/python/third_party/cryptography/cryptography_weak_cipher_mode.py
PRE0503 = precli.rules.python.third_party.cryptography.cryptography_weak_cipher_mode:CryptographyWeakCipherMode
# precli/rules/python/cryptography/cryptography_weak_cipher_mode.py
PRE0503 = precli.rules.python.cryptography.cryptography_weak_cipher_mode:CryptographyWeakCipherMode

# precli/rules/python/third_party/cryptography/cryptography_weak_hash.py
PRE0504 = precli.rules.python.third_party.cryptography.cryptography_weak_hash:CryptographyWeakHash
# precli/rules/python/cryptography/cryptography_weak_hash.py
PRE0504 = precli.rules.python.cryptography.cryptography_weak_hash:CryptographyWeakHash

# precli/rules/python/third_party/cryptography/cryptography_weak_key.py
PRE0505 = precli.rules.python.third_party.cryptography.cryptography_weak_key:CryptographyWeakKey
# precli/rules/python/cryptography/cryptography_weak_key.py
PRE0505 = precli.rules.python.cryptography.cryptography_weak_key:CryptographyWeakKey

# precli/rules/python/third_party/dill/dill_load.py
PRE0506 = precli.rules.python.third_party.dill.dill_load:DillLoad
# precli/rules/python/dill/dill_load.py
PRE0506 = precli.rules.python.dill.dill_load:DillLoad

# precli/rules/python/third_party/httpx/no_certificate_verify.py
PRE0507 = precli.rules.python.third_party.httpx.no_certificate_verify:NoCertificateVerify
# precli/rules/python/httpx/no_certificate_verify.py
PRE0507 = precli.rules.python.httpx.no_certificate_verify:NoCertificateVerify

# precli/rules/python/third_party/jsonpickle/jsonpickle_decode.py
PRE0508 = precli.rules.python.third_party.jsonpickle.jsonpickle_decode:JsonpickleDecode
# precli/rules/python/jsonpickle/jsonpickle_decode.py
PRE0508 = precli.rules.python.jsonpickle.jsonpickle_decode:JsonpickleDecode

# precli/rules/python/third_party/M2Crypto/m2crypto_weak_key.py
PRE0509 = precli.rules.python.third_party.M2Crypto.m2crypto_weak_key:M2CryptoWeakKey
# precli/rules/python/M2Crypto/m2crypto_weak_key.py
PRE0509 = precli.rules.python.M2Crypto.m2crypto_weak_key:M2CryptoWeakKey

# precli/rules/python/third_party/pandas/pandas_read_pickle.py
PRE0510 = precli.rules.python.third_party.pandas.pandas_read_pickle:PandasReadPickle
# precli/rules/python/pandas/pandas_read_pickle.py
PRE0510 = precli.rules.python.pandas.pandas_read_pickle:PandasReadPickle

# precli/rules/python/third_party/paramiko/paramiko_no_host_key_verify.py
PRE0511 = precli.rules.python.third_party.paramiko.paramiko_no_host_key_verify:ParamikoNoHostKeyVerify
# precli/rules/python/paramiko/paramiko_no_host_key_verify.py
PRE0511 = precli.rules.python.paramiko.paramiko_no_host_key_verify:ParamikoNoHostKeyVerify

# precli/rules/python/third_party/pycrypto/pycrypto_weak_cipher.py
PRE0512 = precli.rules.python.third_party.pycrypto.pycrypto_weak_cipher:PycryptoWeakCipher
# precli/rules/python/pycrypto/pycrypto_weak_cipher.py
PRE0512 = precli.rules.python.pycrypto.pycrypto_weak_cipher:PycryptoWeakCipher

# precli/rules/python/third_party/pycrypto/pycrypto_weak_hash.py
PRE0513 = precli.rules.python.third_party.pycrypto.pycrypto_weak_hash:PycryptoWeakHash
# precli/rules/python/pycrypto/pycrypto_weak_hash.py
PRE0513 = precli.rules.python.pycrypto.pycrypto_weak_hash:PycryptoWeakHash

# precli/rules/python/third_party/pycrypto/pycrypto_weak_key.py
PRE0514 = precli.rules.python.third_party.pycrypto.pycrypto_weak_key:PycryptoWeakKey
# precli/rules/python/pycrypto/pycrypto_weak_key.py
PRE0514 = precli.rules.python.pycrypto.pycrypto_weak_key:PycryptoWeakKey

# precli/rules/python/third_party/pycryptodomex/pycryptodomex_weak_cipher.py
PRE0515 = precli.rules.python.third_party.pycryptodomex.pycryptodomex_weak_cipher:PycryptodomexWeakCipher
# precli/rules/python/pycryptodomex/pycryptodomex_weak_cipher.py
PRE0515 = precli.rules.python.pycryptodomex.pycryptodomex_weak_cipher:PycryptodomexWeakCipher

# precli/rules/python/third_party/pycryptodomex/pycryptodomex_weak_hash.py
PRE0516 = precli.rules.python.third_party.pycryptodomex.pycryptodomex_weak_hash:PycryptodomexWeakHash
# precli/rules/python/pycryptodomex/pycryptodomex_weak_hash.py
PRE0516 = precli.rules.python.pycryptodomex.pycryptodomex_weak_hash:PycryptodomexWeakHash

# precli/rules/python/third_party/pycryptodomex/pycryptodomex_weak_key.py
PRE0517 = precli.rules.python.third_party.pycryptodomex.pycryptodomex_weak_key:PycryptodomexWeakKey
# precli/rules/python/pycryptodomex/pycryptodomex_weak_key.py
PRE0517 = precli.rules.python.pycryptodomex.pycryptodomex_weak_key:PycryptodomexWeakKey

# precli/rules/python/third_party/pyghmi/pyghmi_cleartext.py
PRE0518 = precli.rules.python.third_party.pyghmi.pyghmi_cleartext:PyghmiCleartext
# precli/rules/python/pyghmi/pyghmi_cleartext.py
PRE0518 = precli.rules.python.pyghmi.pyghmi_cleartext:PyghmiCleartext

# precli/rules/python/third_party/pyopenssl/insecure_tls_method.py
PRE0519 = precli.rules.python.third_party.pyopenssl.insecure_tls_method:InsecureTlsMethod
# precli/rules/python/pyopenssl/insecure_tls_method.py
PRE0519 = precli.rules.python.pyopenssl.insecure_tls_method:InsecureTlsMethod

# precli/rules/python/third_party/pyopenssl/pyopenssl_weak_key.py
PRE0520 = precli.rules.python.third_party.pyopenssl.pyopenssl_weak_key:PyopensslWeakKey
# precli/rules/python/pyopenssl/pyopenssl_weak_key.py
PRE0520 = precli.rules.python.pyopenssl.pyopenssl_weak_key:PyopensslWeakKey

# precli/rules/python/third_party/PyYAML/yaml_load.py
PRE0521 = precli.rules.python.third_party.PyYAML.yaml_load:YamlLoad
# precli/rules/python/PyYAML/yaml_load.py
PRE0521 = precli.rules.python.PyYAML.yaml_load:YamlLoad

# precli/rules/python/third_party/requests/no_certificate_verify.py
PRE0522 = precli.rules.python.third_party.requests.no_certificate_verify:NoCertificateVerify
# precli/rules/python/requests/no_certificate_verify.py
PRE0522 = precli.rules.python.requests.no_certificate_verify:NoCertificateVerify

[build_sphinx]
all_files = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"M2Crypto",
"examples",
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"PyYAML",
"examples",
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"aiohttp",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"cryptography",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"cryptography",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"cryptography",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"cryptography",
"examples",
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"dill",
"examples",
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"httpx",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"jsonpickle",
"examples",
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"pandas",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"paramiko",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"pycrypto",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"pycrypto",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"pycrypto",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"pycryptodomex",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"pycryptodomex",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"pycryptodomex",
"examples",
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"pyghmi",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"pyopenssl",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"pyopenssl",
"examples",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def setUp(self):
"unit",
"rules",
"python",
"third_party",
"requests",
"examples",
)
Expand Down
Empty file.
Empty file.

0 comments on commit 6bff57e

Please sign in to comment.