Commit Graph
149971 Commits
Author SHA1 Message Date
Anna Kozlova dfcebe315b new inference: check bounds problems for all variables acceptable in current context (IDEA-138407); reject complicated dependencies (see JDK-8039299) 2015-04-02 21:19:54 +02:00
Anna Kozlova 4958470009 redundant suppressions: ignore global custom inspections (IDEA-138622) 2015-04-02 21:19:53 +02:00
Sergey Malenkov 889dbf3991 Configurable refactoring: suppress warnings 2015-04-02 21:13:40 +03:00
Sergey Malenkov 67568ff2b7 Configurable refactoring: use new settings tree builder 2015-04-02 21:00:53 +03:00
Dmitry Batkovich a9da35f6f6 TrailingSpacesInPropertyInspection: duplicated code replaced 2015-04-02 20:58:16 +03:00
Dmitry Batkovich 2e977e4690 testdata fixed 2015-04-02 20:56:34 +03:00
Dmitry Batkovich 08b8bf5a20 TrailingSpacesInPropertyInspection description fixed 2015-04-02 20:50:31 +03:00
Aleksey Pivovarov 5324418655 IDEA-138732 diff: refresh file after modifying it's content 2015-04-02 20:15:52 +03:00
Mikhail Golubev 6565130bff PY-6620 Prohibit refactoring at class level, remove stale test cases and their data 2015-04-02 20:08:33 +03:00
Mikhail Golubev 45cc683033 PY-10829 Extracted function is inserted *after* the function where it is used
I updated test data accordingly and removed now obsolete tests about
skipping preceding comments.
2015-04-02 20:08:32 +03:00
Mikhail Golubev 77b11662fa PY-2903 Take into account preceding comments when picking place for extracted method
Interestingly, test existed already but was disabled a long ago.
2015-04-02 20:08:32 +03:00
Mikhail Golubev 44a69caf26 Cleanup in PyExtractMethodUtil
* Added missing annotations
* Made local variables final where possible
* Removed trivial checks
* Removed obsolete links from JavaDoc
* Use StringUtil#join where possible
2015-04-02 20:08:32 +03:00
Mikhail Golubev 901fdc328f Remove unused properties for "Extract Method" from PyBundle and add several new ones
Also I dropped common wordy prefix "cannot.perform.refactoring" from
their names where possible.
2015-04-02 20:08:31 +03:00
Mikhail Golubev db4701a2d8 Slightly refactor PyExtractMethodHandler
* Renamed PyPsiUtil#getStatement to PyPsiUtil#getParentRightBefore as
this name more clearly describes method's functionality.
* Return Couple<PsiElement> instead of awkward two-items array or
PsiElements.
2015-04-02 20:08:31 +03:00
Mikhail Golubev 501ca0025a PY-7753 Do not add global statement for written variables that are not used outside selection
Also I added several missing @NotNull annotations.
2015-04-02 20:08:31 +03:00
Dmitry Batkovich 78702584f0 usages of deprecated methods replaced 2015-04-02 20:06:37 +03:00
Dmitry Batkovich 15f3983f84 ResourceBundleEditor cleanup 2015-04-02 20:03:00 +03:00
Andrey Vlasovskikh 5dadb7fb07 Merge remote-tracking branch 'origin/master' 2015-04-02 19:55:41 +03:00
Andrey Vlasovskikh 9af55b7087 Added 'typing.FrozenSet' as an alias to 'frozenset' (PY-15206) 2015-04-02 19:55:00 +03:00
Dmitry Batkovich c3f294867f IDEA-86919 navigate to the next incomplete property in resource bundle 2015-04-02 19:52:29 +03:00
Ekaterina Tuzova e54b0ef049 PY-15282 Numpy: Function doesn't return anything: false positive for tensordot
function could return value even if it's not declared
2015-04-02 19:42:33 +03:00
Ekaterina Tuzova e30a317448 PY-15287 Numpy: Tuple assignment balance is incorrect: false positive for slogdet: invalid type detected for the return value 2015-04-02 19:42:33 +03:00
Ekaterina Tuzova f4ff6c2a78 PY-15286 Numpy: Tuple assignment balance is incorrect: false positive for unique: return type is not detected properly for optional return parameters 2015-04-02 19:42:32 +03:00
Ekaterina Tuzova 8ab0661bc1 PY-15298 Numpy: Type Checker: do not higlight argument equal to default as unexpected type
keyword argument
2015-04-02 19:42:32 +03:00
Ekaterina Tuzova 5322847963 test PY-15302 Numpy: TypeChecker: false positive for random.rayleigh: expand scalar type with ndarray 2015-04-02 19:42:31 +03:00
Ekaterina Tuzova c2490f8114 test PY-15304 Numpy: TypeChecker: overstrict check for the order param in sort method 2015-04-02 19:42:31 +03:00
Ekaterina Tuzova 6a253e178b PY-15298 Numpy: Type Checker: do not higlight argument equal to default as unexpected type
do not check type for argument equals default
2015-04-02 19:42:30 +03:00
Ekaterina Tuzova c5255cc253 added tests for PY-15295 2015-04-02 19:42:30 +03:00
Ekaterina Tuzova ee45301b11 PY-15295 Numpy: allow passing list arguments for tuple expected types
treat all collections as iterable
2015-04-02 19:42:29 +03:00
Ekaterina Tuzova 60d853e324 PY-15296 Numpy: allow passing all sequence types for array and array-like parameters
special-cased all "size" params, because numpy arrays coud have ndim=(1,) so it should be possible to pass int as size
2015-04-02 19:42:29 +03:00
Ekaterina Tuzova 6c468c099b PY-15296 Numpy: allow passing all sequence types for array and array-like parameters
replace every occurence with real type name
2015-04-02 19:42:28 +03:00
Ekaterina Tuzova 493e762adc PY-15296 Numpy: allow passing all sequence types for array and array-like parameters
one can pass iterable instad of array and vice versa
2015-04-02 19:42:28 +03:00
Ekaterina Tuzova e1d916dd04 PY-15302 Numpy: TypeChecker: false positive for random.rayleigh: expand scalar type with ndarray
added ufunc rules
2015-04-02 19:42:27 +03:00
Ekaterina Tuzova bdd5cf9cc4 properly refresh file system on getVirtualFileByName 2015-04-02 19:42:27 +03:00
Sergey Malenkov 588427be73 Configurable refactoring: build tree of configurable (tested) 2015-04-02 19:18:43 +03:00
Maxim.Mossienko 2bafe3458e make visitedRoot to be concurrent set 2015-04-02 18:14:36 +02:00
Anna Kozlova 80e3760c69 redundant cast: ensure lambda return statements are not mixed with those from containing method (IDEA-138724) 2015-04-02 18:06:41 +02:00
Anna Kozlova 3b40026df9 testdata for IDEA-138696 2015-04-02 18:06:40 +02:00
Anna Kozlova c08649b355 new overload resolution: avoid second conflict resolution for the same conflicts, e.g. because resulted array would be available inside guard of ResolveCache (IDEA-138596) 2015-04-02 18:06:39 +02:00
Aleksey Pivovarov a32b8f4aad IDEA-135671 diff: better painting in gutter
Paint half of folding outline in gutter like it is a part of editor
2015-04-02 18:33:26 +03:00
Andrey Vlasovskikh 8fee2e3fb9 Merge branch 'typing-comments' 2015-04-02 18:23:01 +03:00
Andrey Vlasovskikh 8894ce938a Infer types from '# type: ...' comments as in PEP 484 (PY-15206) 2015-04-02 18:19:31 +03:00
Dmitry Avdeev 306692ff9e IDEA-138603 "From File Template" is not always available 2015-04-02 17:35:38 +03:00
Konstantin Bulenkov 740bb5d684 fix IDEA-137876 File switcher shows recent files instead of opened files 2015-04-02 16:33:02 +02:00
Dmitry Batkovich 4baf8a9561 IDEA-138456 inspection to replace collections.addAll() with properly parametrized constructor. 2015-04-02 17:12:41 +03:00
Vladimir Krivosheev e290ce817c probably fix WEB-14539 Node.js debugging step buttons (over, into, etc) don't work 2015-04-02 15:57:42 +02:00
Mikhail Golubev 246d671e39 PY-15447, PY-15448 Fix help ID in several Python refactorings
* Added help IDs for "Extract Superclass" and "Push Members Down"
* Changed help ID in "Introduce Variable"
2015-04-02 16:36:00 +03:00
Mikhail Golubev 987fdbcdac PY-15342 Call getFirstChild instead of getLastChild in PyPsiUtil#deleteAdjacentCommaWithWhitespaces 2015-04-02 16:36:00 +03:00
Bas Leijdekkers 5d177ab16a IDEA-138606 ("Result of '...' not thrown" false positive if case of simple getter) 2015-04-02 15:35:29 +02:00
Vladislav.Soroka b269474c62 maven: notification added about usage Maven 3.3.1 with JDK version less than 1.7;
related issues: IDEA-138661 Can't reimport Maven project with Maven 3.3.1
2015-04-02 15:57:58 +03:00