summaryrefslogtreecommitdiff
path: root/checkers
Commit message (Collapse)AuthorAgeFilesLines
...
| * | _is_subtype_of needs a context.Claudiu Popa2014-11-221-2/+7
| | | | | | | | | | | | Probably, we should make context optional for _is_subtype_of.
| * | Fix false positives with the old-octal-literal.Claudiu Popa2014-11-221-2/+9
| |/
* | Proper opening mode checking for filesCosmin Poieana2014-11-221-2/+42
|/ | | | | --HG-- branch : open_mode
* Change default max-line-length to 100 rather than 80Sylvain Thénault2014-11-191-1/+1
|
* pylint pylintSylvain Thénault2014-11-1911-114/+118
|
* drop BaseRawChecker bw compatSylvain Thénault2014-11-191-25/+0
|
* Improve the octal regex.Claudiu Popa2014-11-181-2/+2
|
* .infer can fail with InferenceError.Claudiu Popa2014-11-181-1/+1
|
* Fix more false positives for old-octal-literal.Claudiu Popa2014-11-181-1/+1
|
* Fix the flawed check of old octal syntax.Claudiu Popa2014-11-171-1/+1
|
* It's actually a Name node..Claudiu Popa2014-11-171-1/+1
|
* Make sure to look only for calls to the map function.Claudiu Popa2014-11-171-0/+1
|
* Add 'implicit-map-evaluation' to Python 3 porting checker.Claudiu Popa2014-11-171-0/+16
| | | | | | | This warning is emitted when encountering the use of map builtin, without explicit evaluation, as in "map(func, args)" on a single line. This behaviour is removed in Python 3, where map is a generator and must be explicitly evaluated.
* Add hex, oct, nonzero and cmp to the list of methods removed in Python 3.Claudiu Popa2014-11-171-0/+24
|
* Add 'old-octal-literal' to Python 3 porting checker.Claudiu Popa2014-11-171-3/+19
| | | | | This warning is emitted when encountering octals with the old syntax, in the form '0number'.
* Warn when encountering the reload builtin.Claudiu Popa2014-11-171-0/+7
|
* Add support for disabling a checker.Claudiu Popa2014-11-162-1/+5
| | | | | | | | | A checker can be disabled (all of its messages will not be emitted) by specifying an 'enabled' attribute on the checker class. Currently, this is used to disable the Python3 porting checker, which will be enabled by the '--py3k' flag.
* Rename OpenModeChecker to StdlibChecker.Claudiu Popa2014-11-151-3/+3
|
* Use astroid.modutils everywhere.Torsten Marek2014-11-091-3/+2
|
* Move old-ne-operator to the python3 porting checker.Claudiu Popa2014-11-152-12/+9
|
* Change the message ids, for consistency.Claudiu Popa2014-11-151-2/+2
|
* Move backtick warning in python3 porting checker.Claudiu Popa2014-11-152-9/+12
|
* Add 'long-suffix' error, emitted when encountering the long suffixClaudiu Popa2014-11-151-0/+22
| | | | | | | on numbers. This is sligthly different than lowercase-l-suffix, so it's a new error instead of overwriting that one.
* Move old-raise-syntax to the python3 porting checker.Claudiu Popa2014-11-152-13/+18
|
* Amend the message for raising-bad-type, by not specifying strings.Claudiu Popa2014-11-151-1/+1
|
* Move raising-string to the python3 porting checker.Claudiu Popa2014-11-152-8/+32
|
* Shorten a long line.Claudiu Popa2014-11-151-2/+3
|
* Emit abstract-class-instantiated for classes with ancestors that have an ↵Claudiu Popa2014-11-151-6/+6
| | | | ABCMeta metaclass.
* abstract-class-instantiated is also emitted for Python 2.Claudiu Popa2014-11-151-2/+1
|
* Move unpacking-in-except to the python3 porting checker.Claudiu Popa2014-11-152-12/+14
|
* Add a check_messages for visit_callfunc in python3 porting checker.Claudiu Popa2014-11-151-0/+3
|
* Move indexing-exception to the python3 porting checker.Claudiu Popa2014-11-152-17/+18
|
* Pass the vertices explicitly to get_cycles.Claudiu Popa2014-11-151-1/+2
| | | | | | This patch circumvents the bug of get_cycles from logilab.common 0.63, where get_cycles receives a defaultdict instead, which will trigger a RuntimeError "dictionary changed size during iteration".
* Warn when parameter unpacking is used as it is not supported in PythonBrett Cannon2014-11-141-0/+11
| | | | | | 3. Part of issue #20.
* Don't try to analyze string formatting with objects coming from function ↵Claudiu Popa2014-11-111-6/+3
| | | | arguments. Closes issue #373.
* Merged in godfryd/pylint/docs-improvements-2 (pull request #197)Claudiu Popa2014-11-073-4/+4
|\ | | | | | | Documentation improvements
| * Documentation improvementsMichal Nowikowski2014-11-043-4/+4
| | | | | | | | | | | | | | | | | | | | | | - added intros to features page, - fixed PyLint to Pylint in text, - improved ide-integration doc page, - updated pylintrc in examples and - regenerated pylint manual --HG-- branch : docs-improvements-2
* | Prefer an isinstance check instead of a hasattr.Claudiu Popa2014-11-041-1/+2
|/
* Small style fixes.Claudiu Popa2014-10-311-2/+2
|
* Exit early from the visit_callfunc.Claudiu Popa2014-10-311-12/+14
|
* Refactor code out into a _check_dict_node function.Claudiu Popa2014-10-311-12/+12
|
* Tighten up the checking for iter*() and view*() methods by bailing outBrett Cannon2014-10-311-5/+18
| | | | if the type can be inferred and it is something that isn't a dict.
* Simplify the check for assigning to __metaclass__Brett Cannon2014-10-311-5/+3
|
* Warn when assigning to __metaclass__ in a class scope for Python 2.Brett Cannon2014-10-311-0/+12
|
* Warn when calling dict.iter*(), dict.view*() or .next() on any object.Brett Cannon2014-10-311-0/+25
| | | | These methods either do not exist in Python 3 or are never used.
* Simplify the code, by using has_known_bases.Claudiu Popa2014-10-281-24/+1
|
* Add a new option, 'exclude-protected'.Claudiu Popa2014-10-281-2/+12
| | | | | This option can be used for excluding members from the protected-access warning. Closes issue #48.
* Use a defaultdict where it makes sense.Claudiu Popa2014-10-253-10/+13
|
* Address PR commentsBrett Cannon2014-10-241-7/+7
|
* Warn when division is performed withoutBrett Cannon2014-10-241-0/+16
| | | | | | `from __future__ import division`. Part of issue #20