Toshiaki Kameyama
4038d4d507
Explicit this inspection: suggest also for synthetic Java property
...
So #KT-22089 Fixed
2018-06-05 15:52:16 +03:00
Toshiaki Kameyama
bde9a57c9e
Don't suggest map{}.filterNotNull() -> mapNotNull{} on primitive array
...
So #KT-21556 Fixed
2018-06-05 15:18:28 +03:00
Alexey Sedunov
fbb4914bfb
Intentions: Fix insertion of necessary lambda parameter for run/let and apply/also conversions
...
#KT-22931 Fixed
2018-05-31 15:22:32 +03:00
Mikhail Glukhikh
fbb0a3e06c
Convert async {}.await() to withContext(DefaultDispatcher) {}
...
This fixes incorrect transformation related to KT-24235
2018-05-24 15:15:25 +03:00
Nikolay Krasko
fdc6372776
Remove runtime usage from unused receiver parameter tests
2018-05-23 01:41:02 +03:00
Toshiaki Kameyama
e7a9614fb5
"Unused receiver parameter" inspection: Fix false negative in same class (KT-23897)
...
#KT-23897 Fixed
2018-05-23 01:41:01 +03:00
Toshiaki Kameyama
8271e85dbb
ReplaceArrayOfWithLiteralInspection: Remove unnecessary parentheses
...
#KT-21878 Fixed
2018-05-22 17:33:25 +03:00
Mon_chi
c49eaf2604
Fix hint text for replace with operator assignment #KT-23559 Fixed
2018-05-15 13:26:23 +03:00
Mikhail Glukhikh
13be7803bb
Introduce "redundant async" inspection #KT-24235 Fixed
2018-05-11 17:36:35 +03:00
Toshiaki Kameyama
da92c844a6
Might be 'const': fix false positive in object literal #KT-23756 Fixed
2018-05-10 20:42:32 +03:00
Toshiaki Kameyama
b5da48c566
Don't report suspicious callable reference on invoke with parameters
...
So #KT-23465 Fixed
2018-05-03 18:47:12 +03:00
Toshiaki Kameyama
13356d32fd
Redundant SAM-constructor: highlight nested class name with outer class
...
So #KT-11156 Fixed
2018-05-03 18:32:44 +03:00
Mikhail Glukhikh
e07f83ddbc
"Redundant Unit" inspection: new tests, simplification & fixes
...
Related to KT-23977 and KT-24066
2018-05-03 16:12:20 +03:00
Toshiaki Kameyama
6e150d27f1
"Redundant Unit" inspection: fix for Unit returned as Any
...
So #KT-24066 Fixed
2018-05-03 16:12:19 +03:00
Toshiaki Kameyama
c44cab4565
"Redundant Unit" inspection: Fix for labeled return #KT-23977 Fixed
2018-05-03 16:12:19 +03:00
Toshiaki Kameyama
89981ecbbb
Lift Assignment: process lambda assignments in when correctly
...
So #KT-23346 Fixed
2018-04-28 18:44:29 +03:00
Mikhail Glukhikh
df59af8ee8
Move sort modifiers test to inspection local group
...
This should fix test in 181 branch
2018-04-27 17:26:56 +03:00
Toshiaki Kameyama
3992f0215c
"map.put() to assignment": handle case with labeled return inside
...
So #KT-23194 Fixed
2018-04-18 18:50:15 +03:00
Mikhail Glukhikh
ef3ba5f0b1
Test local inspections on the fly via highlighting
...
Fixes problem with INFORMATION highlight type in batch mode (IDEA 181).
It's no more required to report INFORMATIONs in unit tests in batch.
2018-04-18 16:14:43 +03:00
Mikhail Glukhikh
1d3ba5641d
"Main should return Unit": report on identifier, delete block body type
2018-04-18 11:16:03 +03:00
Toshiaki Kameyama
1cd438c3f7
Add inspection "main should return Unit" #KT-16085 Fixed
2018-04-18 10:59:23 +03:00
kenji tomita
decf9939fe
MoveLambdaOutsideParentheses: intention -> inspection #KT-21413 Fixed
2018-04-12 11:03:40 +03:00
Toshiaki Kameyama
a5aad22fe7
Don't report "Redundant Companion reference" on accessing nested object
...
So #KT-23620 Fixed
2018-04-11 17:00:37 +03:00
Toshiaki Kameyama
94c5344fd1
Check explicit type specification in "Might be const" inspection
...
So #KT-23303 Fixed
2018-04-11 17:00:37 +03:00
Mikhail Glukhikh
e4275cc027
Refactor sealed subclass to object: add tests, fix type parameter case
2018-04-11 14:51:00 +03:00
Gabryel Monteiro
df7968678a
Add inspection: Refactor sealed sub-class to object #KT-20305 Fixed
2018-04-11 14:51:00 +03:00
Mikhail Glukhikh
2125c42328
Make DeprecatedCallableAddReplaceWithInspection applicability based
...
Removes intention version of the same thing
Includes some optimization of 'Deprecated' annotation detection
2018-04-03 17:46:27 +03:00
Mikhail Glukhikh
ab973b2ff0
Fix several false positives and make safer "redundant companion ref"
...
Don't report it on an import directive #KT-23520 Fixed
Don't report it if companion nested class is referenced #KT-23519 Fixed
Check companion reference both by descriptor and by name
2018-04-03 17:45:14 +03:00
Toshiaki Kameyama
e96b5f3117
Fix false positive in redundant companion reference #KT-23435 Fixed
2018-03-28 13:27:45 +02:00
Toshiaki Kameyama
7328f75103
Don't suggest 'Redundant semicolon' before lambda extension call
...
So #KT-23152 Fixed
2018-03-23 09:35:34 +03:00
Mikhail Glukhikh
b739db3c35
Fix parameter handling in "Move suspicious reference into parentheses"
...
Related to KT-21743
2018-03-21 09:53:38 +03:00
Toshiaki Kameyama
fbd06dc74f
Fix "move suspicious reference into parentheses" for functional types
...
So #KT-21743 Fixed
2018-03-21 09:30:17 +03:00
Toshiaki Kameyama
3fbf85dc37
Add inspection to highlight unnecessary explicit companion references
...
So #KT-22971 Fixed
2018-03-21 09:15:48 +03:00
Toshiaki Kameyama
55c93bc8b6
Fix NPE on conversion: run/apply with explicit signature -> let/also
...
So #KT-22949 Fixed
2018-03-16 12:17:24 +03:00
Toshiaki Kameyama
733cb42ced
Make implicit this inspection work for lambda invocation #KT-22970 Fixed
2018-03-07 15:58:23 +03:00
Toshiaki Kameyama
f48eacfbd4
Add inspection (INFORMATION) to convert Pair constructor into to call
...
So #KT-22933 Fixed
2018-03-07 15:40:19 +03:00
Toshiaki Kameyama
b9e7e8fca3
Sort modifiers: process final modifier correctly #KT-22954 fixed
2018-03-07 13:34:25 +03:00
Alexey Sedunov
a194eb94cf
Remove Redundant Backticks: Fix inspection applicability
...
#KT-22804 Fixed
2018-02-28 14:03:43 +03:00
Toshiaki Kameyama
059a797e10
Don't report redundant semicolon for a call before lambda expression
...
So #KT-22719 Fixed
2018-02-13 11:52:04 +03:00
Simon Ogorodnik
470a4bb615
Fix Missing documentation inspection for primary ctor properties
...
#KT-20954 fixed
#KT-21005 fixed
2018-02-12 13:41:50 +03:00
Ilmir Usmanov
87bbac9d43
Take coroutineContext into account in RedundantSuspendModifierInspection
...
#KT-22651: Fixed
2018-02-08 19:34:20 +03:00
Mikhail Glukhikh
901ae087bc
Redundant object type check: use referential equality, forbid for when
...
So #KT-22538 Fixed
2018-02-08 17:10:43 +03:00
kenji tomita
1875d129ea
Inspection to get rid of unnecessary ticks in references #KT-18124 Fixed
2018-02-05 17:31:08 +03:00
Mikhail Glukhikh
899da99232
Fix testAnnotation in "member visibility can be private"
2018-01-30 14:59:47 +03:00
Toshiaki Kameyama
18de0f75ab
Redundant Unit inspection: fix false positive for single expression
...
So #KT-22097 Fixed
2018-01-30 10:03:36 +03:00
Toshiaki Kameyama
69f3f04fe4
Correct report of "redundant setter" for override & empty block cases
...
So #KT-22364 Fixed
2018-01-30 09:59:55 +03:00
Toshiaki Kameyama
fad7818bf0
Fix "if to safe access" false positive for check on incorrect type
...
So #KT-21881 Fixed
2018-01-29 17:43:01 +03:00
Toshiaki Kameyama
be4739e65e
Inspection to replace Java Collections methods: extend set of types
...
So #KT-22038 Fixed
2018-01-29 15:52:44 +03:00
Mikhail Glukhikh
512e287f3a
Remove setter parameter type: do not suggest if type is empty
...
So #KT-22339 Fixed
2018-01-19 16:16:04 +03:00
Toshiaki Kameyama
113e9f496e
Add quickfix for UnsafeCastFromDynamicInspection #KT-20915 Fixed
2018-01-16 17:06:51 +03:00