Commit Graph

1677 Commits

Author SHA1 Message Date
Ekaterina Tuzova
536d978917 fixed PY-9654 Make function from method/Make method static: correctly update class calls with first instance argument 2013-05-29 16:35:09 +04:00
Ekaterina Tuzova
b2a2abbce5 fixed PY-9654 Make function from method/Make method static: correctly update class calls with first instance argument 2013-05-29 16:00:26 +04:00
Ekaterina Tuzova
4d3a63d50b updated test data 2013-05-28 23:08:43 +04:00
Ekaterina Tuzova
1fbad51aac fixed PY-9661 Fill paragraph generally bad 2013-05-20 20:43:42 +04:00
Ekaterina Tuzova
f8b1c19a81 fixed PY-9840 Enter in comment leads to inconsistent caret position 2013-05-20 20:18:29 +04:00
Ekaterina Tuzova
82d288de30 fixed PY-9794 Change signature: loses parameter in function call when rearranging arguments so simple parameter gets after keyword parameter in call 2013-05-16 11:36:05 +02:00
Andrey Vlasovskikh
d3525c55f9 Infer parameter types from file-local function usages during code completion 2013-05-13 22:41:41 +04:00
Ekaterina Tuzova
684066934e fixed PY-9659 Convert method to property: intention should be available for methods with yeild 2013-05-11 13:10:26 +04:00
Ekaterina Tuzova
3a3f31d1b6 fixed PY-9660 Convert Method to Property: provokes Getter should return something when converting function which has return without return value 2013-05-11 13:07:35 +04:00
Ekaterina Tuzova
3c6fdca807 fixed PY-9715 Inconsistent "Too broad exception clauses" inspection 2013-05-09 20:52:57 +04:00
Ekaterina Tuzova
d15456935e fixed PY-9721 "Replace <name> with self.<name>" quickfix does not handle classmethods or staticmethods correctly 2013-05-09 20:42:51 +04:00
Ekaterina Tuzova
0c1ab3eb9d fixed PY-9730 Method can be static: disable inspection for methods which simply raise NotImplementedError 2013-05-09 20:19:19 +04:00
Ekaterina Tuzova
0e5eed921c fixed PY-9735 Disable access to a protected member inspection for double-underscored names 2013-05-09 20:11:08 +04:00
Ekaterina Tuzova
49f4176b0b fixed PY-9753 Change Signature Refactor - removing an argument creates a mess in the calls to the refactored method
do not add keyword parameter to call if it has default value in signature
2013-05-09 20:07:30 +04:00
Ekaterina Tuzova
df86d664d0 fixed PY-9646 Invert Boolean: do not invert reference in import statement 2013-04-27 17:26:37 +04:00
Ekaterina Tuzova
129f17673f do replace duplicates in different functions in class during extract method 2013-04-25 16:47:16 +04:00
Ekaterina Tuzova
3d49b6001e added convert method to property intention 2013-04-25 13:04:13 +04:00
Ekaterina Tuzova
9bc89de63f update usages after converting static method to function 2013-04-25 13:04:12 +04:00
Ekaterina Tuzova
bf71eaac4c update usages after converting method to function 2013-04-25 13:04:11 +04:00
Ekaterina Tuzova
64668ea702 added convert static method to function intention 2013-04-24 18:12:02 +04:00
Ekaterina Tuzova
f6e9626e2e Merge remote-tracking branch 'origin/master' 2013-04-24 15:25:58 +04:00
Ekaterina Tuzova
f8722877f6 added invert boolean action 2013-04-24 15:17:53 +04:00
Andrey Vlasovskikh
83a912ad84 Added negative type assertions for 'else' and continue after 'if' then exit (PY-5084, PY-7694, PY-9118) 2013-04-22 17:56:52 +04:00
Andrey Vlasovskikh
230de54232 Merge branch 'new-mro'
Conflicts:
	python/src/META-INF/python-plugin-common.xml
2013-04-19 19:49:43 +04:00
Andrey Vlasovskikh
2eab025659 Added test for MRO in complicated diamond hierarchy (PY-4183) 2013-04-18 21:29:49 +04:00
Andrey Vlasovskikh
e2f2bc616f Use 'object' for resolving only specific attributes of 'module' (PY-7823) 2013-04-18 21:16:44 +04:00
Andrey Vlasovskikh
d6972abf2a Fixed several bugs in new-style MRO algorithm 2013-04-18 21:03:50 +04:00
Andrey Vlasovskikh
f8eb0dd7f6 Fixed resolve of multiple inherited constructors for new-style MRO (PY-9080)
Integrated a C3 MRO algorithm implementation into PyClass.getAncestorTypes().
2013-04-18 18:05:03 +04:00
Ekaterina Tuzova
d0de628451 added Replace duplicates in Extract Method 2013-04-18 15:47:29 +04:00
Andrey Vlasovskikh
d7b81f04d4 Fixed test data files capitalization 2013-04-17 17:23:23 +04:00
Andrey Vlasovskikh
4cab00fe4a Fixed exception inheritance inspection for unresolved base classes of exceptions (PY-5811) 2013-04-16 17:54:36 +04:00
Andrey Vlasovskikh
57621dd606 Refactored exception inheritance inspection tests to highlighting tests 2013-04-16 17:36:40 +04:00
Andrey Vlasovskikh
50f455ed95 Merge branch 'py-6805' 2013-04-12 18:02:46 +04:00
Andrey Vlasovskikh
34221a6b9e Fixed recursion in evaluating return type of __new__ while evaluating type of cls (PY-9493)
This recursion resulted in empty resolve result list for __new__ and a false positive in
the unresolved references inspection.
2013-04-12 17:22:33 +04:00
Andrey Vlasovskikh
072b3887c1 Fixed unresolved references inspection for fields defined in __new__ (PY-6805)
The inspection may show false negative warnings for assigned attributes of objects
other than the return value of __new__.
2013-04-12 14:42:45 +04:00
Andrey Vlasovskikh
8d7bd522bc Merge branch 'python-fixes' 2013-04-11 16:10:28 +04:00
Ekaterina Tuzova
82303ad2b5 fixed PY-9466 Wrong current parameter highlighting for the very first parameter in finction
regression, added test
2013-04-11 15:07:39 +04:00
Ekaterina Tuzova
528f673f1c fixed PY-5151 Unclear message on positional parameter assigned both with keyword arg and *args 2013-04-11 15:07:38 +04:00
Ekaterina Tuzova
367f6d4bb6 fixed test data 2013-04-10 19:24:42 +04:00
Ekaterina Tuzova
7def3e17f2 fixed PY-9407 Method can be static: false positive for methods with first parameter other then self 2013-04-10 18:39:30 +04:00
Ekaterina Tuzova
9ccbc0852a fixed PY-9408 Method can be static: handle properties and classmethods friendlier 2013-04-10 18:39:29 +04:00
Andrey Vlasovskikh
6134dd9e21 Fixed types for FileIO.write() for Python 3 (PY-9289) 2013-04-10 17:09:06 +04:00
Ekaterina Tuzova
e4bfec6eb9 fixed PY-9446 False positive: Class has no __init__ method inspection doesn't understand __new__ 2013-04-09 19:31:19 +04:00
Ekaterina Tuzova
1472b0eef6 fixed PY-9302 Class has no __init__ method: false positive for child class without one 2013-04-09 19:31:19 +04:00
Ekaterina Tuzova
ae3e43830c fixed PY-9337 Copy paste doesn't always preserve the relative indentation of what is pasted.
improved indent calculation
2013-04-09 19:31:16 +04:00
Ekaterina Tuzova
b16f001f8f fixed PY-9337 Copy paste doesn't always preserve the relative indentation of what is pasted.
check if we need to add leading spaces to pasted text
2013-04-09 19:31:15 +04:00
Andrey Vlasovskikh
a9dffdc97c Merge branch 'python-fixes' 2013-04-09 18:08:54 +04:00
Andrey Vlasovskikh
75b825c771 Set type eval origin for references in find usages if it isn't set (PY-9047) 2013-04-09 18:02:49 +04:00
Ekaterina Tuzova
6eb69aa83a fixed PY-9405 Method can be static: handle existing decorators 2013-04-09 14:41:50 +04:00
Ekaterina Tuzova
913e96ea0e fixed PY-9406 Make function from method: when removing last method from class add pass statement 2013-04-09 14:08:09 +04:00