Skip to content

Remove return statement which is not inside a function - #98

Open
deepsource-autofix[bot] wants to merge 1 commit into
masterfrom
deepsource-autofix-a7769e01
Open

Remove return statement which is not inside a function#98
deepsource-autofix[bot] wants to merge 1 commit into
masterfrom
deepsource-autofix-a7769e01

Conversation

@deepsource-autofix

Copy link
Copy Markdown
Contributor

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.

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-development

deepsource-development Bot commented Feb 12, 2026

Copy link
Copy Markdown

DeepSource Code Review

DeepSource reviewed changes in the commit range 1120e57..dff4693 on this pull request. Below is the summary for the review, and you can see the individual issues we found as review comments.

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 Card

Security × 5 issues Overall PR Quality   

Focus Area: Security

Guidance
Fix the XSS vulnerability caused by the 'v-html' directive in `javascript/packages/demo-vue/src/components/Header.vue`.

Grade capped at D due to multiple critical issues
Reliability × 66 issues
Complexity × 12 issues
Hygiene × 46 issues

Code Review Summary

Analyzer Status Summary Details
Go No new issues detected. Review ↗
Python 2 existing issues fixed. Review ↗
SQL No new issues detected. Review ↗
Terraform No new issues detected. Review ↗
JavaScript 129 new issues detected. Review ↗
Secrets No new issues detected. Review ↗
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.


💡 If you're a repository administrator, you can configure the quality gates from the settings.

@jai-deepsource

Copy link
Copy Markdown
Contributor

@deepsourcebot review

@deepsource-io

deepsource-io Bot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

DeepSource Code Review

We reviewed changes in 1120e57...dff4693 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants