Toshiaki Kameyama
75755afc00
Remove redundant spread operator: don't remove inner argument spread operator #KT-27699 Fixed
2018-11-16 13:06:25 +03:00
Toshiaki Kameyama
2a03e1b3da
Leaking this: fix for 'this' in enum class #KT-15835 Fixed
2018-11-15 15:16:48 +03:00
Aleksei Semin
793cac02e8
Add inspection and quick-fix to remove empty parentheses in annotation entries
2018-11-13 10:38:08 +03:00
Toshiaki Kameyama
4ae837e669
Redundant lambda arrow: fix false positive in 'when/if' without block #KT-28047 Fixed
2018-11-08 10:40:02 +03:00
Toshiaki Kameyama
23b9889ebb
Redundant companion reference: Fix false negative in enum entry #KT-27861 Fixed
2018-11-07 17:21:41 +03:00
Toshiaki Kameyama
0fcd1a2072
Introduce "Delegate to 'var' property" inspection #KT-26724 Fixed
2018-11-07 13:59:00 +03:00
Toshiaki Kameyama
d0d98dc283
Redundant companion reference: fix false positive for class with name Companion #KT-27861 Fixed
2018-11-07 11:53:22 +03:00
Toshiaki Kameyama
7a9effe30d
Redundant companion reference: Fix false positive in enum entry #KT-27861 Fixed
2018-11-06 11:02:35 +03:00
Toshiaki Kameyama
e8e51d1db4
Safe cast with return: fix false negative on lambda last statement #KT-27906 Fixed
2018-11-01 10:59:18 +03:00
Mikhail Glukhikh
318d6e7111
Introduce inspection for unused main parameter #KT-26999 Fixed
2018-10-31 19:00:29 +03:00
Mikhail Glukhikh
700bcb5984
Unused symbol: fix false positives on inline class constructors
...
#KT-27434 Fixed
2018-10-27 12:13:52 +03:00
Toshiaki Kameyama
3e6007e3d3
Lift return out: report also on 'return' keywords #KT-27173 Fixed
2018-10-25 19:51:36 +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
9b49c23668
Move lambda out: don't report in delegation #KT-27584 Fixed
2018-10-15 19:52:10 +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
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
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
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
Toshiaki Kameyama
725cb88f41
Add quick-fix to "Unlabeled return inside lambda" inspection #KT-27007 Fixed
2018-10-05 10:01:31 +02:00
kenji tomita
6532916dd2
Change necessary labels in "Call on collection type may be reduced"
...
#KT-24492 Fixed
2018-10-03 08:00:40 +02:00
Toshiaki Kameyama
d89947bd5a
"Convert put to assignment": don't report on 'super' #KT-27146 Fixed
2018-09-28 19:43:05 +03:00
Mikhail Glukhikh
ab05f17d1d
Fix ifThenToSafeAccess inspection test
2018-09-28 15:11:40 +03:00
Toshiaki Kameyama
65f23f3c4e
Fix false positive in class literal #KT-16338 Fixed
2018-09-25 11:27:27 +03:00
Toshiaki Kameyama
6cd13341ee
Add inspection for unlabeled return inside lambda #KT-26511 Fixed
2018-09-25 11:24:56 +03:00
Toshiaki Kameyama
affa881421
"Redundant SAM constructor": Fix highlighting range #KT-27034 Fixed
2018-09-25 11:06:45 +03:00
Toshiaki Kameyama
3f2c73b4a9
if-then to safe access: fix for qualified 'this' condition #KT-26662 Fixed
2018-09-19 16:16:15 +03:00
Toshiaki Kameyama
b5f73ebd0f
if-then to safe access: report even if condition in parentheses #KT-26662 Fixed
2018-09-19 16:16:15 +03:00
kenji tomita
6d9fb4f382
Fix #KT-26902 Bad quickfix name for "Call on non-null type may be reduced"
2018-09-19 15:56:26 +03:00
Mikhail Glukhikh
e24f68c357
Remove erroneous suspend delegate tests (not supported in 1.3)
2018-09-18 12:00:12 +03:00
Mikhail Glukhikh
b6c4bd270c
Switch testCoroutineContext to release coroutines thus fixing it
2018-09-18 11:50:41 +03:00
Mikhail Glukhikh
2e2b15853e
Suppress RESULT_CLASS_IN_RETURN_TYPE in ResultIsResultInspection tests
...
This fixes four relevant inspection tests
2018-09-18 11:50:40 +03:00
Mikhail Glukhikh
54e7fe6c52
Add language version 1.2 to mod-related inspection test thus fixing it
...
This does not work in 1.3 because mod is no more supported
2018-09-18 11:50:39 +03:00
Mikhail Glukhikh
2473362373
ArrayInDataClass test: replace Arrays functions with Kotlin ones
...
This fixes relevant inspection test
2018-09-18 11:50:38 +03:00
Mikhail Zarechenskiy
ea69d26bac
Don't throw exception on error types in light classes mode
...
#KT-26829 Fixed
#KT-26827 Fixed
2018-09-17 16:21:07 +03:00
Mikhail Glukhikh
76d1d6ff12
Allow to move suspend lambda out of parentheses
...
#KT-26674 Fixed
#KT-26676 Fixed
2018-09-13 16:38:29 +03:00
Roman Elizarov
e2713501ce
Rename SuccessOrFailure to Result and hide Failure from ABI
...
* The members of Result are isSuccess, isFailure, exceptionOrNull, getOrNull
* The rest of API is implemented via inline-only extensions
* There are two internal functions to hide detailed mechanics of an internal
Result.Failure class: createFailure and throwOnFailure
* Result.toString is explicit: either Success(v) or Failure(x)
See KT-26538
2018-09-09 11:34:31 +03:00
Toshiaki Kameyama
1d2e18e263
SimplifyCallChainFix: Keep comments in place #KT-22552 Fixed
2018-09-07 17:26:15 +03:00
Mikhail Glukhikh
485e098ced
Handle implicit receivers more accurately in if-then to safe access
...
#KT-26599 Fixed
2018-09-07 17:24:19 +03:00