mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
13 lines
393 B
YAML
13 lines
393 B
YAML
id: no-new-getattr
|
|
language: python
|
|
rule:
|
|
any:
|
|
- pattern: getattr($OBJ, $NAME)
|
|
- pattern: getattr($OBJ, $NAME, $$$REST)
|
|
- pattern: builtins.getattr($OBJ, $NAME)
|
|
- pattern: builtins.getattr($OBJ, $NAME, $$$REST)
|
|
- pattern: __builtins__.getattr($OBJ, $NAME)
|
|
- pattern: __builtins__.getattr($OBJ, $NAME, $$$REST)
|
|
message: net-new getattr() in added code
|
|
severity: error
|