mirror of https://github.com/zulip/zulip.git
semgrep: Allow zerver.lib.mime_types imports in migrations.
This commit is contained in:
parent
872e2ad2cd
commit
f66b78f6b3
|
@ -54,6 +54,7 @@ rules:
|
||||||
|
|
||||||
- id: dont-import-models-in-migrations
|
- id: dont-import-models-in-migrations
|
||||||
patterns:
|
patterns:
|
||||||
|
- pattern-not: from zerver.lib.mime_types import guess_type
|
||||||
- pattern-not: from zerver.lib.redis_utils import get_redis_client
|
- pattern-not: from zerver.lib.redis_utils import get_redis_client
|
||||||
- pattern-not: from zerver.lib.utils import generate_api_key
|
- pattern-not: from zerver.lib.utils import generate_api_key
|
||||||
- pattern-not: from zerver.models.linkifiers import filter_pattern_validator
|
- pattern-not: from zerver.models.linkifiers import filter_pattern_validator
|
||||||
|
|
Loading…
Reference in New Issue