ruff/crates/ruff_linter/resources/test/fixtures/flake8_bandit
Charlie Marsh f76a3e8502
Detect `mark_safe` usages in decorators (#9887)
## Summary

Django's `mark_safe` can also be used as a decorator, so we should
detect usages of `@mark_safe` for the purpose of the relevant Bandit
rule.

Closes https://github.com/astral-sh/ruff/issues/9780.
2024-02-07 23:10:46 -05:00
..
S101.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S102.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S103.py Implement our own small-integer optimization (#7584) 2023-09-25 15:13:21 +00:00
S104.py New AST nodes for f-string elements (#8835) 2023-12-07 10:28:05 -06:00
S105.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S106.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S107.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S108.py New AST nodes for f-string elements (#8835) 2023-12-07 10:28:05 -06:00
S110.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S112.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S113.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S201.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S202.py [flake8-bandit] Implement tarfile-unsafe-members (S202) (#8829) 2023-11-24 17:46:06 +00:00
S301.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S307.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S308.py Detect `mark_safe` usages in decorators (#9887) 2024-02-07 23:10:46 -05:00
S310.py Remove Python 2-only methods from URLOpen audit (#8047) 2023-10-18 14:49:54 +00:00
S312.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S324.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S401.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S402.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S403.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S404.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S405.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S406.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S407.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S408.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S409.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S410.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S411.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S412.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S413.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S415.py [`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831) 2024-01-03 18:26:26 +00:00
S501.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S502.py [`flake8-bandit`] Implement `S502` `SslInsecureVersion` rule (#9390) 2024-01-05 01:27:41 +00:00
S503.py [`flake8-bandit`] Implement `S503` `SslWithBadDefaults` rule (#9391) 2024-01-05 01:38:41 +00:00
S504.py [`flake8-bandit`] Add `S504` `SslWithNoVersion` rule (#9384) 2024-01-03 21:56:41 +00:00
S505.py feat(rules): implement `flake8-bandit` `S505` (#7703) 2023-09-28 21:27:37 -04:00
S506.py [flake8-bandit/S506] Dont report violation when SafeLoader is imported from yaml.loader (#9299) 2023-12-28 14:30:46 +00:00
S507.py fix(rules): improve S507 detection (#7661) 2023-09-28 21:35:59 +00:00
S508.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S509.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S601.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S602.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S603.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S604.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S605.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S606.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S607.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S608.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S609.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S611.py [`flake8-bandit`] Implement `django-raw-sql` (`S611`) (#8651) 2023-11-20 12:21:12 +00:00
S612.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S701.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
S702.py [`flake8-bandit`] Implement `mako-templates` (`S702`) (#8533) 2023-11-07 20:58:43 +00:00