Commit Graph

182 Commits

Author SHA1 Message Date
Valentin Kipyatkov 597cd04831 KT-13719 'var' can be made 'val' highlighting range with annotation before
#KT-13719 Fixed
2016-10-10 14:48:14 +03:00
Mikhail Glukhikh 0a4542c6c0 KT-9839 related, secondary constructor to primary: inspection for the single constructor
(cherry picked from commit aec0090)
2016-09-30 16:39:58 +03:00
Alexey Sedunov d6daaf0a85 Redundant 'toString()' in String Template: Disable for qualified expressions with 'super' receiver
#KT-13942 Fixed
2016-09-20 20:36:03 +03:00
Valentin Kipyatkov 5e52e74963 Fixed test data 2016-09-07 19:04:44 +03:00
Mikhail Glukhikh ec41289664 Convert lambda to reference: range reduced to a call itself #KT-13661 Fixed
(cherry picked from commit f7b5d34)
2016-09-01 14:44:00 +03:00
Valentin Kipyatkov 1674beb64b Initial implementation of faster component function usage search 2016-08-31 19:12:19 +03:00
Mikhail Glukhikh 0ee1102e24 KT-13536 related: correct handling of objects
(cherry picked from commit 7ae9b6b)
2016-08-25 10:32:40 +03:00
shiraji 1bbde54e9d Inspection to warn on using == with array types #KT-13384 Fixed 2016-08-22 15:11:19 +03:00
Mikhail Glukhikh b3b83e344b Added fake override search in unused symbol inspection #KT-13288 Fixed 2016-08-22 13:18:40 +03:00
Kirill Rakhman d68a681db5 Highlight use of toString() inside string interpolation as redundant #KT-10731 Fixed 2016-08-15 13:28:47 +03:00
Mikhail Glukhikh 6cf90cfc4e Fix for SOE in VarianceChecker #KT-13401 Fixed 2016-08-11 13:04:58 +03:00
Mikhail Glukhikh d868410093 Single-expression string template is inspection for strings and intention otherwise #KT-13113 Fixed
(cherry picked from commit 266f9d0)
2016-08-02 15:31:16 +03:00
Mikhail Glukhikh 77b7648f10 Build fix: replace call with comparison inspection test
(cherry picked from commit 7f6be5b)
2016-08-01 12:24:27 +03:00
Mikhail Glukhikh 475dc6541b Replace call with comparison inspection introduced #KT-11425 Fixed
(cherry picked from commit 042fc0d)
2016-08-01 12:24:14 +03:00
Mikhail Glukhikh ff2f49fa8f Has platform type inspection: do not report by default on Kotlin types with platform arguments #KT-13170 Fixed
Also #KT-12820 Obsolete
(cherry picked from commit 0589b48)
2016-07-27 10:50:45 +03:00
Mikhail Glukhikh 8600e7348c Can be val inspection: local functions are taken into account #KT-13151 Fixed
(cherry picked from commit 57eb4c1)
2016-07-27 10:50:31 +03:00
Mikhail Glukhikh 82e69d9587 Remove setter parameter type inspection #KT-5771 Fixed
(cherry picked from commit 731a670)
2016-07-21 20:15:44 +03:00
Mikhail Glukhikh a3b52fd8a6 Lambda to callable reference: inspection is optional depending on text length
(cherry picked from commit ce0c43c)
2016-07-18 17:10:31 +03:00
Mikhail Glukhikh b675b49daf Specify type explicitly: do not consider star projection arguments in KotlinType.isFlexibleRecursive() #KT-13055 Fixed
(cherry picked from commit 828f4bf)
2016-07-12 17:26:50 +03:00
Mikhail Glukhikh 51ccfc120e Can be primary constructor property: check whether property belongs to the same class #KT-12876 Fixed
(cherry picked from commit eb05a7a)
2016-07-12 17:26:39 +03:00
Nikolay Krasko e6c05aa92d Make DifferentKotlinGradleVersionInspection inpection work for classpath call with braces 2016-07-11 13:52:12 +03:00
Nikolay Krasko 620ddcd63a Add inspection that warns if Gradle plugin version differs from the one in IDE (KT-12730)
#KT-12730 Fixed
2016-07-11 13:52:06 +03:00
Alexander Udalov 70a994b135 Drop resolution of deprecated plus/minus/get/set conventions
Also remove the corresponding quick fix
2016-06-29 19:21:05 +03:00
Stanislav Erokhin 7c2825b397 KT-12623 Fixed ISE: Type parameter ... not found for public fun ...
#KT-12623 Fixed
Also EA-72653 fixed.
2016-06-23 02:03:24 +03:00
Mikhail Glukhikh 4145e3438f Minor fixes: can be constructor property
(cherry picked from commit 4d44e15)
2016-06-21 22:23:12 +03:00
Mikhail Glukhikh 70becfbd86 Has platform type inspection is now intention-based
(cherry picked from commit 7cc6b9b)
2016-06-21 15:22:15 +03:00
Mikhail Glukhikh 5c4b6ba8b0 Has platform type : public API only option
(cherry picked from commit a084c1d)
2016-06-21 15:20:11 +03:00
Kirill Rakhman d7bf03be46 Implement inspection for declarations with implicit platform types #KT-12310 Fixed
(cherry picked from commit 00d8c26)
2016-06-21 15:19:13 +03:00
Mikhail Glukhikh ac03d98cb2 Inspection "can be primary constructor property" with relevant quick-fix #KT-8477 Fixed
(cherry picked from commit 2db7562)
2016-06-16 16:24:43 +03:00
Denis Zharkov 3ede8f97e6 Revert "Quick fix for deprecated async syntax"
This reverts commit afc1e24571.
2016-06-08 18:53:16 +03:00
Denis Zharkov 7d3333e86e Revert "Reserve "async* {}", extend the quick-fix"
This reverts commit a7e7d53e2b.
2016-06-08 18:53:16 +03:00
Mikhail Glukhikh a22e7d3bcf KT-12152 : leaking this inspection: accessing non-final member / this in non-final class 2016-06-03 14:45:58 +03:00
Mikhail Glukhikh e66acd8101 Default modality is abstract for interface. REDUNDANT_MODIFIER_FOR_TARGET applicability reduced #KT-12302 Fixed 2016-05-24 14:25:22 +03:00
Vladislav Golub bb32c2d350 KT-12019 Highlighting of redundant 'if' statements (#871) 2016-05-23 21:02:38 +03:00
Mikhail Glukhikh 1a8181bdc4 Only private constructors for sealed / enum classes #KT-12377 Fixed
Also #KT-8497 Fixed
2016-05-23 13:08:57 +03:00
Mikhail Glukhikh 3930184f1f Can be parameter inspection: usage in secondary constructor is now handled as property use 2016-05-18 17:46:05 +03:00
Mikhail Glukhikh bc7fbdc0a2 Can be parameter inspection: minor test correction 2016-05-18 17:46:01 +03:00
Mikhail Glukhikh b026969144 Can be parameter inspection: handle usage in super call; again #KT-10819 Fixed 2016-05-18 17:45:57 +03:00
Mikhail Glukhikh 8920e67c5a Unused symbol: secondary constructors are also under analysis #KT-10812 Fixed 2016-05-13 13:22:25 +03:00
Mikhail Glukhikh be2b37db5e Unused symbol inspection: properties declared in primary constructor are now checked on 'Used' annotations #KT-11120 Fixed 2016-05-11 19:08:42 +03:00
Mikhail Glukhikh 48ba63fa27 Can be parameter inspection: usages in all functions are now handled as property usage 2016-05-10 10:53:34 +03:00
Kirill 5b6a8dcfd3 Don't mark magic Serializable methods as unused
Fixes #KT-10635
2016-05-06 15:33:55 +02:00
Valentin Kipyatkov e1d8c72aa7 KT-10770 IDEA cannot keep import if a type is only referenced by kdoc.
#KT-10770 Fixed
2016-04-29 11:23:23 +03:00
Valentin Kipyatkov 306edef23c Highlighting of redundant semicolons
#KT-5010 Fixed
2016-04-29 11:23:22 +03:00
Mikhail Glukhikh 1744897561 Can be parameter inspection: use inside object literals is now handled as "property use" 2016-04-27 18:41:48 +03:00
Mikhail Glukhikh 64ae9af3a4 Can be parameter inspection: use in selector position is now always handled as "property use" 2016-04-27 18:41:45 +03:00
Mikhail Glukhikh 795b92461e Can be parameter inspection: use inside function literals is now handled as "property use" #KT-11949 Fixed 2016-04-27 18:41:41 +03:00
Mikhail Glukhikh a12faf5baf KtDeclaration.containingClassOrObject now works correctly for primary constructor and its parameters #KT-11982 Fixed 2016-04-21 14:21:40 +03:00
Valentin Kipyatkov 50e7079efc Better message for CanBeValInspection 2016-04-20 14:30:53 +03:00
Valentin Kipyatkov ecdaaea88d Never report companion object as unused
#KT-11366 Fixed
2016-04-20 14:30:52 +03:00