forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change message parsing in BaseLinter so it respects python.linting.ma…
…xNumberOfProblems (#2208)
- Loading branch information
1 parent
540dbbb
commit ed42722
Showing
4 changed files
with
58 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 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 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 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) |