Remove return statement which is not inside a function - #98
Remove return statement which is not inside a function#98deepsource-autofix[bot] wants to merge 1 commit into
return statement which is not inside a function#98Conversation
A `return` statement should not be used outside of a function or method. This will raise a `SyntaxError`. Make sure that your code and indentation are correct.
DeepSource reviewed changes in the commit range For detailed review results, please see the PR on DeepSource ↗ Important Some issues found as part of this review are outside of the diff in this pull request and aren't shown in the inline review comments due to GitHub's API limitations. Please see the DeepSource dashboard for this PR to view those issues. PR Report CardCode Review Summary
How are these analyzer statuses calculated?Administrators can configure which issue categories are reported and cause analysis to be marked as failed when detected. This helps prevent bad and insecure code from being introduced in the codebase. If you're an administrator, you can modify this in the repository's settings.
|
|
@deepsourcebot review |
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Terraform | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Swift | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Test coverage | Apr 11, 2026 1:17a.m. | Review ↗ | |
| SQL | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Shell | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Secrets | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Scala | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Rust | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Ruby | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Python | Apr 11, 2026 1:17a.m. | Review ↗ | |
| PHP | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Kotlin | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Java | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Docker | Apr 11, 2026 1:17a.m. | Review ↗ | |
| C & C++ | Apr 11, 2026 1:17a.m. | Review ↗ | |
| C# | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Ansible | Apr 11, 2026 1:17a.m. | Review ↗ | |
| Go | Apr 11, 2026 1:17a.m. | Review ↗ | |
| JavaScript | Apr 11, 2026 1:17a.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
A
returnstatement should not be used outside of a function or method. This will raise aSyntaxError. Make sure that your code and indentation are correct.