Python: Fix formatting

This commit is contained in:
Rasmus Wriedt Larsen
2023-08-14 11:29:38 +02:00
parent bee8e6ff0d
commit eeefdc5dcd

View File

@@ -63,13 +63,12 @@ module FlaskConstantSecretKeyConfig {
sink = attr.getValue()
)
or
exists(SecretKeyAssignStmt e |
sink.asExpr() = e.getValue()
)
exists(SecretKeyAssignStmt e | sink.asExpr() = e.getValue())
) and
exists(sink.getScope().getLocation().getFile().getRelativePath()) and
not sink.getScope().getLocation().getFile().inStdlib()
}
/**
* An Assignments like `SECRET_KEY = ConstantValue`
* and `SECRET_KEY` file must be the Location that is specified in argument of `from_object` or `from_pyfile` methods