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
Dmitry Jemerov
60874f29fe
Inspection for scope functions conversion
...
#KT-17047 Fixed
2018-01-15 15:37:36 +01:00
Dmitry Jemerov
165ac97c4b
SortModifiersInspection detects modifiers before annotations
...
#KT-22013 Fixed
2018-01-09 13:54:56 +01:00
Toshiaki Kameyama
de185b79d0
KT-21780 Wrong redundant setter inspection ( #1453 )
2018-01-03 11:14:23 +01:00
Toshiaki Kameyama
84a6ef6ac4
Add inspection to detect is checks for object types #KT-21741 Fixed
2017-12-29 16:24:18 +03:00
Mikhail Glukhikh
2e71691ab2
Fix potential leak in "unused lambda expression body" fix
2017-12-28 20:31:45 +03:00
Toshiaki Kameyama
a65304556c
CFG: provide "used as expression" in enum constant constructor
...
This allows to avoid
"unused return value of a function with lambda expression body"
for such a situation
So #KT-20429 Fixed
2017-12-28 20:31:42 +03:00
Mikhail Glukhikh
e10fa218f5
Extend range of "use expression body" to left brace..end of return
...
Range is extended iff we are in DO_NOT_SHOW case,
otherwise just return is highlighted to avoid ugly highlighting
So #KT-19771 Fixed
2017-12-28 20:31:41 +03:00
Mikhail Glukhikh
fc93e7a727
Do not report "redundant suspend" on override / open #KT-21938 Fixed
2017-12-28 20:31:24 +03:00
Mikhail Glukhikh
429c31c010
Improve wording in some inspections
2017-12-26 18:39:51 +03:00