Mikhail Glukhikh
d31e0b9632
Boolean literal arguments: don't report on a call, just on an element
2018-12-12 15:56:12 +03:00
Toshiaki Kameyama
0d7116aa5d
Introduce "Boolean literal arguments" inspection #KT-2029 Fixed
2018-12-12 15:56:11 +03:00
Mikhail Glukhikh
aa9e48b9b6
Augmented list assignment inspection: add "replace with ordinary" fix
...
Relates to KT-20626
2018-12-12 15:56:11 +03:00
Mikhail Glukhikh
ed8305995e
Don't highlight "replace with +=" for read-only collections
...
Related to KT-20626
2018-12-12 15:56:11 +03:00
Mikhail Glukhikh
c560aada3d
Add "Suspicious collection reassignment" inspection #KT-20626 Fixed
2018-12-12 15:56:11 +03:00
Yan Zhulanow
ef08110354
Evaluator: Render inline class values using its toString() implementation (KT-27414)
2018-12-12 21:40:46 +09:00
Yan Zhulanow
eb28ce3007
Fix Android Lint tests (182 bunch only)
2018-12-12 21:40:45 +09:00
Yan Zhulanow
f5bb9d5866
Remove Lint tests for annotation argument API check.
...
Looks like newer Lint API checker ignores type usage in annotations, so these tests are no more needed.
2018-12-12 21:40:45 +09:00
Yan Zhulanow
aa5f1cefd0
Fix testSimple() for "Remove Parcelable" action
2018-12-12 21:40:45 +09:00
Yan Zhulanow
9ec321b918
Update debugger test data, fix the current behavior
2018-12-12 21:40:45 +09:00
Yan Zhulanow
e6643ef2b7
Fix quick evaluation for array expressions (KT-13268)
2018-12-12 21:40:44 +09:00
Yan Zhulanow
4b4d8dd660
Fix breakpoints for the same inline function nested calls (KT-22366)
...
This commit changes the format of the synthetic local variables for inline functions.
2018-12-12 21:40:44 +09:00
Yan Zhulanow
e12af0e2d1
Fix evaluation for captured inline classes (KT-28487)
2018-12-12 21:40:44 +09:00
Yan Zhulanow
27ea02929a
Fix evaluation for static interface methods declared in Java (KT-23585)
2018-12-12 21:40:43 +09:00
Yan Zhulanow
3d7b503cd6
Fix source mapping for stepping into package facades from libraries (KT-28028)
2018-12-12 21:40:43 +09:00
Yan Zhulanow
c88d8a5e0d
Evaluate: Support synthetic 'field' variable evaluation (KT-28342)
2018-12-12 21:40:43 +09:00
Yan Zhulanow
ada71ce3cd
Evaluate: Use '<name>_field' syntax for field value evaluation (KT-14075)
2018-12-12 21:40:42 +09:00
Mikhail Glukhikh
b143a1c8f7
For each parameter not used: handle char sequences correctly
...
An enhancement for KT-27209
2018-12-11 16:42:04 +03:00
Mikhail Glukhikh
11909a86a8
For each parameter not used: introduce "replace with repeat"
...
An enhancement for KT-27209
2018-12-11 16:42:03 +03:00
Mikhail Glukhikh
9aa1d1495b
Redundant arrow: don't report on forEach call with underscore
...
#KT-27209 Fixed
2018-12-11 16:42:03 +03:00
Mikhail Glukhikh
c8c485d27e
Redundant arrow: support removing of 'it ->' #KT-28631 Fixed
2018-12-11 16:42:03 +03:00
Simon Ogorodnik
33f937c923
Remove property with @JvmDefault to make test pass
...
In sake of #KT-28708
2018-12-10 16:08:54 +03:00
Simon Ogorodnik
2165cfe91d
JavaAgainstKotlinBinaries: Allow specifying extra compiler options
2018-12-10 16:08:53 +03:00
Toshiaki Kameyama
07ffac72cf
Assign backing field: don't add empty line
...
#KT-28694 Fixed
2018-12-10 12:06:55 +03:00
Nikolay Krasko
2373c9d838
Allow underscore in packages and forbid uppercase letters (KT-27900)
2018-12-07 18:32:09 +03:00
Nikolay Krasko
e0d3abc819
Do not indent and align initializer list in enums (KT-28070)
...
#KT-28070 Fixed
2018-12-07 18:32:07 +03:00
Nikita Katkov
297054037c
Dispatchers IO is now considered non-blocking context
...
See BlockingMethodInNonBlockingContextInspection
2018-12-07 15:19:12 +03:00
Vyacheslav Gerasimov
d84c5b1608
Switch to 183 platform
2018-12-06 20:16:58 +03:00
Toshiaki Kameyama
5aa0b7d2aa
Extend Selection: whole literal with braces is selected after parameters (KT-13420)
...
#KT-13420 Fixed
2018-12-06 19:48:04 +03:00
Mikhail Glukhikh
de33905c44
Fix formatting in "simplify call chain" #KT-28576 Fixed
2018-12-06 15:37:47 +03:00
Mikhail Glukhikh
a3909d8e47
Refactor code in "simplify call chain" (relates to KT-28576)
2018-12-06 15:37:47 +03:00
Toshiaki Kameyama
9ee9965c7a
Convrt anonymous function to lambda: fix incorrectly conversion
...
#KT-28618
2018-12-06 09:28:56 +03:00
Toshiaki Kameyama
f6323cdee4
Replace assert boolean with assert equality: add import statement
...
#KT-28540 Fixed
2018-12-06 09:27:35 +03:00
Ilya Chernikov
6e27bc0fb3
Fix scratch testdata after introducing result vals into repl
2018-12-05 16:02:31 +01:00
Denis Zharkov
d7d0407afb
Fix parameters nullability for generated overloads in light classes
...
When making KtLightNullabilityAnnotation after test org.jetbrains.kotlin.idea.caches.resolve.IdeLightClassTestGenerated.NullabilityAnnotations#testJvmOverloads
started failing the wrong assumption was made that for
@JvmOverloads-generated overloads their last parameter is always nullable
(see removed isNullableInJvmOverloads function) and that lead to a bug,
namely KT-28556.
The actual problem of this test started failing was incorrect definition
of kotlinOrigin in KtLightParameter for case of JvmOverloads:
wrong KtParameter was being chosen before
This commit fixes the issue by propagating how actually generated
parameters in codegen relate to source KtParameters'
^KT-28556 Fixed
2018-12-05 16:34:44 +03:00
Toshiaki Kameyama
7bf51f1533
Expand selection for class members #KT-28289 Fixed
2018-12-04 11:17:27 +03:00
Mikhail Glukhikh
7cbc8e8b76
Introduce "Redundant else in if" inspection #KT-19668 Fixed
2018-12-03 09:39:22 +03:00
Mikhail Glukhikh
ca87e53f04
Introduce DeferredIsResultInspection #KT-25620 Fixed
2018-12-01 11:07:02 +03:00
Mikhail Glukhikh
a7ad1113b2
Redundant async: do not suggest for calls with 'start'
...
The reason with 'withContext' does not have such parameter anymore
2018-11-30 15:14:27 +03:00
Mikhail Glukhikh
3d15cbcced
Redundant async inspection: run "optimize imports" after quick-fix
2018-11-30 15:14:27 +03:00
Mikhail Glukhikh
fd3c6496fb
Redundant async inspection: support case with explicit scope
...
#KT-28504 Fixed
2018-11-30 15:14:27 +03:00
Mikhail Glukhikh
9f5255da02
SimplifyCallChainFix: take Conversion instead of raw text, polish a bit
2018-11-30 15:14:27 +03:00
Mikhail Glukhikh
e6a1b96c53
Redundant async inspection: support case with GlobalScope
...
Partial implementation of KT-28504
2018-11-30 15:14:26 +03:00
Mikhail Glukhikh
d909162a89
Rename "Result is Result" inspection to "Direct use of result type"
2018-11-30 15:14:26 +03:00
Denis Zharkov
2182be82e6
Fix message text for INCOMPATIBLE_ENUM_COMPARISON
...
^KT-28516 Fixed
2018-11-30 10:34:00 +03:00
Mikhail Glukhikh
05b1a99022
Fix "redundant async" for coroutines 1.*, forbid explicit scopes case
...
Related to KT-28504
#KT-28445 Fixed
2018-11-29 21:17:57 +03:00
Mikhail Glukhikh
93fff99d8d
Extract stub library file from "Result is Result" inspection tests
2018-11-29 21:17:33 +03:00
Mikhail Glukhikh
6b60d49e09
Extract stub library file from "Redundant async" inspection tests
2018-11-29 21:17:16 +03:00
Mikhail Glukhikh
4e1d8fcfd0
Allow to convert nullable local / top to late-init since version 1.2
...
Enhancement for KT-12743
2018-11-29 19:58:11 +03:00
Toshiaki Kameyama
4cf266e99f
Add intentions to convert nullable <--> lateinit var #KT-12743 Fixed
2018-11-29 19:45:10 +03:00