Dmitry Gridin
d06787886a
Fix tests after implementing trailing comma in formatter
...
#KT-34744
2020-01-17 21:02:54 +07:00
Nikolay Krasko
c372dc7f0a
Fix AmbiguousCalls in >= 192
2019-12-25 14:05:13 +03:00
Toshiaki Kameyama
49e5f170d1
"Replace 'when' with 'if'" intention: do not suggest if 'when' subject is variable declaration
...
#KT-35528 Fixed
2019-12-24 14:37:53 +07:00
Toshiaki Kameyama
1cdcef3b08
"Split property declaration" intention: do not suggest in 'when' subject
...
#KT-35528 Fixed
2019-12-24 14:37:53 +07:00
Toshiaki Kameyama
dd8396efbc
Convert lambda to reference: support nested class constructor call ( #2877 )
...
#KT-34690 Fixed
2019-12-17 22:52:46 +01:00
Toshiaki Kameyama
7b1771d432
Remove braces from 'when' entry: do not suggest when statement is lambda that has no arrow
...
#KT-35288 Fixed
2019-12-17 11:20:36 +03:00
Dmitry Gridin
70185ba2a6
Formatter, NJ2K: fix indent for comments inside function literals
...
#KT-4194 Fixed
#KT-31881 Fixed
#KT-34673 Fixed
#KT-35152 Fixed
2019-11-29 16:28:59 +07:00
Nikolay Krasko
73a152ccc7
Re-mute inspection tests in AS34 (KT-32856)
2019-11-22 22:12:39 +03:00
Toshiaki Kameyama
4d9b19da82
Remove comments from function/property implementation template
...
#KT-18539 Fixed
2019-11-13 08:37:25 +09:00
Toshiaki Kameyama
39db76b2ab
"Indent raw string" intention: do not suggest in const
...
#KT-34784 Fixed
2019-11-07 14:57:56 +03:00
Dmitry Gridin
587b0de2b8
RemoveExplicitTypeIntention: fix false positive for type aliases
...
#KT-33902 Fixed
2019-10-29 17:26:59 +07:00
Dmitry Gridin
81f3a98f49
Convert ConvertTwoComparisonsToRangeCheck intention to inspection
...
Relates to #KT-17310
2019-10-29 17:24:21 +07:00
DmiitriiJarosh
613fbf7a5d
Merge else-if intention (KT-34218)
...
#KT-34218 Fixed
2019-10-21 15:52:32 +03:00
Nikolay Krasko
e9f8693a73
as34: Mute several inspection/intention tests in as34 (KT-32856)
2019-10-03 11:56:01 +03:00
Toshiaki Kameyama
6a329210cb
Convert to anonymous object: fix wrong replacement when SAM is nested interface
...
#KT-33660 Fixed
2019-10-02 19:09:55 +07:00
Denis Zharkov
18df5d9db0
Support mixed positioned/named arguments in AddNameToArgumentIntention
...
^KT-7745 Fixed
2019-10-02 11:13:15 +03:00
Nikolay Krasko
1804619076
Fix AmbiguousCalls test in 192
2019-09-30 00:53:03 +03:00
Toshiaki Kameyama
82f75c707e
"Convert to range check" inspection: apply ReplaceRangeToWithUntilInspection after convertion
...
#KT-33880 Fixed
2019-09-27 20:33:48 +07:00
Toshiaki Kameyama
40dd229021
Join with assignment: place the result at the assignment
...
#KT-21172 Fixed
2019-09-27 09:16:52 +03:00
Alex Chmyr
b8cce67d2e
KT-19355 fix for "Variable expected" error after J2K for increment/decrement of an object field
2019-09-25 10:08:42 +03:00
Toshiaki Kameyama
0e1e1e350f
"Convert lambda to reference": do not remove required backticks
...
#KT-15700 Fixed
2019-09-24 19:45:53 +07:00
Toshiaki Kameyama
d4e4a4c3e7
To ordinary string literal: remove 'trimIndent()' if string is single line
...
#KT-32616 Fixed
2019-08-27 22:21:49 +03:00
Toshiaki Kameyama
a3c3ab08fd
Override/Implement members: place members in the same order as super class members
2019-08-26 13:18:31 +07:00
Igor Yakovlev
5a511dd635
Refactor and fix of the run/apply/let/also intention converter
...
1) Optimize and refactored code
2) Added support for correct renaming of target identifier to this/it
3) Added support of cases with difficult application targets (like: var x = 1 + 2)
4) Show error hint when refactoring failed for some reason
5) Improved intention applicability checking to eliminate false-positive cases
6) Fixed EA-209577
2019-08-23 19:37:00 +03:00
Toshiaki Kameyama
f5c0a30c51
Add intention to replace "Map.getOrDefault"
...
#KT-21503 Fixed
2019-08-07 17:38:15 +03:00
Ilya Kirillov
02f2009f2a
Do not show "Replace overloaded operator with function call" intention on incomplete expressions
...
#KT-33115 fixed
2019-08-05 15:14:27 +03:00
Toshiaki Kameyama
80b09b9a08
Replace 'if' with 'when': don't remove branch brances
...
#KT-32650 Fixed
2019-08-01 16:05:06 +03:00
Vadim Brilyantov
60e3787800
Tests for Sealed Class move + Fix invalid move declaration test
...
MoveDeclarationToSeparateFile.testSealed test was threated to check that the intention is not applicable but it currently is.
2019-07-17 15:53:58 +03:00
Toshiaki Kameyama
1f89c0f730
"Convert to sealed class" intention: don't suggest when no "class" keyword
...
#KT-32365 Fixed
2019-07-05 19:28:02 +07:00
Toshiaki Kameyama
9786564d75
"Remove argument name" intention: remove array literal brackets for annotation vararg argument
...
#KT-32318 Fixed
2019-07-05 19:18:40 +07:00
Dmitry Gridin
33914a3a94
ImportMemberIntention: make more flexible based on caret position
...
#KT-31924 Fixed
2019-07-02 11:54:38 +07:00
Dmitry Gridin
8e0bbe7d4a
Convert ReplaceSingleLineLetIntention to inspection & decrease severity to INFORMATION
...
#KT-32010 Fixed
2019-06-25 14:37:04 +07:00
Toshiaki Kameyama
fbd992f8c7
Add intentions to convert lazy <--> ordinary property
...
#KT-23501 Fixed
2019-06-17 01:10:19 +03:00
Dmitry Gridin
f2accb7b9e
Convert IfThenToElvisIntention to inspection & decrease severity to INFO
...
#KT-16067 Fixed
2019-06-07 12:23:54 +07:00
Dmitry Gridin
74c177fd26
Convert FoldInitializerAndIfToElvisIntention to inspection and decrease severity to INFO
...
#KT-19643 Fixed
2019-06-07 12:23:54 +07:00
Toshiaki Kameyama
1c32941949
Use property access syntax: don't report when setter argument is lambda
...
#KT-30627 Fixed
2019-06-06 18:53:15 +07:00
Toshiaki Kameyama
4c62788c3e
Make "Add operator modifier" an inspection instead of intention
...
#KT-31533 Fixed
2019-06-05 19:27:52 +07:00
Dmitry Gridin
7bc2fcd657
Convert RemoveCurlyBracesFromTemplateIntention to inspection
...
Relates to #KT-31717
2019-06-03 16:37:37 +07:00
Dmitry Gridin
8988b4b344
Convert ReplaceSubstringIntention to ReplaceSubstringInspection
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
2310826ec9
Remove MergeWhenIntention
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
41daf99346
Remove IfThenToDoubleBangIntention
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
afcb2f3436
Remove ConvertIfWithThrowToAssertIntention
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
d3339cae46
Merge ReplaceMathMaxWithCoerceAtLeastIntention & ReplaceMathMinWithCoerceAtMostIntention with ReplaceJavaStaticMethodWithKotlinAnalogInspection
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
26478b1374
Remove ConvertTrimMarginToTrimIndentIntention
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
0b9b49d7bc
Remove ConvertTrimIndentToTrimMarginIntention
...
Relates to #KT-31502
2019-05-29 11:00:27 +07:00
Dmitry Gridin
91e9ed25f7
Remove ConvertNegatedBooleanSequenceIntention
...
Relates to #KT-31502
2019-05-29 11:00:27 +07:00
Dmitry Gridin
dd03a81309
Remove ConvertClassToSealedClassIntention
...
Relates to #KT-31502
2019-05-29 11:00:27 +07:00
Dmitry Gridin
1adc2ae4c8
Remove ConvertAssertToIfWithThrowIntention
...
Relates to #KT-31502
2019-05-29 11:00:27 +07:00
Dmitry Gridin
76c2c2a5e9
Allow "Add val/var to primary constructor parameter" for inline & annotation classes
...
Relates to #KT-29731
2019-05-24 15:55:01 +07:00
Dmitry Gridin
1097bc76af
Don't suggest Add val/var to parameter at expect class constructor
...
#KT-29731 Fixed
2019-05-24 15:55:01 +07:00