summaryrefslogtreecommitdiff
path: root/pylint/checkers
Commit message (Collapse)AuthorAgeFilesLines
...
* merged default from logilab/pylint and resolve conflictnot-context-managerRadu Ciorba2015-03-231-0/+37
|\
| * add warning for confusing usage of with statementconfusing-with-statementRadu Ciorba2015-03-221-0/+37
| | | | | | | | | | | | Emitted when an ambiguous looking with statement is used. For example `with open() as first, second` which looks like a tuple assignment but is actually 2 context managers.
* | add 'not-context-manager' errorRadu Ciorba2015-03-222-1/+35
|/ | | | | Checks that whatever you use in a with statement implements __enter__ and __exit__ or is decorated with contextlib.contextmanager.
* Promote a couple of warnings to errors.Claudiu Popa2015-03-203-11/+14
| | | | | | | | These warnings were promoted since they could uncover potential bugs in the code and since most people are using `pylint -E` anyway, it's good to have them as errors. These warnings are: assignment-from-none, unbalanced-tuple-unpacking, unpacking-non-sequence, non-iterator-returned. Closes issue #388.
* Merged in myint/pylint (pull request #237)Claudiu Popa2015-03-181-5/+15
|\ | | | | | | Add "duplicate-except" checker. Patch by Steven Myint.
| * Add an extra hint (ex: "add 3 spaces") to bad-continuation message.Daniel Balparda2015-03-171-5/+15
| |
* | Remove unnecessary changeSteven Myint2015-03-151-1/+1
| |
* | Remove unnecessary loopSteven Myint2015-03-131-2/+1
| |
* | Remove unused importSteven Myint2015-03-131-1/+0
| |
* | Add "duplicate-except" checkerSteven Myint2015-03-131-1/+11
|/ | | | | It checks if an exception type was already caught previously in the same try/except. This fixes #485.
* Remove abstract-class-not-used, for the same reasons as star-args and ↵Claudiu Popa2015-03-111-35/+4
| | | | abstract-class-little-referenced.
* Remove abstract-class-little-used warning, since it doesn't add any real value.Claudiu Popa2015-03-111-9/+1
|
* Remove the star-args error.Claudiu Popa2015-03-111-18/+1
| | | | | This warning is removed because it doesn't add any real value and it's not a problem if someone uses unpacking in their code.
* Merged in mibalint/pylint (pull request #234)Claudiu Popa2015-03-062-46/+85
|\ | | | | | | #422 [pylint sprint] Create pylintrc and disable checking for all issues
| * Fix a couple of doc warnings, use string continuation.Claudiu Popa2015-03-022-46/+46
| |
| * Add a new warning for the Python 3 porting checker, 'using-cmp-argument'.Claudiu Popa2015-02-281-0/+39
| | | | | | | | | | This warning is emitted when the `cmp` argument for the `list.sort` or `sorted builtin` is encountered, since it was removed in Python 3. This is part of the issue #376.
* | start removing checks from disabled list, fix code to make sure these pass: ↵Mihai Balint2015-02-281-9/+13
|/ | | | C0102,C0112,C0121,C0202,C0203,C0204,C0301
* Backed out changeset c1f2f0c187b0Claudiu Popa2015-02-271-0/+5
| | | | This is actually used by the test, which aren't calling visit_module.
* Remove Python3Checker constructor, visit_module() does all its jobPavel Roskin2015-02-261-5/+0
|
* Remove excessive quotes in docstringsPavel Roskin2015-02-261-1/+1
|
* Clear Python3Checker state on every new modulePavel Roskin2015-02-251-0/+5
| | | | | This fixes detection of missing __future__ imports when processing multiple files.
* Refactoring.Claudiu Popa2015-02-221-16/+16
|
* Fix #299: Warn about `type(x) is/== Y`impl-299Chris Rebert2015-02-211-1/+44
|
* Don't emit not-iterating warnings when the builtin is used in an unpacking.Claudiu Popa2015-02-211-0/+6
|
* Fix a false positive with dict and not-iterating warnings.Claudiu Popa2015-02-211-1/+1
| | | | | | dict accepts iterators, as much as set and list does. This patch fixes this and adds tests for the other callables for which we shouldn't emit.
* Remove visit_discard for map-builtin-not-iterating, since it is already ↵Claudiu Popa2015-02-211-9/+0
| | | | caught by visit_callfunc.
* Merged in brettcannon/pylint (pull request #216)Claudiu Popa2015-02-211-3/+3
|\ | | | | | | Warn when filter, map, range, and filter are not used in iterating contexts
| * Merged in cvrebert/pylint/missing-spaces (pull request #225)Claudiu Popa2015-02-211-2/+2
| |\ | | | | | | | | | add missing spaces between words in W1503's docs
| | * add missing spaces between words in W1503's docsmissing-spacesChris Rebert2015-02-211-2/+2
| | |
| * | fix "datetetime" [sic] typofix-typoChris Rebert2015-02-211-1/+1
| |/
* | Set old_names for map-builtin-not-iterating since it replaced ↵Brett Cannon2015-02-201-2/+3
| | | | | | | | implicit-map-evaluation
* | merge with defaultBrett Cannon2015-02-201-28/+79
|/
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-1419-0/+9257