Kirill Rakhman
1db365bb59
Insert explicit property type while converting accessor to block body
...
So #KT-20417 Fixed
2017-09-26 12:16:14 +03:00
Mikhail Glukhikh
e8b95b971d
Make parentheses necessary for '(x op return y) op z' #KT-16808 Fixed
2017-09-25 18:16:42 +03:00
Mikhail Glukhikh
253ae10e5f
Array equality: replace Arrays.equals with contentEquals in intention
2017-09-25 16:27:51 +03:00
Toshiaki Kameyama
8b135c12e7
Delete useless assert() after simplify comparison #KT-14695 Fixed
2017-09-25 15:35:11 +03:00
Alexey Sedunov
963747ce04
Move: Optimize conflict analysis
...
- Do not process conflicts twice wgen moving a directory
- Check move target before resolving usage context declaration
- Skip visibility check for usages referring to public declarations
- Skip module conflict check for declarations with unchanged module
- Do not report lambdas as usage container (use enclosing declaration)
2017-09-25 14:40:16 +03:00
Toshiaki Kameyama
f08e9832a6
Show warning also if arrays are compared by '!=' #KT-20259 Fixed
2017-09-25 12:15:17 +03:00
Mikhail Glukhikh
e12de11ce9
Fix add modifier for replacement case, add expect/actual order tests
2017-09-16 19:47:43 +03:00
Mikhail Glukhikh
6e41bbc2a7
Migration: header->expect & impl->actual in IDEA test data
2017-09-15 18:29:06 +03:00
Mikhail Glukhikh
faaddacec6
Fix "unexpected error type" exception in constructor conversion
...
So #KT-20218 Fixed
2017-09-15 11:17:21 +03:00
Mikhail Glukhikh
13fc526695
Fix "unexpected error type" exception in initializer -> getter
...
So #KT-19674 Fixed
2017-09-15 11:16:51 +03:00
Mikhail Glukhikh
97233448d0
Enclosing element: do not handle parameters of for as function ones
...
So #KT-19626 Fixed
2017-09-12 16:13:56 +03:00
Toshiaki Kameyama
5eb69e0ae4
KT-20010 'Replace safe access expression with 'if' expression' IDEA Kotlin plugin intention may failed ( #1288 )
...
* 'Replace safe access expression with 'if' expression' IDEA Kotlin plugin intention may failed #KT-20010 Fixed
* #KT-20010 Fixed
2017-09-12 14:54:50 +02:00
Mikhail Glukhikh
c149c37ac7
Do not suggest destructuring for invisible properties #KT-18665 Fixed
2017-09-08 17:41:44 +03:00
Mikhail Glukhikh
c4ebfe8e84
Add accessors: determine header properties more correctly
...
Related to KT-17322
2017-09-08 16:10:55 +03:00
Toshiaki Kameyama
5a5a27b983
Intentions to generate accessors for a property #KT-17322 Fixed
2017-09-07 17:33:39 +03:00
Dmitry Jemerov
cbe79e94a6
Update testdata
2017-09-04 20:39:52 +02:00
scache
e5b290d77f
Fix replacedBaseClause for selector which has implicit receiver
...
#KT-19666 Fixed
2017-09-04 20:36:07 +02:00
Toshiaki Kameyama
367b9f6664
"Redundant setter parameter type" range includes whole parameter declaration #KT-19648 Fixed ( #1267 )
2017-08-28 17:06:10 +02:00
Toshiaki Kameyama
82fc221470
Add "flip equals" intention for String.equals extension from stdlib
...
So #KT-19282 Fixed
2017-08-18 14:34:14 +03:00
Alexey Sedunov
537c1fd063
Convert Function Type Parameter to Receiver: Drop redundant arrows
2017-08-15 19:08:28 +03:00
Dimach
d624ed4aff
KT-18482: "Move lambda argument to parenthesis" action generate uncompilable code fixed ( #1226 )
...
* KT-18482 fixed
* Moved code to separate method and changed code to cover few more cases.
* Code style fixes.
2017-08-07 15:43:44 +02:00
Mikhail Glukhikh
9e9c4f79f5
Make MODIFIERS_ORDER consistent with code style document
2017-08-01 20:42:40 +03:00
Andrius Semionovas
68659f5a32
Introduce error "ANNOTATION_USED_AS_ANNOTATION_ARGUMENT" along with QF
...
The relevant inspection has been removed
So #KT-18855 Fixed
2017-07-27 09:54:22 +03:00
Toshiaki Kameyama
5290553184
Fix Math.min with coerceAtMost intention inside qualified expression
...
So #KT-19232 Fixed
2017-07-26 20:12:53 +03:00
Mikhail Glukhikh
e6872c52a3
More accurate deparenthesize (keeping annotations) in some IDE actions
...
So #KT-19004 Fixed
2017-07-26 15:18:30 +03:00
Kirill Rakhman
4c7ddbe397
"Use destructuring declaration" should not be available for top-level and class properties ( #1205 )
...
Fixes #KT-19167
2017-07-24 14:33:46 +02:00
Mikhail Glukhikh
202fb19cf6
If-then to safe access: more correct receiver calculation
...
So #KT-18928 Fixed
2017-07-21 18:58:33 +03:00
Toshiaki Kameyama
fe599463ac
KT-18978 Intention Move to class body generates incorrect code for vararg val/var ( #1188 )
...
Intention Move to class body generates incorrect code for vararg val/var #KT-18978 Fixed
2017-07-20 01:29:56 +03:00
Dmitry Jemerov
951392005b
Add options for wrapping local variable and property annotations
...
#KT-14950 Fixed
2017-07-19 15:03:00 +02:00
Dmitry Jemerov
325e950bfe
Reformat expression body property accessors
...
#KT-17394 Fixed
2017-07-19 15:02:52 +02:00
Toshiaki Kameyama
366b9d1d79
KT-12195 Quickfix @JvmStatic on main() method in an object ( #1192 )
...
* Quickfix @JvmStatic on main() method in an object #KT-12195 Fixed
* Fixed #KT-12195
2017-07-19 13:37:12 +02:00
Toshiaki Kameyama
a8da79a130
KT-12504 Intention to make open class with only private constructors sealed ( #1193 )
...
* Intention to make open class with only private constructors sealed #KT-12504 Fixed
* Fixed #KT-12504
2017-07-19 13:36:36 +02:00
Toshiaki Kameyama
8f9b680fc6
Support generic type parameters in 'Specify return type explicitly'
...
So #KT-18074 Fixed
2017-07-11 14:39:22 +03:00
Mikhail Glukhikh
2d1abda9a1
Convert "lift return / assignment" intentions into a single inspection
...
Also includes minor test fix, related to KT-14900
2017-07-07 18:15:14 +03:00
Mikhail Glukhikh
8f33bd0768
Handle break / continue / throw in lift return / assignment intentions
...
So #KT-14900 Fixed
2017-07-07 18:15:09 +03:00
Mikhail Glukhikh
d08b18f5f8
Introduce "use expression body" inspection #KT-16063 Fixed
...
Converted from the relevant intention
Reported cases: one-liners, whens
Also, more exact caret detection in local inspection tests
2017-07-07 18:15:06 +03:00
nd
33a93e5fc5
Inspection detecting redundant Unit return type ( #1144 )
2017-07-07 16:51:53 +02:00
Dmitry Jemerov
5f9a33564a
Implement option for wrapping method annotations
2017-07-07 16:48:31 +02:00
nd
58e5c497d0
Intention to replace add/addAll on a mutable collection with += ( #1143 )
2017-07-07 16:34:20 +02:00
Alexey Sedunov
50a38df8b1
Remove Parentheses: Forbid on call inside a call without argument list
...
#KT-18699 Fixed
2017-06-29 17:42:17 +03:00
Alexey Sedunov
6060a39494
Change Signature: Use correct index in getOriginalParameter()
...
#KT-18642 Fixed
#KT-18606 Fixed
2017-06-29 17:42:09 +03:00
Nikolay Krasko
df393e18fe
Configure AbstractInspectionTest with project descriptors
...
Previous implements produced flaky tests when non-js tests were
executed after js.
2017-06-29 16:56:15 +03:00
Toshiaki Kameyama
3a606d13f0
Extends range of change visibility intention #KT-14093 Fixed
2017-06-28 15:28:50 +03:00
Dmitry Neverov
44ce5f73f7
Apply De Morgan's laws to non-negated binary expressions
...
So #KT-18460 Fixed
2017-06-28 15:28:43 +03:00
Toshiaki Kameyama
c2707bb81b
Support cascade if / when in lift return / assignment intentions
...
So #KT-13458 Fixed
So #KT-13436 Fixed
2017-06-28 15:28:28 +03:00
Denis Zharkov
bc564af2fc
Regenerate mockJDK using openJDK 7
2017-06-24 17:26:01 +03:00
Mikhail Zarechenskiy
aeac2ea384
Fix 'add not-null asserted call' quick fix for operation in
...
#KT-18529 Fixed
2017-06-19 17:36:09 +03:00
Dmitry Neverov
5df5a001a1
Support implicit receiver in if-then intentions #KT-16069 Fixed
2017-06-16 15:02:44 +03:00
Dimach
d369fa094a
Add Boolean? == const to elvis conversion and vice versa #KT-15368 Fixed
...
Convert elvis to equality check implemented as inspection due
code style guide
2017-06-15 15:01:39 +03:00
Dmitry Jemerov
0e2bdb8e66
Support CONFIGURE_LIBRARY directive in intention tests
...
Also restore tests for ConvertCamelCaseTestFunctionToSpaced
and apply fix for KT-18375
2017-06-14 16:17:01 +02:00