ruff/docs/rules
Matt Oberle fc628de667
Implement bandit's 'hardcoded-sql-expressions' S608 (#2698)
This is an attempt to implement `bandit` rule `B608` (renamed here `S608`).
- https://bandit.readthedocs.io/en/latest/plugins/b608_hardcoded_sql_expressions.html

The rule inspects strings constructed via `+`, `%`, `.format`, and `f""`.

- `+` and `%` via `BinOp`
- `.format` via `Call`
- `f""` via `JoinedString`

Any SQL-ish strings that use Python string formatting are flagged.

The expressions and targeted expression types for the rule come from here:
- 7104b336d3/bandit/plugins/injection_sql.py

> Related Issue: https://github.com/charliermarsh/ruff/issues/1646
2023-02-09 19:28:17 -05:00
..
assert-raises-exception.md Add documentation for flake8-quotes rules (#2650) 2023-02-07 21:20:24 -05:00
avoid-quote-escape.md Add documentation for flake8-quotes rules (#2650) 2023-02-07 21:20:24 -05:00
bad-quotes-docstring.md Add documentation for flake8-quotes rules (#2650) 2023-02-07 21:20:24 -05:00
bad-quotes-inline-string.md Add documentation for flake8-quotes rules (#2650) 2023-02-07 21:20:24 -05:00
bad-quotes-multiline-string.md Add documentation for flake8-quotes rules (#2650) 2023-02-07 21:20:24 -05:00
commented-out-code.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
dynamically-typed-expression.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
function-is-too-complex.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
hardcoded-sql-expression.md Implement bandit's 'hardcoded-sql-expressions' S608 (#2698) 2023-02-09 19:28:17 -05:00
implicit-namespace-package.md Add documentation for eradicate, flake8-import-conventions, and flake8-no-pep420 (#2652) 2023-02-07 22:19:21 -05:00
missing-required-import.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
missing-return-type-class-method.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
missing-return-type-private-function.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
missing-return-type-public-function.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
missing-return-type-special-method.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
missing-return-type-static-method.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
missing-type-args.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
missing-type-cls.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
missing-type-function-argument.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
missing-type-kwargs.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
missing-type-self.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00
prefix-type-params.md Add flake8-pyi with one rule (#2682) 2023-02-09 19:03:11 -05:00
raise-vanilla-class.md doc: add documentation for TRY002 (#2655) 2023-02-08 11:04:31 -05:00
unconventional-import-alias.md Add documentation for eradicate, flake8-import-conventions, and flake8-no-pep420 (#2652) 2023-02-07 22:19:21 -05:00
unsorted-imports.md Add documentation for mccabe, isort, and flake8-annotations (#2691) 2023-02-09 11:56:18 -05:00