Skip to content

Commit

Permalink
Add doc and version
Browse files Browse the repository at this point in the history
  • Loading branch information
ehooo authored and ericwb committed Jun 14, 2018
1 parent 82f877b commit e2b777b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bandit/plugins/django_sql_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


import ast

import bandit
from bandit.core import test_properties as test

Expand All @@ -38,7 +39,7 @@ def django_extra_used(context):
- https://docs.djangoproject.com/en/dev/topics/
security/#sql-injection-protection
.. versionadded:: X.X.X
.. versionadded:: 1.4.1
"""
description = "Use of extra potential SQL attack vector."
Expand Down Expand Up @@ -101,7 +102,7 @@ def django_rawsql_used(context):
- https://docs.djangoproject.com/en/dev/topics/
security/#sql-injection-protection
.. versionadded:: X.X.X
.. versionadded:: 1.4.1
"""
description = "Use of RawSQL potential SQL attack vector."
Expand Down
5 changes: 5 additions & 0 deletions doc/source/plugins/b610_django_extra_used.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-----------------------
B610: django_extra_used
-----------------------

.. automodule:: bandit.plugins.django_injection_sql
5 changes: 5 additions & 0 deletions doc/source/plugins/b611_django_rawsql_used.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
------------------------
B610: django_rawsql_used
------------------------

.. automodule:: bandit.plugins.django_injection_sql

0 comments on commit e2b777b

Please sign in to comment.