Alexander Podkhalyuzin
5bb74d9840
Fixed generated text from jvm classfile, when quotes is required
...
#KT-34759 Fixed
2020-03-11 15:41:41 +03:00
Toshiaki Kameyama
77f85d8b7c
Move to top level: update import directives on the usage site when the declaration to be moved is not private
...
#KT-37213 Fixed
2020-03-10 10:28:23 +01:00
Vladimir Dolzhenko
ddba8e7691
Extend incremental analysis to object declaration
...
Fixed #KT-37250
2020-03-10 09:08:47 +01:00
Vladimir Dolzhenko
dc6be68a41
Handle properly lambda change in incremental analysis
...
Fixed #KT-37273
2020-03-06 11:12:33 +01:00
Dmitriy Dolovov
17152899ac
IDE perf tests for K/N: Produce duplicated *.kt files on demand
2020-03-06 10:14:54 +07:00
Dmitriy Dolovov
8635045a53
IDE perf tests for K/N: add more tests (Linux, AndroidNative)
2020-03-06 10:14:41 +07:00
Dmitriy Dolovov
80f2c091b4
IDE perf tests for K/N: keep Kotlin & Gradle versions in *.properties
2020-03-06 10:14:34 +07:00
Dmitry Savvinov
8fcd98639d
Minor: merge HierarchicalExpectActualMatchingTests into MultiplatformHighlightingTests
2020-03-05 17:27:19 +03:00
Vladimir Dolzhenko
d1a29df581
Revert "Added AllowNullableArrayArgsInMain (1.4+) language setting"
...
#KT-35965 Fixed
2020-03-05 14:08:27 +01:00
Vladimir Dolzhenko
9c530b1121
Add performance stress tests
2020-03-04 08:47:51 +01:00
Dmitry Gridin
b4898e4043
Put arguments/parameters on separate/one line should update trailing comma
...
#KT-36411 Fixed
2020-03-03 21:53:11 +07:00
Dmitry Savvinov
e6885323da
Accept incorrect behaviour for run-config tests for AS
...
Short description.
It's a corner-case with old MPP plugins and AS, so we
don't care too much that it works incorrectly, but we'd like to avoid
muting it in order to keep track of this "known issue"
Long description.
In IDEA, KotlinJvmTestMethodGradleConfigurationProducer successfully
returns run configuration; in AS, it fails to do so.
This is becasuse it doesn't override 'forceGradleRunner', which means
that in 'setupConfigurationFromContext' we'll delegate to super-call,
which will pull 'GradleProjectSettings.getTestRunner()'.
In IDEA, it will return GRADLE, but in AS it will return PLATFORM,
because AS uses special instance of GradleProjectSettings which forces
runner to PLATFORM.
Note that KotlinMultiplatformJvmTestMethodGradleConfigurationProducer
does override 'forceGradleRunner' to true, that's why other tests work
successfully. However, this test uses old 1.2.X-MPP plugins, therefore
all new KotlinMultiplatform*ConfigurationProducers won't work here.\
2020-03-02 16:40:15 +03:00
Mikhail Glukhikh
1bad380381
FIR: fix test data in IDEA multi-module tests
2020-03-02 10:03:49 +03:00
Dmitriy Novozhilov
4454a0681b
[FIR] Get rid of copying function call in process of completion
2020-03-02 09:49:28 +03:00
Toshiaki Kameyama
266149b88c
RedundantLetInspection: fix false positive with nullable receiver extension call
...
#KT-31601 Fixed
2020-03-02 10:21:47 +07:00
Toshiaki Kameyama
0b9106b0f8
CanBePrimaryConstructorPropertyInspection: do not report for 'open' property used in class initializer in 'open' class
2020-02-28 17:21:56 +07:00
Dmitry Gridin
5827be4182
Tests: fix test for AS 3.6
2020-02-27 15:39:27 +07:00
Dmitriy Dolovov
ca3c72c143
IDE perf tests for Kotlin/Native projects
...
Issue #MMPP-201
2020-02-27 15:23:41 +07:00
Anton Bannykh
f20ed39b92
Fix a typo in an error message
2020-02-26 18:57:11 +03:00
Abduqodiri Qurbonzoda
fe50bb4b93
KProperty and ReadOnlyProperty type parameter names #KT-16529
2020-02-26 17:34:03 +03:00
Dmitry Gridin
50c2c38624
Tests: fix some tests in formatter for AS
2020-02-26 13:51:47 +07:00
Dmitry Gridin
36ebbc49f4
KotlinExpressionMover: trailing comma support
...
#KT-34744
2020-02-25 17:13:43 +07:00
Dmitry Gridin
56064f2a92
JoinLines: add tests
2020-02-25 17:03:28 +07:00
Dmitry Gridin
feaa53c4f2
Formatter: shouldn't format property chains
...
#KT-36387 Fixed
#KT-36466 Fixed
2020-02-25 16:48:33 +07:00
Vladimir Dolzhenko
c9658eb6e4
Adjust tests due to keep imports for extension functions used in kdoc
...
Relates to #KT-27601
2020-02-25 09:29:39 +01:00
Vladimir Dolzhenko
afd71d3d19
Adjust tests due to "Remove argument" quick fix for TOO_MANY_ARGUMENTS
...
Relates to #KT-34026
Relates to #KT-34332
2020-02-25 09:23:46 +01:00
Toshiaki Kameyama
e406669190
Invert if condition intention: don't add unnecessary 'continue'
...
#KT-12329 Fixed
2020-02-24 11:17:20 +01:00
Toshiaki Kameyama
62e335ac88
Implement members: fix it works correctly for data class
...
#KT-36686 Fixed
2020-02-23 22:00:38 +01:00
Toshiaki Kameyama
d54a35ef56
Add "Remove argument" quick fix for TOO_MANY_ARGUMENTS
...
#KT-34026 Fixed
#KT-34332 Fixed
2020-02-23 10:17:10 +01:00
Toshiaki Kameyama
699ea0aa2b
Replace 'if' with 'when': don't swallow comments if there is no synthetic else branch
...
#KT-34640 Fixed
2020-02-22 16:50:37 +01:00
Toshiaki Kameyama
f487118be5
Change signature: fix it works correctly when call site function has no value argument list
...
#KT-23510 Fixed
2020-02-22 09:07:34 +01:00
kvirolainen
90cfa80683
KT-27601 keep imports for extension functions used in kdoc
2020-02-22 08:55:50 +01:00
Toshiaki Kameyama
e56abcbb85
Inline variable: fix it works correctly for 'when' subject variable
...
#KT-29870 Fixed
2020-02-21 17:30:13 +01:00
Toshiaki Kameyama
d8ab046136
Convert property to function: remove annotation use-site target
...
#KT-36834 Fixed
2020-02-21 17:03:26 +01:00
Toshiaki Kameyama
d5e71ebef1
Invert if condition intention: 'isEmpty' <-> 'isNotEmpty'
...
#KT-34593 Fixed
2020-02-21 16:39:35 +01:00
Toshiaki Kameyama
79c15e49b6
Convert function to property: suggest on fun keyword
...
#KT-34450 Fixed
2020-02-21 16:32:17 +01:00
Toshiaki Kameyama
820b8c3c54
Introduce "Redundant '?: return null'" inspection
...
#KT-34819 Fixed
2020-02-21 16:24:42 +01:00
Toshiaki Kameyama
5f1cc3b152
Introduce "Redundant 'inner' modifier" inspection
...
#KT-3262 Fixed
2020-02-21 16:12:49 +01:00
Toshiaki Kameyama
3398683093
Unused symbol: do not report for secondary constructor when class is used as typealias
...
#KT-20907 Fixed
2020-02-21 15:11:38 +01:00
Toshiaki Kameyama
a3252b9480
Unused symbol: fix false positive in anonymous object in top level or companion object
...
#KT-31800 Fixed
#KT-20868 Fixed
2020-02-21 14:36:18 +01:00
Toshiaki Kameyama
ef1e54eda9
ReplaceToStringWithStringTemplateInspection: insert curly braces if needed
...
#KT-36735 Fixed
2020-02-21 14:28:07 +01:00
Toshiaki Kameyama
c87bc2123c
Add "Change to val" quick fix for MUST_BE_INITIALIZED
...
#KT-15723 Fixed
2020-02-21 14:09:54 +01:00
Toshiaki Kameyama
19093e2e02
Redundant companion reference: fix false positive when companion has same name member as companion name
...
#KT-36707 Fixed
2020-02-21 13:57:04 +01:00
Roman Golyshev
4042214bb2
Fix tests broken by enhanced RedundantSamConstructor inspection
...
- The inspection now works in more cases, so the test data had to be
updated accordingly
2020-02-20 17:27:41 +03:00
Vladimir Ilmov
7efb32628e
[Highlight] Fix for coloring annotation attributes in Kotlin
...
#KT-36156 Fixed
2020-02-20 11:51:42 +01:00
Mikhail Glukhikh
e051251b27
FIR: set isOperator only for Java methods with appropriate names
...
#KT-35133 Fixed
2020-02-19 18:09:04 +03:00
Denis Zharkov
a6cf16ddfc
FIR: Fix test data for FirMultiModuleResolveTestGenerated
2020-02-19 17:21:11 +03:00
Roman Golyshev
46ae6136cb
Rewrite RedundantSamConstructorInspection to support more cases
...
- Now inspection does not rely on synthetic descriptors at all, instead
it uses `SamConversionOracle` and `SamConversionResolver` to detect
if the argument type support SAM conversion
- This transparently considers all language features like
`SAM conversions for kotlin functions`, `Functional interfaces` etc.
- In case of multiple SAM arguments, part of them can be converted only
when `SAM conversion per argument` is enabled
- Fix inspection and nj2k tests that were failing because of better
working inspection
- Rewrite automatically fixes multiple bugs that were present
- ^KT-36367 ^KT-36368 ^KT-36296 ^KT-36395 Fixed
2020-02-19 17:16:17 +03:00
Roman Golyshev
3122760c49
Add more tests for RedundantSamConstructorInspection
...
- All those tests already pass, they are needed to fix the behaviour of the inspection before the changes
2020-02-19 17:16:17 +03:00
Pavel Kirpichenkov
2ead2fba08
[IDEA-TESTS] Update quickfix test parameters for 1.4
...
Tests check language feature `ProhibitVarargAsArrayAfterSamArgument`
2020-02-18 11:19:18 +03:00