Mikhail Glukhikh
b9161c5293
Gradle configurator: handle kotlin options correctly with new-mpp plugin
...
#KT-27052 Fixed
2018-10-25 18:13:08 +03:00
Mikhail Glukhikh
bb19d4c598
Do not create expect / actual markers for parameters & enum entries
...
Part of KT-26957
2018-10-25 18:11:45 +03:00
Alexander Udalov
c1ab08c8ce
Refactor KClassValue to store ClassLiteralValue internally
...
Only invariant array projections and non-null element types will be
supported soon (see KT-26568), so it makes no sense to store the
complete type in KClassValue. What we need is only the ClassId of the
class, and the number of times it's wrapped into kotlin/Array, which is
exactly what ClassLiteralValue represents.
This change helps in decoupling annotation values from
descriptors/types. The only constant value that depends on descriptors
is now AnnotationValue.
#KT-26582 Fixed
2018-10-25 16:27:23 +02:00
Yan Zhulanow
9dd6efeb46
Fix sporadic false-positive "Receiver parameter is never used" for local functions (KT-26481)
2018-10-24 20:12:42 +03:00
Yan Zhulanow
b8c756a4e8
Debugger: Remove false-positive assertion (KT-24343)
2018-10-24 20:12:25 +03:00
Yan Zhulanow
713dc589e0
Debugger: Allow to evaluate private properties from companion objects (KT-26795)
2018-10-24 20:12:24 +03:00
Yan Zhulanow
fee0cfcecb
Debugger: Add a stepping test for inline classes (KT-26798)
2018-10-24 20:12:23 +03:00
Toshiaki Kameyama
90529dfda4
"Remove redundant receiver" quick fix: Remove unused type parameter #KT-23512
2018-10-23 13:02:44 +03:00
Toshiaki Kameyama
0cd25353bc
Lift assignment: do not report in cases where argument are of different types #KT-21520 Fixed
2018-10-23 12:48:03 +03:00
Toshiaki Kameyama
29cc727c5a
Add inspection for suspicious 'var' property #KT-23691 Fixed
2018-10-23 12:31:42 +03:00
Toshiaki Kameyama
3ede93df11
Introduce inspection: "Setter backing field should be assigned"
...
#KT-20273 Fixed
2018-10-23 11:22:40 +03:00
Mikhail Glukhikh
a5e508a083
Unused symbol: handle functions with inline class parameters correctly
...
#KT-27357 Fixed
2018-10-19 19:07:59 +03:00
Toshiaki Kameyama
ecba862dc9
Expand selection for labeled return #KT-26987 Fixed
2018-10-19 12:24:47 +03:00
Matthew Runo
374eec04d4
KT-27445: Add QuickFix for DEPRECATED_JAVA_ANNOTATION compiler warning
2018-10-18 15:56:15 +03:00
Dmitry Savvinov
e2bf43c54f
Minor: update testdata in ClsStubBuilder test on contracts
2018-10-18 13:15:05 +03:00
Dmitry Savvinov
7887bafc5b
Minor: update testdata in completion test on contracts
2018-10-18 12:09:10 +03:00
Valentin Kipyatkov
c63eb18b3c
Fixed nested class in companion object case
2018-10-16 08:41:43 +03:00
Valentin Kipyatkov
28e2683146
One more test
2018-10-16 08:41:42 +03:00
Valentin Kipyatkov
69f74b2a51
Fixed ShortenReferences for extension on companion object
2018-10-16 08:41:42 +03:00
Valentin Kipyatkov
d4e0f53583
Fixed ShortenReferences for the case of extension for object
2018-10-16 08:41:42 +03:00
Toshiaki Kameyama
9b49c23668
Move lambda out: don't report in delegation #KT-27584 Fixed
2018-10-15 19:52:10 +03:00
Natalia Selezneva
648e8acbde
Update testdata after the fix of KT-27095
...
(replace http with https configuring gradle project)
2018-10-15 12:28:43 +03:00
Natalia Selezneva
c2315f065a
Add test for script definitions settings
2018-10-15 11:32:49 +03:00
Nikolay Krasko
d3ec145f13
Fixes for ReplaceArraysCopyOfWithCopyOfInspection
...
- Reduce applicability range
- Don't fix reporting level, otherwise it won't be possible to change
it in settings
- Using isCalling utility
2018-10-12 18:21:38 +03:00
kenji tomita
e6de8e9cd3
Inspection to convert Arrays.copyOf(a, size) to a.copyOf(size)
2018-10-12 18:21:36 +03:00
Toshiaki Kameyama
749fd5dd80
"Convert property to function" intention: don't suggest if property has @JvmField annotation #KT-27157 Fixed
2018-10-11 21:01:27 +03:00
Toshiaki Kameyama
487b1e96be
"Introduce backing property" intention: don't suggest if property has @JvmField annotation #KT-27156 Fixed
2018-10-11 21:00:44 +03:00
Toshiaki Kameyama
ca335880eb
"Convert property initializer to getter" intention: don't suggest if property has @JvmField annotation #KT-27139 Fixed
2018-10-11 20:59:33 +03:00
Toshiaki Kameyama
3866c85a34
Add accessor intention: don't suggest if property has @JvmField annotation #KT-27139 Fixed
2018-10-11 20:59:33 +03:00
Alexey Sedunov
26d77183df
Misc: Update repository URLs in importer test data
2018-10-11 17:56:27 +03:00
Toshiaki Kameyama
061aa63a73
"Make private" intention: fix some false positive cases
2018-10-11 17:20:46 +03:00
Mikhail Glukhikh
7488056249
Use 'canBeInternal' in ChangeVisibilityFix (related to KT-27138)
2018-10-11 17:20:30 +03:00
Toshiaki Kameyama
c65e246e02
Make private: don't suggest if property has @JvmField annotation
...
#KT-27138 Fixed
2018-10-11 17:20:13 +03:00
Toshiaki Kameyama
5c83c247d7
"Simplify comparison": remove if when possible after applying quickfix
...
#KT-25995 Fixed
2018-10-11 17:19:10 +03:00
Toshiaki Kameyama
dc750cdbb3
Call chain into sequence: add 'unzip' to conversion targets #KT-27486 Fixed
2018-10-11 09:18:30 +03:00
Toshiaki Kameyama
3f252b15e1
Call chain into sequence: add 'flatten' to conversion targets #KT-26969 Fixed
2018-10-11 09:17:23 +03:00
Mikhail Glukhikh
6be65e7d1a
Replace equals with == involving FP types: handle possible smart casts
...
This fixes two relevant tests with smart casts
#KT-25933 Fixed
2018-10-10 15:02:47 +03:00
kenji tomita
1aa9d5673b
Do not highlight replacement of equals involving floating-point types
...
Two tests with smart casts do not work yet
Part of KT-25933
2018-10-10 15:02:43 +03:00
Toshiaki Kameyama
57ae60e9dc
"Add else branch" on when quickfix: don't add braces #KT-5088 Fixed
2018-10-09 12:28:08 +03:00
Toshiaki Kameyama
9a725b99b2
Call chain into sequence: fix false negative on Iterable
...
#KT-26650 Fixed
2018-10-09 12:22:17 +03:00
Toshiaki Kameyama
3be5f2b843
"Redundant visibility": Fix false positive for overridden setter
...
#KT-26051 Fixed
2018-10-09 11:48:00 +03:00
Toshiaki Kameyama
1c8e75eb34
if then to elvis: propose transformation to 'let' #KT-26653 Fixed
2018-10-09 11:41:06 +03:00
Toshiaki Kameyama
539c55c5b2
Call chain into sequence: fix false negative on implicit receiver
...
Part of KT-26650
2018-10-09 11:33:55 +03:00
Toshiaki Kameyama
8fc5fefc7f
Call chain --> Sequence: don't report if first call is 'groupingBy'
...
#KT-27104 Fixed
2018-10-09 11:26:50 +03:00
Toshiaki Kameyama
3c75dd7b5a
Fix inspection message
2018-10-09 11:09:43 +03:00
Toshiaki Kameyama
920c200693
Call chain --> Sequence: introduce "call chain length" parameter
...
#KT-26571 Fixed
2018-10-09 11:09:28 +03:00
Mikhail Glukhikh
a43be4cbe8
Fix testNotPossible (no more conversion to secondary constructor)
2018-10-09 11:08:37 +03:00
Nikolay Krasko
76a3f23df0
Test for stubs of extension/non-extension properties with same name (KT-27274)
...
An issue was probably fixed in 98232265d7
#KT-27274 Fixed
2018-10-08 13:40:25 +03:00
Toshiaki Kameyama
b0c3461eab
Add quickfix for ASSIGN_OPERATOR_AMBIGUITY on mutable collection '+=', '-='
...
KT-26236 Fixed
2018-10-05 15:58:39 +03:00
Toshiaki Kameyama
725cb88f41
Add quick-fix to "Unlabeled return inside lambda" inspection #KT-27007 Fixed
2018-10-05 10:01:31 +02:00