diff --git a/python/django/maintainability/duplicate-path-assignment.py b/python/django/maintainability/duplicate-path-assignment.py index 6ee65e1e09..9a31d2a8d5 100644 --- a/python/django/maintainability/duplicate-path-assignment.py +++ b/python/django/maintainability/duplicate-path-assignment.py @@ -80,23 +80,21 @@ path('path/to/view', views.other_view, {'def': 'abc'}), ] -# I would prefer duplicate-path-assignment to not match the following test cases -# to avoid giving two messages for the same issue, but could not find a way yet. -# todook: duplicate-path-assignment +# deepok: duplicate-path-assignment # ruleid: duplicate-path-assignment-different-names, duplicate-path-assignment urlpatterns = [ path('path/to/view', views.example_view, name="test"), path('path/to/view', views.example_view, name="other_name"), ] -# todook: duplicate-path-assignment +# deepok: duplicate-path-assignment # ruleid: duplicate-path-assignment-different-names, duplicate-path-assignment urlpatterns = [ path('path/to/view', views.example_view, {'abc': 'def'}, name="test"), path('path/to/view', views.example_view, {'abc': 'def'}, name="other_name"), ] -# todook: duplicate-path-assignment +# deepok: duplicate-path-assignment # ruleid: duplicate-path-assignment-different-names, duplicate-path-assignment urlpatterns = [ path('path/to/view', views.example_view, {'abc': 'def'}, name="test"), @@ -104,7 +102,7 @@ path('path/to/view', views.example_view, {'abc': 'def'}, name="other_name"), ] -# todook: duplicate-path-assignment +# deepok: duplicate-path-assignment # ruleid: duplicate-path-assignment-different-names, duplicate-path-assignment urlpatterns = [ path('path/to/view', views.example_view, {'abc': 'def'}, name="test123"), diff --git a/python/requests/security/no-auth-over-http.py b/python/requests/security/no-auth-over-http.py index e60f6e6be5..3977eb0283 100644 --- a/python/requests/security/no-auth-over-http.py +++ b/python/requests/security/no-auth-over-http.py @@ -2,6 +2,7 @@ # ok:no-auth-over-http good_url = "https://www.github.com" +# deepruleid:no-auth-over-http bad_url = "http://www.github.com" # ruleid:no-auth-over-http diff --git a/ruby/rails/security/brakeman/check-sql.rb b/ruby/rails/security/brakeman/check-sql.rb index 63ba9858b4..65e8e8c94f 100644 --- a/ruby/rails/security/brakeman/check-sql.rb +++ b/ruby/rails/security/brakeman/check-sql.rb @@ -147,7 +147,7 @@ def test_more_if_statements "blah" end - #ruleid: check-sql + # ruleid: deepok: check-sql Product.last("blah = '#{x}'") #ok: check-sql