mirror of https://github.com/zulip/zulip.git
semgrep: Reformat and correct doc link.
This commit is contained in:
parent
5ab62a3514
commit
06c831f146
|
@ -1,18 +1,20 @@
|
||||||
# See https://github.com/returntocorp/semgrep/blob/develop/docs/config.md for semgrep rule format
|
# See https://github.com/returntocorp/semgrep/blob/experimental/docs/config/advanced.md
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
####################### PYTHON RULES #######################
|
||||||
- id: deprecated-render-usage
|
- id: deprecated-render-usage
|
||||||
pattern: django.shortcuts.render_to_response(...)
|
pattern: django.shortcuts.render_to_response(...)
|
||||||
message: Use render() (from django.shortcuts) instead of render_to_response()
|
message: "Use render() (from django.shortcuts) instead of render_to_response()"
|
||||||
languages: [python]
|
languages: [python]
|
||||||
severity: ERROR
|
severity: ERROR
|
||||||
|
|
||||||
- id: useless-if-body
|
- id: useless-if-body
|
||||||
patterns:
|
patterns:
|
||||||
- pattern: |
|
- pattern: |
|
||||||
if $X:
|
if $X:
|
||||||
$S
|
$S
|
||||||
else:
|
else:
|
||||||
$S
|
$S
|
||||||
message: "useless if statment; both blocks have the same body"
|
message: "Useless if statment; both blocks have the same body"
|
||||||
languages: [python]
|
languages: [python]
|
||||||
severity: ERROR
|
severity: ERROR
|
||||||
|
|
Loading…
Reference in New Issue