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
Mikhail Glukhikh
dead2516c2
Redundant override inspection: don't report for ambiguous derivation
...
#KT-24405 Fixed
#KT-25883 Fixed
2018-09-07 16:32:11 +03:00
Toshiaki Kameyama
be30761ec4
"Convert to 'also'" intention: Fix for call expression has this receiver #KT-26009 Fixed
2018-09-04 19:29:44 +03:00
Toshiaki Kameyama
b5ba475696
"Redundant lambda arrow" inspection: Also report arrow with single underscore parameter #KT-24728 Fixed
2018-09-04 18:29:46 +03:00
Toshiaki Kameyama
53c10238d6
Introduce inspection for safe cast + return #KT-26230 Fixed
2018-08-31 15:03:25 +03:00
Toshiaki Kameyama
2c71b3873e
Introduce "flatMap { it } -> flatten" inspection #KT-25969 Fixed
2018-08-31 15:03:24 +03:00
Toshiaki Kameyama
bae754a266
Foldable if-then: do not highlight for is checks #KT-24978 Fixed
2018-08-30 18:30:45 +03:00
Toshiaki Kameyama
fba539debf
"Nested lambda has shadowed implicit parameter": minor improvements
2018-08-30 17:37:36 +03:00
Toshiaki Kameyama
b7c4248524
"Nested lambda has shadowed implicit parameter": add quickfix to rename shadowing 'it'
2018-08-30 17:37:36 +03:00
Toshiaki Kameyama
97150cb0e2
"Nested lambda has shadowed implicit parameter": show warning on the shadowing 'it' reference
2018-08-30 17:37:36 +03:00
Toshiaki Kameyama
7800f42840
"Nested lambda has shadowed implicit parameter": Do not report if 'it' paramerter is not used #KT-26268 Fixed
2018-08-30 17:37:36 +03:00
Toshiaki Kameyama
6a140fb9ed
"Useless call on collection type" inspection: Apply to 'kotlin.sequences.orEmpty'
2018-08-30 14:50:56 +03:00
Toshiaki Kameyama
ae4ff45750
"Remove redundant let" inspection: do not report for long call chains #KT-26289 Fixed
2018-08-27 13:42:25 +03:00