chore: blacklist unsafe functions (#19537)

This commit is contained in:
Beto Dealmeida
2022-04-05 14:55:30 -07:00
committed by GitHub
parent 3f7b768c5b
commit 1b4d8ddf71
4 changed files with 11 additions and 5 deletions

View File

@@ -51,3 +51,9 @@ repos:
- id: prettier
args: ['--ignore-path=./superset-frontend/.prettierignore']
files: 'superset-frontend'
# blacklist unsafe functions like make_url (see #19526)
- repo: https://github.com/skorokithakis/blacklist-pre-commit-hook
rev: e2f070289d8eddcaec0b580d3bde29437e7c8221
hooks:
- id: blacklist
args: ["--blacklisted-names=make_url", "--ignore=tests/"]