qdegraaf
|
c11f65381f
|
[flake8-bandit ] Implement S503 SslWithBadDefaults rule (#9391)
## Summary
Adds S503 rule for the
[flake8-bandit](https://github.com/tylerwince/flake8-bandit) plugin
port.
Checks for function defs argument defaults which have an insecure
ssl_version value. See also
https://bandit.readthedocs.io/en/latest/_modules/bandit/plugins/insecure_ssl_tls.html#ssl_with_bad_defaults
Some logic and the `const` can be shared with
https://github.com/astral-sh/ruff/pull/9390. When one of the two is
merged.
## Test Plan
Fixture added
## Issue Link
Refers: https://github.com/astral-sh/ruff/issues/1646
|
2024-01-05 01:38:41 +00:00 |
|