Mikhail Glukhikh
7ae722492f
Unused symbol: do not use body of function literal as scope for members
...
So #KT-10546 Fixed
2017-09-12 16:13:34 +03:00
Mikhail Glukhikh
ae509d5980
Unused symbol: add test to fix behaviour #KT-16318 Obsolete
2017-09-11 12:12:20 +03:00
Mikhail Glukhikh
37d2386a0b
Unused symbol: handle imports from nested objects correctly
...
So #KT-17437 Fixed
2017-09-11 12:12:18 +03:00
Mikhail Glukhikh
7e3d3bde74
Unused symbol: never use VALUE_ARGUMENT scope for members
...
So #KT-10546 Fixed
2017-09-11 12:12:17 +03:00
Mikhail Glukhikh
5c4e034171
Unused symbol: do not search for internal member light methods
...
Use direct references search instead
So #KT-19811 Fixed
2017-09-11 12:12:16 +03:00
scache
ba19931aef
Keep braces in redundant cascade if #KT-19704 Fixed
2017-09-07 15:23:04 +03:00
Toshiaki Kameyama
e01371b231
Redundant getter / setter inspection #KT-19514 Fixed ( #1282 )
2017-09-05 17:27:56 +02:00
takahirom
806aa7d4c1
Add inspection for redundant overrides that only calls the super method
...
So #KT-19428 Fixed
2017-08-18 12:05:02 +03:00
Kirill Rakhman
41e5840298
Implement inspection for redundant lambda arrow
...
Fixes #KT-11991
2017-08-03 15:37:04 +02:00
Kirill Rakhman
9ac1a0140c
Add inspection for when with only else ( #1206 )
...
Fixes #KT-12523
2017-08-03 15:30:28 +02:00
Toshiaki Kameyama
29dba9edb3
Do not report "property can be private" in annotations #KT-19273 Fixed
2017-08-01 11:53:42 +03:00
Dimach
88fa7c2952
Introduce "double negation" inspection #KT-4748 Fixed
2017-07-31 15:57:31 +03:00
Toshiaki Kameyama
c3988ef184
Support "Lift return out of when" for exhaustive when without else
...
So #KT-18852 Fixed
2017-07-26 17:44:19 +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
Mikhail Glukhikh
44790eccaf
Use "unnecessary variable" inspection in J2K
...
Unused variables are no more treated as unnecessary
Related to KT-15958
2017-07-20 17:48:27 +03:00
Mikhail Glukhikh
987c7f5be8
Add "unnecessary local variable" inspection #KT-15958 Fixed
2017-07-18 16:37:47 +03:00
Dmitry Neverov
9d06a80519
Do not report "property can be private" on JvmField properties
...
So #KT-18970 Fixed
2017-07-18 15:48:10 +03:00
Kirill Rakhman
cb19a86c44
Add "simplify if with constant" inspection #KT-17919 Fixed
2017-07-11 20:00:33 +03:00
Dimach
7407083624
Add inspection to simplify successive null checks #KT-14799 Fixed
2017-07-11 18:47:26 +03:00
Toshiaki Kameyama
8cc9330e63
Introduce "Lift return out of try" intention #KT-18830 Fixed
2017-07-11 15:14:30 +03:00
Nikolay Krasko
7f8d6b3008
Don't move line and /**/ comments during reformat (KT-18805)
...
#KT-18805 Fixed
2017-07-10 15:32:42 +03:00
Mikhail Glukhikh
b0fda5f451
Lift return out fix: do not suggest for labeled returns
2017-07-07 18:15:35 +03:00
Mikhail Glukhikh
0c41ceea9d
"Cascade if" inspection: do not suggest for one-line if
2017-07-07 18:15:28 +03:00
Mikhail Glukhikh
0fe9030eba
"Cascade if" inspection: don't highlight for complex logical conditions
...
Related to KT-18615
2017-07-07 18:15:27 +03:00
Mikhail Glukhikh
8273eff1a1
Introduce "cascade if" inspection suggesting replacement with when
...
So #KT-18615 Fixed
2017-07-07 18:15:26 +03:00
Mikhail Glukhikh
1ddaee5b4a
"Lift return / assignment": don't highlight if other returns available
2017-07-07 18:15:24 +03:00
Mikhail Glukhikh
691b733c55
"Lift return / assignment": do not suggest for else arguments
2017-07-07 18:15:22 +03:00
Mikhail Glukhikh
042990dda1
"Lift return / assignment": do not suggest for too long expressions
2017-07-07 18:15:21 +03:00
Mikhail Glukhikh
398f92dc6f
Lift assignment out: do not suggest if other assignments available
...
So #KT-18709 Fixed
2017-07-07 18:15:20 +03:00
Mikhail Glukhikh
9c4dfa3343
Lift return out: do not suggest for lambda in return #KT-18711 Fixed
2017-07-07 18:15:18 +03:00
Mikhail Glukhikh
c0d10264bc
Lift assignment out: do not highlight for exactly one assignment
...
Related to KT-14900
2017-07-07 18:15:17 +03:00
Mikhail Glukhikh
1010ecca8c
Lift return out: do not report for zero returns
...
Also, do not highlight (but suggest fix) for exactly one return
Related to KT-14900
2017-07-07 18:15:16 +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
523cbc6723
Convert to expression body: insert new-line after = for long lines
2017-07-07 18:15:07 +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
Alexey Sedunov
9ba868a903
Minor: Fix test data
2017-06-30 13:53:09 +03:00
Mikhail Glukhikh
fdca96634e
Add restrictions for "simplifiable call chain" inspection
...
Do not use on maps; do not suggest for lambdas with return inside
Related to KT-18274
2017-06-29 16:25:55 +03:00
Mikhail Glukhikh
36be1fdaef
Introduce "simplifiable call chain on collection" inspection
...
Related to KT-12165
So #KT-18274 Fixed
So #KT-17198 Fixed
2017-06-29 16:25:52 +03:00
Mikhail Glukhikh
bdb9f00c75
Introduce "Useless call on collection type" inspection
...
Related to KT-12165
Supported functions: filterNotNull, filterIsInstance,
mapNotNull, mapNotNullTo, mapIndexedNotNull, mapIndexedNotNullTo
Also, "Useless cal on not-null" improved a bit
2017-06-29 16:25:50 +03:00
Mikhail Glukhikh
f80f41d254
Introduce "redundant explicit type" inspection #KT-18517 Fixed
...
Reported cases: constants, constructors, object references
2017-06-29 16:25:47 +03:00
Mikhail Glukhikh
0f4ae3b727
Introduce "Useless call on not-null type" inspection #KT-18386 Fixed
...
Supported functions: orEmpty(), isNullOrEmpty(), isNullOrBlank()
2017-06-29 16:25:45 +03:00
shiraji
cbccf932a7
Add inspection removing redundant spread operator for arrayOf call
...
So #KT-17920 Fixed
2017-06-16 15:04:04 +03:00
Toshiaki Kameyama
b9fb7cc3a5
Add quick fix to generate equals / hashcode in data class with arrays
...
So #KT-15893 Fixed
2017-06-16 15:03:52 +03:00
Kirill Rakhman
13a2612e20
Add inspection for ranges with start > endInclusive #KT-18438 Fixed
2017-06-16 15:02:31 +03:00
shiraji
647558c98a
Add inspection for potentially wrongly placed unary operators
...
So #KT-18236 Fixed
2017-06-16 15:02:24 +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
Mikhail Glukhikh
44e727b75c
Redundant toString() in string template: highlight selector only
...
And not the receiver. So #KT-18253 Fixed
2017-06-13 15:17:42 +03:00
Ilya Zorin
5e265b3d17
Convert intention "a..b-1 -> a until b" into weak warning inspection
...
So #KT-17895 Fixed
2017-05-26 09:48:04 +03:00
Mikhail Glukhikh
17869abfaf
Don't suggest making interface member final
...
(which was possible in leaking this inspection)
So #KT-14443 Fixed
2017-05-19 20:36:31 +03:00
Mikhail Glukhikh
51af18608f
AbstractLocalInspectionTest: add LANGUAGE_VERSION support
...
Related to KT-17164
2017-05-16 20:44:12 +03:00