rspec/rules/S4529/python/rule.adoc

21 lines
383 B
Plaintext
Raw Normal View History

2020-06-30 12:49:37 +02:00
include::../description.adoc[]
include::../ask-yourself.adoc[]
include::../recommended.adoc[]
== Sensitive Code Example
Django endpoint declaration
----
from django.urls import path, re_path
def declare_views(views):
return [
path('', views['index']), # Sensitive
re_path(r'^about/[0-9]*/$', views['about']), # Sensitive
]
----
include::../see.adoc[]