Repository navigation
Add new rule: dont_create_a_return_var #220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
solid-dmytrotkachuk
merged 12 commits into
master
from
issue-92-dont_create_a_return_var
Oct 2, 2025
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f0f42de
Issue #92, new rule `dont_create_a_return_var`:
tozpeak 479c053
Issue #92: added rule in analysis_options.yaml
tozpeak 5f4a8f9
Issue #92: added new test case
tozpeak 09536d5
Issue #92: added naive implementation for dont_create_a_return_var_rule
tozpeak 0e11f8f
Issue #92: fixed conflicting lints in test
tozpeak 1c12bbb
Issue #92: added test case where return var defined from mutable, but…
tozpeak 477ae52
Issue #92: implemented advanced rule with visitor, checking where var…
tozpeak 5390736
Issue #92: fixed formatting with 'dart format'
tozpeak 89e940a
Issue #92: changed if chain to switch statement (more readable)
tozpeak 6d61a79
Issue #92: renaming rule to avoid_unnecessary_return_variable
tozpeak 9d32869
Issue #92: small readability improvements
tozpeak c1e0d83
#Issue 92: renamed test file accordingly
tozpeak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Issue #92: added rule in analysis_options.yaml
- Loading branch information
commit 479c0538470582b9fa5aec949bf1b99153167081
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,3 +89,4 @@ custom_lint: | |
| - required | ||
| - nullable | ||
| - default | ||
| - dont_create_a_return_var | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.