From 763a008fc89f9292c8fed999bca9a64936e8ffff Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Tue, 2 Feb 2021 15:06:33 +0100 Subject: [PATCH 1/2] check for unsave inline script or styles in Makefile --- Makefile | 2 ++ debug_toolbar/static/debug_toolbar/css/toolbar.css | 3 +++ debug_toolbar/static/debug_toolbar/js/toolbar.js | 2 ++ debug_toolbar/static/debug_toolbar/js/utils.js | 6 ++++++ debug_toolbar/templates/debug_toolbar/panels/history.html | 2 +- .../templates/debug_toolbar/panels/profiling.html | 2 +- debug_toolbar/templates/debug_toolbar/panels/sql.html | 8 ++++---- 7 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 0ddde5fe7..5b5ca4d76 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ style: package-lock.json flake8 npx eslint --ignore-path .gitignore --fix . npx prettier --ignore-path .gitignore --write $(PRETTIER_TARGETS) + ! grep -r '\(style=\|onclick=\|