Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added a new warning, 'unsupported-delete-operation' | Claudiu Popa | 2015-11-26 | 2 | -0/+111 |
| | | | | | It is emitted when item deletion is tried on an object which doesn't have this ability. Closes issue #592. | ||||
* | Added a new warning, 'unsupported-assignment-operation' | Claudiu Popa | 2015-11-26 | 2 | -0/+111 |
| | | | | | This is emitted when item assignment is tried on an object which doesn't have this ability. Closes issue #591. | ||||
* | Ignore multiple comparisons in unneeded-not rule | Laura M?dioni | 2015-11-25 | 1 | -0/+4 |
| | | | | related to issue #703 | ||||
* | Fix some docstrings and the Python 3 tests | Claudiu Popa | 2015-11-25 | 4 | -5/+5 |
| | |||||
* | Fix new import related errors in pylint's codebase. | Claudiu Popa | 2015-11-25 | 4 | -5/+3 |
| | |||||
* | slightly change wrong-import-position message and add forgotten functional test | Laura M?dioni | 2015-11-12 | 2 | -0/+24 |
| | | | | related to issue #692 | ||||
* | Check imports are located at the top of the module (right after docstring ↵ | Laura M?dioni | 2015-11-10 | 39 | -61/+65 |
| | | | | | | and comments) related to issue #692 | ||||
* | Check imports are ordered (standard, 3rd party, local) and grouped by package | Laura M?dioni | 2015-11-09 | 12 | -8/+48 |
| | | | | related to issue #692 | ||||
* | Add is to the checked operators | Laura M?dioni | 2015-11-24 | 2 | -0/+3 |
| | |||||
* | Fix crash with 'in' operator on unneeded-not | Laura M?dioni | 2015-10-29 | 2 | -1/+6 |
| | |||||
* | improve unneeded-not messages | Laura M?dioni | 2015-10-27 | 1 | -12/+12 |
| | | | | | - warning => convention - "One not too many" => "consider changing.." | ||||
* | Check for nots too many in comparison expressions | Laura M?dioni | 2015-10-26 | 3 | -1/+54 |
| | |||||
* | Ignore missing docstrings for decorated attribute setters and deleters | Michael Kefeder | 2015-11-19 | 1 | -0/+19 |
| | | | | Closes issue #651. | ||||
* | Added a new refactoring warning, 'simplifiable-if-statement' | Claudiu Popa | 2015-11-21 | 2 | -0/+124 |
| | | | | | | | | | | | | | | This is used when an if statement could be reduced to a boolean evaluation of its test, as seen in this example: if some_cond: return True else: return False could be reduced to `return bool(some_cond)` Closes issue #698. | ||||
* | check the number of boolean expressions in if statement is reasonnable | Laura M?dioni | 2015-10-29 | 2 | -0/+24 |
| | | | | | | | --max-bool-expr option allows to configure it (by default, up to 5 are tolerated) closes issue #677 | ||||
* | Use safe inference in unpacking-non-sequence checker | Dmitry Pribysh | 2015-11-09 | 4 | -26/+34 |
| | | | | | | | | | | | | | | | | Unfortunately, this fix means that we won't be able to emit an error for cases like this one: ``` def foo(): if True: return [1, 2] return [3, 4, 5] a, b = foo() ``` Well, not unless we get flow-sensitive inference. But we still need this fix to reduce the number of false-positive errors. Fixes issue #695. | ||||
* | Reduce number of false positives emitted by non-iterator-returned checker | Dmitry Pribysh | 2015-11-07 | 2 | -13/+17 |
| | | | | | | | | By disabling checker for cases when there're multiple possible values infered for node. This way we lose some of the inference power, but throw a lot less false positives. Fixes issue #695. | ||||
* | Fix the test to work on both Python versions. | Claudiu Popa | 2015-11-04 | 1 | -1/+1 |
| | |||||
* | Add test for deques to `unsubscriptable-object` functional tests | Dmitry Pribysh | 2015-11-04 | 1 | -0/+6 |
| | |||||
* | Merged in lmedioni/pylint (pull request #298) | Claudiu Popa | 2015-11-04 | 2 | -0/+97 |
|\ | | | | | | | check if the number of nested block in a function or a method isn't too high | ||||
| * | check if the number of nested block in a function or a method isn't too high | Laura M?dioni | 2015-10-30 | 2 | -0/+97 |
| | | | | | | | | related to issue #668 | ||||
* | | Rename 'unsubscriptable-value' message to 'unsubscriptable-object' | Dmitry Pribysh | 2015-11-03 | 2 | -28/+28 |
| | | |||||
* | | Add checker for unsubscriptable values used in subscript expression. | Dmitry Pribysh | 2015-11-03 | 3 | -1/+99 |
|/ | | | | Fixes issue #561. | ||||
* | Fix the tests to work on both Python versions. | Claudiu Popa | 2015-10-30 | 2 | -2/+2 |
| | |||||
* | Merged in lmedioni/pylint (pull request #295) | Claudiu Popa | 2015-10-30 | 11 | -4/+88 |
|\ | | | | | | | check for class methods declared without a decorator | ||||
| * | no-static/class-method: enhance the tests and fix the code accordingly | Laura M?dioni | 2015-10-29 | 4 | -3/+21 |
| | | |||||
| * | improve style and fix typos regarding no_class/staticmethod_decorator | Laura M?dioni | 2015-10-29 | 2 | -2/+2 |
| | | |||||
| * | check for static methods declared without a decorator | Laura M?dioni | 2015-10-29 | 5 | -3/+32 |
| | | | | | | | | closes issue #675 | ||||
| * | check for class methods declared without a decorator | Laura M?dioni | 2015-10-29 | 8 | -3/+40 |
| | | | | | | | | related to the issue #675 | ||||
* | | Add a few functional tests for enhanced unpacking checkerenhance-unpacking-checker | Dmitry Pribysh | 2015-10-29 | 2 | -13/+36 |
| | | |||||
* | | Merge heads. | Claudiu Popa | 2015-10-27 | 2 | -0/+44 |
|\ \ | |||||
| * | | Add a new convention message, 'consider-using-enumerate' | Claudiu Popa | 2015-10-27 | 2 | -0/+44 |
| |/ | | | | | | | | | | | The message is emitted when code that uses `range` and `len` for iterating is encountered, which can be easily simplified by using `enumerate` instead. This makes the code a bit faster and cleaner. Closes issue #684. | ||||
* | | Make iterable checker skip classes that are inferred to be abstractfix-685 | Dmitry Pribysh | 2015-10-27 | 4 | -13/+105 |
| | | |||||
* | | Skip not-an-iterable and similar checks for Base/Abstract classes | Dmitry Pribysh | 2015-10-27 | 1 | -1/+23 |
|/ | | | | | | And refactor iterable checker. Fixes issue #685. | ||||
* | Use the representation of the context when building the message for ↵ | Claudiu Popa | 2015-10-26 | 2 | -0/+3 |
| | | | | misplaced-comparison-constant. | ||||
* | Don't emit misplaced-comparison-constant for constant tests, such as true == ↵ | Claudiu Popa | 2015-10-26 | 2 | -10/+4 |
| | | | | true, which should be handled by other checks. | ||||
* | Make misplaced-comparison-constant a convention, rather than a warning. | Claudiu Popa | 2015-10-26 | 2 | -4/+4 |
| | |||||
* | Merge heads. | Claudiu Popa | 2015-10-26 | 12 | -30/+88 |
|\ | |||||
| * | Explicitely check for const to const comparison | Laura M?dioni | 2015-10-26 | 2 | -6/+27 |
| | | | | | | | | Also add a check for comparison to a method, a function or an attribute and improve the functional test accordingly. | ||||
| * | add a new rule looking for yoda conditions | Laura M?dioni | 2015-10-15 | 12 | -30/+67 |
| | | |||||
* | | Add test for verifying that __name__ can't be accessed from an instance. | Claudiu Popa | 2015-10-26 | 2 | -0/+7 |
| | | |||||
* | | Add test case for issue #559. Closes issue #559. | Claudiu Popa | 2015-10-24 | 1 | -0/+7 |
| | | |||||
* | | Don't warn about abstract classes instantiated in their own body. Closes ↵ | Claudiu Popa | 2015-10-21 | 1 | -0/+20 |
| | | | | | | | | issue #627. | ||||
* | | Obsolete options are not present by default in the generated configuration file. | Claudiu Popa | 2015-10-20 | 1 | -0/+6 |
| | | | | | | | | Closes issue #632. | ||||
* | | non-iterator-returned can detect classes with iterator-metaclasses. | Claudiu Popa | 2015-10-20 | 2 | -7/+43 |
| | | | | | | | | Closes issue #679. | ||||
* | | Add checker for membership rules and testsmembership-test-checker | Dmitry Pribysh | 2015-10-19 | 8 | -0/+176 |
| | | | | | | | | | | | | | | | | Idea of checking is very simple: value used to the right of the 'in' operator should support membership test protocol (i.e. define either __contains__ or __iter__ or __getitem__). Fixes issue #589. | ||||
* | | Change the numeric ids of the new checkers. | Claudiu Popa | 2015-10-18 | 1 | -0/+2 |
| | | |||||
* | | Merge with defaultiterable-checker | Dmitry Pribysh | 2015-10-18 | 21 | -1/+313 |
|\ \ | |||||
| * | | Make iterable/mapping checker more smart and refactor it. | Dmitry Pribysh | 2015-10-15 | 16 | -15/+145 |
| | | | | | | | | | | | | | | | Now it ignores errors inside mixins declarations and is able to recognize iterable/mapping metaclasses. | ||||
| * | | Remove redundant unittests for iterable checker | Dmitry Pribysh | 2015-10-08 | 1 | -135/+0 |
| | | |