forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Changing message parsing in BaseLinter so it respects python.linting.maxNumberOfProblems #2208
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
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1563539
Fixing https://github.com/Microsoft/vscode-python/issues/2198
saponas 9c67479
Added news item entry documenting issue fix.
saponas f64a786
Tweak news entry
brettcannon 90adfa9
Merge branch 'master' of https://github.com/microsoft/vscode-python
saponas 4273857
Merge branch 'master' of https://github.com/microsoft/vscode-python
saponas d3b88b4
Simplify Max Problems check.
saponas 23809fc
Add unittest for multiline lint messages.
saponas 14b0f14
Merge branch 'master' of https://github.com/microsoft/vscode-python i…
saponas 71d2a41
Merge remote-tracking branch 'upstream/master' into feature/maxproble…
saponas 46bd291
Merge remote-tracking branch 'upstream/master' into feature/maxproble…
saponas 6681e75
Merge branch 'master' of https://github.com/Microsoft/vscode-python i…
saponas a9760df
Merge pull request #1 from saponas/feature/maxproblems-unittests
saponas 0eec7ec
fix typo in constant name.
saponas 4bcb4a6
Adding comments to document what lint messages should be produced.
saponas 8db2447
Touch up docstring
brettcannon 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Change linter message parsing so it respects `python.linting.maxNumberOfProblems`. | ||
| (thanks [Scott Saponas](https://github.com/saponas/)) |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| """pylint messages with three lines of output""" | ||
|
|
||
| __revision__ = None | ||
|
|
||
| class Foo(object): | ||
|
|
||
| def __init__(self): | ||
| pass | ||
|
|
||
| def meth1(self,arg): | ||
| """missing a space between 'self' and 'arg'. This should trigger the | ||
| following three line lint warning:: | ||
|
|
||
| C: 10, 0: Exactly one space required after comma | ||
| def meth1(self,arg): | ||
| ^ (bad-whitespace) | ||
|
|
||
| The following three lines of tuples should also cause three-line lint | ||
| errors due to "Exactly one space required after comma" messages. | ||
| """ | ||
| a = (1,2) | ||
| b = (1,2) | ||
| c = (1,2) | ||
| print (self) | ||
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.
Could you add comments what the linter warnings are triggered by and an example of what the linter warning is? This is to prevent someone from accidentally changing the file and breaking the test's expectations. It will also help for us to know the tests is testing multi-line tests. 😉