This repository was archived by the owner on Apr 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 133
Improve linting of LHS expressions #2070
Open
MikhailArkhipov
wants to merge
37
commits into
microsoft:master
Choose a base branch
from
MikhailArkhipov:lint2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
c6a9c22
Remove stale reference
1360827
Merge branch 'master' of https://github.com/microsoft/python-language…
ccaaa02
Merge branch 'master' of https://github.com/microsoft/python-language…
da40dcc
Merge branch 'master' of https://github.com/microsoft/python-language…
c348ac3
Merge branch 'master' of https://github.com/microsoft/python-language…
53bc044
Merge branch 'master' of https://github.com/microsoft/python-language…
484a92a
Merge branch 'master' of https://github.com/MikhailArkhipov/python-la…
e6df3aa
Merge branch 'master' of https://github.com/microsoft/python-language…
1d289d8
Merge branch 'master' of https://github.com/microsoft/python-language…
126f355
Merge branch 'master' of https://github.com/microsoft/python-language…
7e715f3
Merge branch 'master' of https://github.com/microsoft/python-language…
32923a5
Merge branch 'master' of https://github.com/microsoft/python-language…
1b72f4b
Merge branch 'master' of https://github.com/microsoft/python-language…
f74d5b6
Merge branch 'master' of https://github.com/microsoft/python-language…
0b28fa4
Merge branch 'master' of https://github.com/microsoft/python-language…
6109ac7
Don't suppress LHS diagnostics on augmented assign
bcfc3b7
Revert "Don't suppress LHS diagnostics on augmented assign"
dc286b8
Merge branch 'master' of https://github.com/microsoft/python-language…
0aab4f5
Merge branch 'master' of https://github.com/microsoft/python-language…
b953ce7
Merge branch 'master' of https://github.com/microsoft/python-language…
aef887d
Merge branch 'master' of https://github.com/microsoft/python-language…
b97b641
Merge branch 'master' of https://github.com/microsoft/python-language…
c16646d
Escape [ and ]
f3e08d5
Merge branch 'master' of https://github.com/MikhailArkhipov/python-la…
5700642
PR feedback
1d091db
Merge branch 'master' of https://github.com/microsoft/python-language…
b8c3615
Merge branch 'master' of https://github.com/microsoft/python-language…
6a88069
Merge branch 'master' of https://github.com/microsoft/python-language…
078c975
Merge branch 'master' of https://github.com/microsoft/python-language…
ac07704
Merge master
40be62b
Merge branch 'master' of https://github.com/microsoft/python-language…
b384853
Merge branch 'master' of https://github.com/microsoft/python-language…
a0632ef
Merge branch 'master' of https://github.com/microsoft/python-language…
c9b72bd
Merge branch 'master' of https://github.com/microsoft/python-language…
1e8291b
Merge branch 'master' of https://github.com/microsoft/python-language…
94db074
Improve linting of LHS expressions
574c565
PR feedback
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this is what I described, it's not about it being the first thing in a tuple, it's about it being the first part of a member or array access, like
foo.bar
orfoo[bar]
appearing somewhere on the left.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where
foo
is undefined, butbar
is defined.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunate typo, meant
foo
not defined butbar
defined.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That parts works OK i.e.
x[y]
detects undefinedx
ory
. The remaining part of LHS is trickier since we don't know if RHS returns proper number of items.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make a test for the case I'm thinking of and see if it works.