Pavel V. Talanov
9c9cdee7f0
Refactor: move utils related to expect/actual declarations and MPPs
...
Move them to 'idea-analysis' module
2018-04-04 17:56:32 +02:00
Ilya Chernikov
0c06ec9088
Implement script templates discovery in the idea plugin
2018-04-04 16:23:54 +02:00
Dmitry Jemerov
e05b54a2b4
Fix unsupported syntax in code style settings example
2018-04-04 11:35:04 +02:00
Toshiaki Kameyama
2d4ef8d1e6
Allow "add constructor invocation" for sealed top-level inheritors
...
So #KT-23320 Fixed
2018-04-03 19:49:32 +03:00
Mikhail Glukhikh
d54c57f9df
Minor refactoring: get rid of js.getJetTypeFqName usage in intention
2018-04-03 19:49:32 +03:00
Toshiaki Kameyama
488e5e9f60
Do not suggest "redundant toInt() call" for comparison receiver
...
So #KT-23133 Fixed
2018-04-03 19:49:31 +03:00
Toshiaki Kameyama
f91819ace7
"Simplify boolean expression": handle Boolean? comparison correctly
...
So #KT-23377 Fixed
2018-04-03 19:49:31 +03:00
Dmitry Jemerov
a495c2e5ea
Don't run analysis in SpecifyTypeExplicitlyIntention.isAvailable()
...
If type is invalid, show error hint when action is invoked
2018-04-03 18:37:33 +02:00
Mikhail Glukhikh
6d9457853e
Fix handling of characters in "convert to string template"
...
So #KT-23045 Fixed
So #KT-23046 Fixed
2018-04-03 18:26:25 +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
Mikhail Glukhikh
23488fac56
Optimization: RedundantCompanionReferenceInspection
2018-04-03 17:30:46 +03:00
Mikhail Glukhikh
66d134ef5c
"Can be private" inspection: don't analyze data class parameters
...
So #KT-23566 Fixed
2018-04-03 13:44:37 +03:00
Yan Zhulanow
8f02d338a6
Android: Extract dependencies to Android plugin to extensions
2018-04-02 19:26:28 +03:00
Yan Zhulanow
4d13e38948
Show warning alert when the installed Kotlin plugin version is incompatible with the IDE platform version
2018-04-02 19:16:16 +03:00
Yan Zhulanow
ff4cdfb43e
Remove "New Kotlin Activity" action as Android plugin can generate it by itself (#KT-22845, EA-114706)
2018-04-02 19:14:40 +03:00
Vyacheslav Gerasimov
22496353b6
Fix KotlinReferenceImporter, add safe call to quickFixActionRanges
...
HighlightInfo.quickFixActionRanges is nullable in 181
2018-03-30 17:05:55 +03:00
Alexey Sedunov
b0a99c7945
Move Out Of Object Intention: Fix assertion error
...
#KT-22983 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov
14b1bdf627
Rename: Fix renaming of backquoted property accessors
...
#KT-23298 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov
2104a0fa2b
Extract Function: Drop extra space in modifier list
...
#KT-23274 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov
0a0043a851
Convert Function to Property: Forbid for properties with both initializer and getter
...
#KT-23293 Fixed
2018-03-30 12:37:29 +03:00
Alexey Sedunov
43b4a496e3
Rename: Increase precedence of RenameSyntheticDeclarationByReferenceHandler
...
Otherwise it's not applicable references to Java declarations
#KT-20241 Fixed
2018-03-30 12:37:29 +03:00
Nikolay Krasko
9a831bf7dd
Collect statistics for inlay parameter options
2018-03-29 14:14:34 +03:00
Dmitry Jemerov
6f1881b9ff
Import reference at offset uses existing import fix (KT-23235)
...
If we have a valid autoimport fix at given offset, don't recalculate
variants; use existing ones
2018-03-29 13:11:36 +02:00
Mikhail Glukhikh
05db4b3ccf
Optimization: LeakingThisInspection
2018-03-29 11:39:10 +02:00
Mikhail Glukhikh
5e9ca6f466
Optimization: AddVarianceModifierInspection
2018-03-29 11:39:09 +02:00
Mikhail Glukhikh
34de241154
Add inspection to detect public API with implicit type
2018-03-29 11:39:01 +02:00
Dmitry Jemerov
6a619d0aa5
Ensure that multiplatform Gradle task runner runs first
...
In order to have effect, the runner needs to be registered before the
main Gradle runner, which also has order="first" in plugin.xml.
2018-03-29 09:50:34 +02:00
Toshiaki Kameyama
e96b5f3117
Fix false positive in redundant companion reference #KT-23435 Fixed
2018-03-28 13:27:45 +02:00
Mikhail Glukhikh
7e711eaf30
Memory optimization: CanBeParameterInspection
2018-03-28 12:04:58 +02:00
Mikhail Glukhikh
491eeb3d6f
Optimization: OverridingDeprecatedMemberInspection
2018-03-28 12:04:56 +02:00
Mikhail Glukhikh
b8da1d67d5
Optimize UsePropertyAccessSyntaxInspection
2018-03-28 12:04:55 +02:00
Mikhail Glukhikh
52cd71c3c4
Optimization: ReplaceGetOrSetInspection
2018-03-28 12:04:53 +02:00
Mikhail Glukhikh
9170aa0674
Distinguish PARTIAL_WITH_CFA resolve mode from just PARTIAL
...
So #KT-23182 Fixed
2018-03-28 12:04:33 +02:00
Alexey Sedunov
e604707450
Move: Support "Search references" option in dialogs
2018-03-27 13:47:13 +03:00
Dmitry Savvinov
148573fcf6
Remove 'DataFlowValueKindUtils.isStable', use 'DataFlowValue.isStable' instead
2018-03-27 10:51:51 +03:00
Nikolay Krasko
0f441760c2
Refactoring: remove usages of analyzeFully
...
Function isn't removed because it has usages from other plugins
2018-03-23 17:58:11 +03:00
Nikolay Krasko
059013a8d3
Rename: analyzeFullyAndGetResult -> analyzeWithAllCompilerChecks in ResolutionFacade
2018-03-23 17:58:11 +03:00
Nikolay Krasko
f2b478f304
Rename: analyzeFullyAndGetResult -> analyzeWithAllCompilerChecks in resolutionApi.kt
2018-03-23 17:58:10 +03:00
Mikhail Glukhikh
e937a350fe
Fix broken QF tests
2018-03-23 14:57:33 +03:00
Toshiaki Kameyama
e06c13732f
Add intentions for specifying use-site targets for an annotation
...
So #KT-19871 Fixed
2018-03-23 13:03:00 +03:00
Denis Zharkov
e162749366
Add a cache for PsiBasedClassResolver instances
...
The PsiBasedClassResolver constructor isn't very cheap to call
because it runs computation of conflicting names each time
Again, this is helpful for Spring-interop because PsiBasedClassResolver
is used very frequently there
#KT-23380 Fixed
2018-03-23 12:36:15 +03:00
Toshiaki Kameyama
26dc5840f1
Fix two exceptions in "Convert concatenation to template
...
So #KT-23045 Fixed
So #KT-23045 Fixed
2018-03-23 09:36:49 +03: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
Toshiaki Kameyama
a67068d37e
Suggest "Add annotation target" quick fix also for field use-site
...
So #KT-23227 Fixed
2018-03-22 10:30:46 +03:00
Toshiaki Kameyama
e328d2d1ca
Suggest "Remove braces" in nested if correctly #KT-14270 Fixed
2018-03-22 09:56:22 +03:00
Toshiaki Kameyama
8082a5daf7
Fix "Add braces to if" when semicolon is used instead of a new line
...
So #KT-23123 Fixed
2018-03-22 09:45:54 +03:00
Yan Zhulanow
369dbd604b
Android modules should not be imported as common modules (#KT-23367)
2018-03-22 04:53:00 +03:00
Mikhail Zarechenskiy
effdfe8ec0
Prohibit incorrect annotations with use-site targets more precisely
...
#KT-21696 Fixed
The problem is coming from the fact that `AnnotationTarget.VALUE_PARAMETER` is mapped to receiver parameter and to value parameter, but annotation with use-site target `receiver` can be used only on type reference of receiver parameter
2018-03-22 04:03:08 +03:00
Mikhail Zarechenskiy
4ebd11a7ae
Refactoring: rename parameter to argument for annotation diagnostics
2018-03-22 03:59:55 +03:00