Ilya Kirillov
141b6b0e55
FIR IDE: use different .after testdata for AbstractHLIntentionTest.kt
2021-02-19 16:44:50 +01:00
Ilya Kirillov
91e135888d
FIR IDE: introduce HLSpecifyExplicitTypeForCallableDeclarationIntention and HLRedundantUnitReturnTypeInspection
2021-02-09 17:15:41 +01:00
Mikhail Glukhikh
d907c48d9c
Allow KtEnumEntry...RefExpression.referencedElement be nullable
...
This commit fixes KNPE provoked by RemoveExplicitTypeArgumentsIntention
#KT-29735 Fixed
2020-12-18 09:27:18 +03:00
Toshiaki Kameyama
5e9333773c
Remove explicit type arguments: don't report when type argument has annotations
...
#KT-40985 Fixed
2020-10-27 15:44:44 +07:00
Toshiaki Kameyama
ce407471ec
Convert to secondary constructor: suggest on class name
...
#KT-40861 Fixed
2020-10-27 14:05:28 +07:00
Toshiaki Kameyama
752f6d8f72
Elvis -> if intention: don't introduce new variable when RHS type is Nothing
2020-10-26 20:57:16 +07:00
Toshiaki Kameyama
f9f8fd055b
Convert receiver to parameter: place value argument list after type argument list
...
#KT-41499 Fixed
2020-10-26 20:47:35 +07:00
Yan Zhulanow
04457e92d0
Revert ""Put/Join arguments/parameters" intention: don't suggest on nested argument list"
...
This reverts commit 4a328981
2020-10-24 00:22:41 +09:00
Yan Zhulanow
383190f25e
Revert "Replace with ordinary assignment: do not suggest when operator is augmented assignment operator function"
...
This reverts commit 73e319ca
2020-10-24 00:22:40 +09:00
Yan Zhulanow
d735637f1e
Revert "RemoveBracesIntention: add new line for long expression"
...
This reverts commit f4b9c477
2020-10-24 00:22:37 +09:00
Yan Zhulanow
f615ed2f26
Revert ""Use destructuring declaration": fix it works correctly if variable name is shadowed"
...
This reverts commit d61158a1
2020-10-24 00:22:37 +09:00
Toshiaki Kameyama
d61158a176
"Use destructuring declaration": fix it works correctly if variable name is shadowed
...
#KT-30601 Fixed
#KT-20570 Fixed
2020-10-23 15:46:53 +09:00
Toshiaki Kameyama
f4b9c4777f
RemoveBracesIntention: add new line for long expression
...
#KT-30523 Fixed
2020-10-23 15:46:52 +09:00
Toshiaki Kameyama
73e319ca7a
Replace with ordinary assignment: do not suggest when operator is augmented assignment operator function
...
#KT-34715 Fixed
2020-10-23 15:46:50 +09:00
Toshiaki Kameyama
4a328981c6
"Put/Join arguments/parameters" intention: don't suggest on nested argument list
...
#KT-31020 Fixed
2020-10-23 15:46:49 +09:00
Toshiaki Kameyama
5a3c6def8f
Join with assignment: fix false negative when local variable are used
...
#KT-34270 Fixed
2020-09-29 23:58:28 +09:00
Toshiaki Kameyama
b56272dc64
Add name to argument: do not remove necessary backticks
...
#KT-30894 Fixed
2020-09-29 23:58:28 +09:00
Toshiaki Kameyama
a492fe7757
"Put arguments/parameters on separate lines": respect code style settings
...
#KT-20420 Fixed
2020-09-29 23:58:27 +09:00
Toshiaki Kameyama
75e8849c94
Add quick fix for INLINE_CLASS_CONSTRUCTOR_NOT_FINAL_READ_ONLY_PARAMETER
...
#KT-34533 Fixed
2020-09-29 23:58:26 +09:00
Yan Zhulanow
9f192ba85e
Fix false positive in +0.0 == -0.0 comparison simplification (KT-17735)
2020-09-29 23:58:26 +09:00
Toshiaki Kameyama
4144adf4ee
Make internal: don't suggest in interface
...
#KT-35346 Fixed
2020-09-23 15:34:09 +02:00
Toshiaki Kameyama
d9cf4ee732
Add intention to evaluate compile time expression
...
#KT-40251 Fixed
2020-09-22 10:46:54 +02:00
Leonid Startsev
bc432ecb85
Improve remove/specify type intentions in Explicit API mode
...
Do not suggest to remove type for public declarations
#KT-38915 Fixed
Do not show intention to specify type when corresponding quickfix is available
#KT-39026 Fixed
2020-09-21 17:10:10 +03:00
Dereck Bridie
94970e2d1e
Intention to replace a = b with b.also { a = it }
...
^KT-22420 Fixed
2020-09-03 15:11:36 +02:00
Enterman
d09b20f11d
Inspection to replace !string.isBlank() with string.isNotBlank()
...
#KT-40769 Fixed
2020-09-03 14:20:35 +02:00
Toshiaki Kameyama
8ce9b2d061
KT-34572 Convert to block body action improperly works with suppress annotations ( #2969 )
...
* Convert to block body: place @Suppress annotation before return expression
#KT-34572 Fixed
* Convert to block body: place annotations before return expression
2020-08-20 11:15:00 +03:00
Yunir Salimzyanov
27b2e16141
Cleanup as36 patchset files (KTI-315)
2020-08-19 19:40:00 +03:00
Toshiaki Kameyama
8ba5548a0f
"Eliminate argument of 'when'": do not suggest if 'when' is used as expression and it has no 'else' branch ( #2898 )
...
#KT-35526 Fixed
2020-08-19 12:24:58 +03:00
Toshiaki Kameyama
89cc5777ce
Put parameters on line: don't suggest if parameters has end-of-line comments
...
#KT-35214 Fixed
2020-08-13 19:53:46 +03:00
Toshiaki Kameyama
b1e8238ea2
"Convert reference to lambda" intention: handle extension function reference with extension function call
...
#KT-35558 Fixed
2020-08-13 19:48:07 +03:00
Toshiaki Kameyama
9ff7539ff0
"Merge 'if's" intention: do not remove nested comments
...
#KT-33258 Fixed
#KT-39552 Fixed
2020-08-13 19:43:39 +03:00
Toshiaki Kameyama
5e91ffb156
Move to class body: don't suggest on data class
...
#KT-40558 Fixed
2020-08-12 16:10:33 +03:00
Toshiaki Kameyama
c91858d470
Convert member to extension: do not suggest for delegated properties
...
#KT-35128 Fixed
2020-07-30 17:32:31 +03:00
Mikhail Zarechenskiy
a6e58edfb9
Update test data, unmute test
...
Now behavior is the same as in OI for these cases.
The behavior was changed in 100a6f70ca
2020-07-17 07:47:15 +03:00
Toshiaki Kameyama
0392fe75fc
Convert to block body: specify non-nullable type when body expression is platform type and overriden method is non-nullable type
...
#KT-12222 Fixed
2020-06-30 22:47:13 +07:00
Toshiaki Kameyama
7ea1700b78
Convert lambda to reference: support generic function call
...
#KT-14578 Fixed
#KT-14395 Fixed
2020-06-26 20:30:39 +03:00
Toshiaki Kameyama
e822e871f5
KT-39532 Support intention to convert reference to lambda and vice versa for adapted references ( #3495 )
...
* Convert lambda to reference: support a function which has default parameters/unit return type/suspendability
#KT-39532 Fixed
2020-06-26 14:21:17 +03:00
Toshiaki Kameyama
2fd3af73eb
Convert reference to lambda: fix it works correctly when referenced function has default argument
...
#KT-17222 Fixed
#KT-24138 Fixed
#KT-39532
2020-06-26 10:20:29 +03:00
Toshiaki Kameyama
6b2c87020b
Replace explicit parameter with 'it': do not suggest when lambda is directly under "when" or "if"
...
Relates to #KT-35320
2020-06-24 14:55:30 +02:00
Toshiaki Kameyama
e4a1c8dcef
Anonymous function to lambda: add lambda parameter if type parameter is used, even if parameter is unused
...
#KT-39393 Fixed
2020-06-05 17:32:35 +03:00
Roman Golyshev
7d662bf5d1
Change testData for IntentionsTestGenerated to avoid using javax and sql packages
...
- Those packages are missing in the mockJdk 1.8 in intellij repository,
and it leads to those tests failing in kotlin-ide repository
2020-06-05 16:03:51 +03:00
Toshiaki Kameyama
46ab338ea6
"Convert anonymous function to lambda expression" intention: add necessary lambda type parameter
...
#KT-37748 Fixed
2020-06-04 23:38:29 +03:00
Toshiaki Kameyama
343af60cb4
Add intention to expand boolean expression
...
#KT-38597 Fixed
2020-06-02 23:52:06 +03:00
Yunir Salimzyanov
3b9000cc0c
Cleanup 191 extension files (KTI-240)
2020-06-01 18:43:10 +03:00
Toshiaki Kameyama
45d60baeb0
Add import for member: don't suggest if a class with the same name has been imported
...
#KT-38492 Fixed
2020-06-01 21:42:04 +09:00
Toshiaki Kameyama
329f0227ec
Remove explicit type specification: do not suggest for suspend function type
...
#KT-38310 Fixed
2020-06-01 21:42:04 +09:00
Toshiaki Kameyama
5b927d798c
Replace explicit parameter with it: don't suggest if overload resolution ambiguity error occurs
...
#KT-20795 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama
69a2697598
Convert lambda to reference: add type parameter to outer call expression if needed
...
#KT-37744 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama
a4239afcb3
Convert to anonymous function: do not suggest for suspend functions
...
#KT-37842 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama
8f3392d635
Convert lambda to reference: fix it works correctly in anonymous object
...
#KT-31682 Fixed
2020-06-01 21:42:02 +09:00