Roman Golyshev
7fb5acc718
KT-18538 Fix inspection to detect unnecessary grand-base class qualifier
...
- Add separate option to enable/disable this inspection, as it is not
obvious if it should be always enabled or not
- This option can be used to detect all unnecessary qualifiers in
tests
- Add possibility to configure inspections via `settings.xml` in the
`AbstractMultiFileLocalInspectionTest.kt`
- ^KT-18538 Fixed
2020-06-01 08:59:37 +00:00
Roman Golyshev
2c12d26d28
KT-18538 Unwrap fake override in ShortenReferences
...
- Fake override prevents reference shortener from shortening of static
methods declared in the class bases when they are located not in
direct parent of the class (for example, in grand-
or grand-grand-parent)
- The completion uses descriptor with unwrapped fake override when it
performs the insertion. It leads to inserting the name of the base which
actually contains the static method instead of the direct parent class.
Now, when reference shortener compares unwrapped descriptors, this
problem should be fixed during insertion handling
2020-06-01 08:59:37 +00:00
Andrey Uskov
c7a53e4435
Fix android import tests
2020-05-28 22:07:31 +03:00
Andrey Uskov
2eb354f211
Fixed import of MPP modules with single artifacts
...
#KT-38037 Fixed
2020-05-28 22:07:16 +03:00
Vyacheslav Gerasimov
af2dce0549
as41: Build against AS 4.1 C10
2020-05-27 18:46:57 +03:00
Dmitry Gridin
dcebcc27b4
trailing comma: remove similar test data
2020-05-27 11:24:09 +00:00
Dmitry Gridin
c78fd4aaca
TrailingCommaInspection: should suggest fixes for call-site without warnings
...
#KT-39131 Fixed
2020-05-27 11:24:09 +00:00
Dmitry Gridin
10462c31d2
Join lines should remove useless trailing commas
...
#KT-39065 Fixed
2020-05-27 11:24:08 +00:00
Dmitry Gridin
262c9e6858
TrailingCommaPostFormatProcessor: should work with call-site in limited mode
...
* remove useless comma
* format call if comma exists
#KT-39079 Fixed
2020-05-27 11:24:06 +00:00
Dmitry Gridin
86827dfc92
TrailingCommaVisitor: adapt to TrailingCommaContext
...
#KT-39123 Fixed
2020-05-27 11:24:05 +00:00
Yan Zhulanow
18070303d5
Update test data (KT-32511)
2020-05-27 02:38:42 +09:00
Yan Zhulanow
797058f781
Update test data (KT-27651)
2020-05-27 02:38:42 +09:00
Toshiaki Kameyama
f6a13df388
Add quick fix for AMBIGUOUS_SUPER
...
#KT-5271 Fixed
2020-05-27 02:38:42 +09:00
Toshiaki Kameyama
7c0af78b08
UnnecessaryVariableInspection: fix false positive in lambda
...
#KT-32565 Fixed
2020-05-27 02:38:42 +09:00
Toshiaki Kameyama
64f6ed586b
"Convert to primary constructor" inspection: do not report when property has setter
...
#KT-22142 Fixed
2020-05-27 02:38:42 +09:00
Toshiaki Kameyama
19d1532dc7
AddFunctionParametersFix: use argument name as parameter name if argument is referenced variable
...
#KT-14021 Fixed
2020-05-27 02:38:41 +09:00
Toshiaki Kameyama
8b8059acdd
Add quick fix for MANY_IMPL_MEMBER_NOT_IMPLEMENTED
...
#KT-17121 Fixed
2020-05-27 02:38:41 +09:00
Toshiaki Kameyama
21d6d50241
Create class quick fix: suggest on supertype entry
...
#KT-32511 Fixed
2020-05-27 02:38:41 +09:00
Toshiaki Kameyama
4973d3c359
"Create enum constant" quick fix: handle trailing comman correctly
...
#KT-36461 Fixed
#KT-36462 Fixed
2020-05-27 02:38:41 +09:00
Yan Zhulanow
b756e18962
Never treat @JsExport-annotated declarations as not-used instead of @JsName
2020-05-27 02:38:41 +09:00
Yan Zhulanow
ef698a5747
Fix "PSI/index mismatch" in case of @ParameterName on non-functional types (KT-34524)
2020-05-27 02:38:41 +09:00
Toshiaki Kameyama
4638a97bbc
"Call on collection type may be reduced": fix false positive with mapNotNull, generic lambda block and new inference
...
#KT-32801 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama
6ee4b5e393
Condition of 'if' expression is constant: don't report when condition has named reference
...
#KT-27651 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama
581f83421a
Unnecessary parentheses in function call with lambda: don't report for function named 'suspend'
...
#KT-22878 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama
777995a3a0
Add braces: don't insert extra line break and move the following comment
...
#KT-36194 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama
905d0c1016
Unused symbol: do not report for @JsName annotated declarations
...
#KT-17368 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama
7abd0831a1
Unused unary operator: highlight whole expression in yellow
...
#KT-37156 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama
43b106fc72
Can be replaced with binary operator: do not report if it leads to an error/warning after conversion
...
#KT-25050 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama
81d01a8f8e
"To ordinary string literal": don't add unnecessary escapes to characters in template expression
...
#KT-36406 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama
bf3e739edf
Replace with string templates: add curly braces if needed
...
#KT-37173 Fixed
2020-05-27 02:38:39 +09:00
Toshiaki Kameyama
8d3e41ae60
ReplaceToWithInfixFormInspection: don't report when call expression has type typeArguments
...
#KT-36508 Fixed
2020-05-27 02:38:39 +09:00
Toshiaki Kameyama
f7a69d4aa7
Convert lambda to reference: suggest on lambda argument for suspend function parameter
...
#KT-34378 Fixed
2020-05-27 02:38:39 +09:00
Toshiaki Kameyama
9b6b25f069
Convert lambda to reference: suggest on lambda argument for extension function parameter
...
#KT-22014 Fixed
#KT-22015 Fixed
2020-05-27 02:38:39 +09:00
Toshiaki Kameyama
b8ae13b3d9
RedundantLetInspection: remove 'let' safe call correctly
...
#KT-37148 Fixed
2020-05-27 02:38:39 +09:00
Toshiaki Kameyama
a2f55e8b7c
Remove redundant calls of the conversion method: report for unsigned types
...
#KT-30263 Fixed
2020-05-27 02:38:39 +09:00
Vladimir Dolzhenko
1ae7f693c5
Nicer performance tests suite dsl
2020-05-25 13:11:09 +00:00
Toshiaki Kameyama
081d6c1dff
Useless call on collection: propose 'Replace with toList()' instead of 'Remove useless call' if receiver is array type
...
#KT-38961 Fixed
2020-05-20 12:46:23 +03:00
Dmitry Gridin
9beb36ca2b
Code style: add option for blank lines before declarations
...
#KT-39024 Fixed
#KT-37420 Fixed
#KT-37891 Fixed
2020-05-20 02:22:53 +00:00
Dmitry Gridin
499a02ebe3
AddThrowsAnnotationIntention: improve for mpp
...
#KT-38391 Fixed
2020-05-20 02:19:10 +00:00
Dmitry Gridin
7b079a5f1c
Deprecated symbol usages: fix test
2020-05-20 09:04:46 +07:00
pyos
73e91af792
IDEA: test the plugin's ability to parse correct JSR-045 data
2020-05-19 18:33:27 +02:00
pyos
5feadd56ef
JVM: parse KotlinDebug when regenerating anonymous objects
2020-05-19 18:33:27 +02:00
Dmitry Gridin
12217ef2ab
Add regression test for ReplaceWith
...
#KT-35015 Fixed
2020-05-19 16:15:13 +07:00
Toshiaki Kameyama
02c17378b1
Replace deprecated symbol usage: replace imported object function correctly
...
#KT-33951 Fixed
2020-05-19 15:40:59 +07:00
Dmitry Gridin
b2be1a53cf
SpecifyTypeExplicitlyIntention: remove annotations from result type
...
#KT-36930 Fixed
2020-05-19 01:17:39 +00:00
Toshiaki Kameyama
23c4eac45b
Introduce "Logger initialized with foreign class" inspection
...
^KT-38982 Fixed
2020-05-18 18:16:52 +03:00
Toshiaki Kameyama
82d81d5223
Change Signature: move lambda outside of parentheses if the arguments are reordered so that the lambda goes last
...
#KT-30128 Fixed
2020-05-15 17:58:33 +02:00
Toshiaki Kameyama
1d39ac1d3e
Move statement: do not move when function last parameter is on same line as right parenthesis
...
#KT-14757 Fixed
2020-05-15 15:02:58 +02:00
Toshiaki Kameyama
8a595ad165
Move statement: Add or remove empty lines correctly
...
#KT-14946 Fixed
2020-05-14 18:57:56 +02:00
Yaroslav Chernyshev
785fa7dd1c
[Gradle, Import] Ignore incompatible test runs for Native targets.
...
#Fixed KT-34516
2020-05-14 17:43:00 +03:00