summaryrefslogtreecommitdiff
path: root/checkers/base.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * `input` is not a bad function when using python3. Close #110Sylvain Th?nault2013-12-201-1/+5
| |
| * useless-else-on-loop not emited if there is a break in the else clause of ↵Sylvain Th?nault2013-12-201-0/+4
| | | | | | | | inner loop. Close #117
| * [py3] various fixes for python3Sylvain Th?nault2013-12-201-3/+5
| |
* | Handle iter builtin.cpopa2013-10-101-1/+7
| |
* | Ignore deques (can't retrieve special methods).cpopa2013-10-101-1/+6
| |
* | Update message.cpopa2013-10-101-1/+2
| |
* | Mappings aren't accepted by reversed().cpopa2013-10-101-11/+26
| |
* | Check that the argument passed to reversed() is a proper sequence.cpopa2013-10-081-1/+38
|/
* merge with Pylint defaultexeccpopa2013-08-021-9/+9
|\
| * Update changelog and description message.cpopa2013-08-021-1/+1
| |
| * Combine exec-function with exec-statement, rename test files.cpopa2013-08-011-13/+7
| |
| * Check for builtin exec function for Python 3.cpopa2013-07-271-2/+8
| |
* | some pylint and style fixesSylvain Th?nault2013-07-311-9/+9
|/
* Do not double-check parameter names with the regex for parameters and inline ↵Torsten Marek2013-07-241-1/+1
| | | | variables.
* Use maxversion on a few messagesJulien Cristau2013-06-191-2/+4
| | | | | | - duplicate keyword arguments are a syntax error starting with 2.6 - the builtin map and filter functions changed in 3.0 - exec is no longer a statement in 3.0
* utils: allow specifying min and max relevant python versions for a messageJulien Cristau2013-07-171-1/+2
| | | | | Some messages don't make sense for all python versions. Allow that information to be recorded in the message declaration.
* Ignore W0121 for python3Julien Cristau2013-06-191-1/+3
| | | | The old raise syntax doesn't exist anymore, so we can't warn about it.
* Implement property support for method name checking.Torsten Marek2013-06-201-2/+38
|
* Do not emit the invalid-name warning for inherited instance attributes.Torsten Marek2013-06-201-1/+2
|
* Names in global statements are now checked against the regular expression ↵Torsten Marek2013-06-191-0/+5
| | | | for constants.
* python3 compat for check about dangerous default argumentsJulien Cristau2013-06-181-1/+3
| | | | The __builtin__ module was renamed as builtins.
* Change the base checker to use symbolic names rather than IDs.Torsten Marek2013-06-191-65/+66
|
* Move old-raise-syntax warning to correct checker class.Torsten Marek2013-06-191-5/+4
|
* move EmptyReport exception to pylint.utils and refactor imports so ↵Sylvain Th?nault2013-06-191-2/+4
| | | | pylint.utils stop importing checkers/reporters
* Use the class name regex for toplevel name assignments whose RHS callfunc ↵Torsten Marek2013-06-191-1/+4
| | | | result is a class.
* [base checker] simplified invalid-name messageSylvain Th?nault2013-06-191-2/+2
|
* Add utility function is_builtin_object.Torsten Marek2013-06-191-2/+2
|
* Fix a breaking typo appeared during the merge.Anthony Truchet2013-06-191-1/+1
|
* Resolve conflict and take feed-back into account for PR #34Anthony Truchet2013-06-191-12/+18
|\
| * Minor typo, stylistic improvements and comments.Anthony Truchet2013-06-181-7/+11
| |
| * Add @check_messages(...) annotations to help not to spend time on unneeded ↵Anthony Truchet2013-06-181-5/+7
| | | | | | | | | | | | | | | | checks. We only add such annotations is reasonably simple cases. Some visit methods are quite involved and build a checker's state ; such methods are skipped in the first phase.
* | Add name checking for variables defined in class scope, with a newTorsten Marek2013-06-181-2/+14
| | | | | | | | name type class_variable.
* | Extended the docstring tester to optionally allow skipping the requirement forTorsten Marek2013-06-181-6/+21
|/ | | | short functions/methods/classes and added a testcase.
* Added a new warning old-raise-syntax to warn about the constructTorsten Marek2013-06-171-2/+8
| | | | raise ExceptionClass, argument
* astng has been renamed astroidDavid Douard2013-06-171-46/+46
|
* Change C0109 [useless-else-on-loop] to W0120 (W0109 is already taken) and ↵Torsten Marek2013-04-251-8/+8
| | | | change it to only accept breaks for else: branches on loops.
* a few pylint fixes and copyright cleanupsSylvain Th?nault2013-03-291-1/+1
|
* Emit a warning for loops that have an else clause but no break or return.Torsten Marek2013-03-291-0/+35
| | | | | | | | | | Technically, the else: is superfluous with the return statement, but after much internal discussion, I've changed the patch to allow this. The main point is that the indented block is useful as a visual marker to say that the loop may end early and end execution of the whole block, or something else might happen afterwards. That being said, I wouldn't be terribly sad if we took it out again. Closes #81378
* Lambdas can contain yields, do not warn about them.Torsten Marek2013-03-291-1/+1
| | | | Closes #123259
* Make sure that pragmas that apply to whole lines are interpreted literally, ↵Torsten Marek2013-03-291-1/+1
| | | | | | | | | so that their scope is not extended to the whole scope if they occur at the beginning of a scope. Closes #123285
* Warn about duplicate argument names. Python raises a SyntaxError, but it's notTorsten Marek2013-03-291-1/+12
| | | | | | raised during the actual parsing, but in pass 2 (before bytecode compilation). Closes #123233
* Unify handling for dangerous default values and make sure that set, dict and ↵Torsten Marek2013-03-291-7/+4
| | | | | | | | list literals are treated the same way as list(), set() and dict(). Depends on inference fixes found in logilab-astng 0.24.3/0.25
* give [deprecated-lambda] when a map/filter of a lambda could be a ↵Martin Pool2013-02-261-2/+38
| | | | comprehension. Closes #120657
* Add name type in C0103 messageSylvain Th?nault2012-09-201-3/+6
|
* lint fixesSylvain Th?nault2012-09-191-2/+2
|
* Closes #104572: symbolic warning names in output (by Martin Pool)Martin Pool2012-09-191-0/+26
| | | | triggered whatever the format using a command line option
* use .iter* version of dict methods when possibleSylvain Th?nault2012-09-191-2/+2
|
* Emit W0102 (dangerous default value) when sets are used as default arguments ↵Torsten Marek2012-05-151-0/+6
| | | | for functions. Closes #92911
* fix crash when decorators are accessed through more than one dot. Closes #87192Sylvain Th?nault2012-01-191-1/+1
|
* Do not issue warnings when using 2.6's property.setter/deleter ↵Sylvain Th?nault2011-10-261-1/+18
| | | | functionality. Closes #50461, #52020 and #51222.