Mikhail Glukhikh
bd348911af
Add "unused equals" for direct calls without receiver
...
Related to KT-21192
2017-11-30 16:44:16 +03:00
Mikhail Glukhikh
64159a900a
Add "unused equals" warning on direct equals call #KT-21192 Fixed
2017-11-30 16:43:54 +03:00
Mikhail Glukhikh
07ec4ecd7f
Add tests for KT-19511 and KT-21192 (with void -> boolean)
2017-11-30 16:43:53 +03:00
Mikhail Glukhikh
7b5842a088
Fix inspection test
2017-09-28 14:00:56 +03:00
Mikhail Glukhikh
426a54c3ab
Do not count callable reference as recursive property access
...
So #KT-20104 Fixed
2017-09-25 18:16:42 +03:00
Toshiaki Kameyama
f08e9832a6
Show warning also if arrays are compared by '!=' #KT-20259 Fixed
2017-09-25 12:15:17 +03:00
Toshiaki Kameyama
1c7d66c803
Do not suggest "Redundant Unit return type" for Nothing-typed expression
...
So #KT-20261 Fixed
2017-09-18 13:02:03 +03:00
Mikhail Glukhikh
77f625bfc8
Include ReplaceModifierFix in cleanup #KT-20262 Fixed
2017-09-16 19:47:37 +03:00
Mikhail Glukhikh
6e41bbc2a7
Migration: header->expect & impl->actual in IDEA test data
2017-09-15 18:29:06 +03:00
Nikolay Krasko
d38fd0fdf8
Need reformat inspection
2017-09-07 16:10:09 +03:00
scache
ba19931aef
Keep braces in redundant cascade if #KT-19704 Fixed
2017-09-07 15:23:04 +03:00
Dimach
b988fb701d
KT-17888 Inspection to warn about suspicious combination of == and ===
2017-08-24 18:14:24 +02:00
Dmitry Jemerov
f7c17d6a64
Naming convention inspections
2017-08-16 15:45:33 +02:00
Dmitry Jemerov
1fe3f84071
Don't search twice for the same declaration
2017-08-15 11:39:40 +02:00
Yan Zhulanow
45681ed9eb
Fix "'Redundant modality' is not reported with all-open" (KT-18195)
2017-08-02 03:35:15 +03:00
Mikhail Glukhikh
87cdc7635a
Do not suggest "can be private" for elements with given annotations
...
So #KT-19272 Fixed
2017-08-01 18:01:29 +03:00
Toshiaki Kameyama
be0b01a1e6
Do not report "can be private" on effectively private / local elements
...
So #KT-18822 Fixed
2017-07-31 11:58:14 +03:00
Kirill Rakhman
3ff5c95419
Improve inspection message for NullableBooleanElvisInspection
...
Also report as "should" or "can" depending on severity
So #KT-19006 Fixed
2017-07-27 11:08:26 +03:00
Mikhail Glukhikh
dd0cf8219e
Add type aliases into UnusedSymbolInspection / safe delete
...
So #KT-16046 Fixed
2017-07-21 18:59:01 +03:00
Mikhail Glukhikh
39f1ef390e
Do not report "redundant Unit" for generic calls coerced to Unit
...
So #KT-18999 Fixed
2017-07-20 17:48:20 +03:00
Mikhail Glukhikh
c554bfa20d
Move: RemoveSetterParameterTypeInspection to inspections package
2017-07-20 17:48:14 +03:00
Mikhail Glukhikh
e154e4cf75
Move: RedundantUnitReturnTypeInspection to inspections package
2017-07-20 17:48:07 +03:00
Yan Zhulanow
e037cafe18
Use descriptor modality in IDE inspections/intentions
...
This fixes KT-18160, KT-18194, KT-18195, KT-18197 ~
2017-07-18 18:10:15 +03:00
Toshiaki Kameyama
848f7423ee
Do not report "can be private" on properties of private class
...
So #KT-18822 Fixed
2017-07-12 10:35:10 +03:00
Kirill Rakhman
cb19a86c44
Add "simplify if with constant" inspection #KT-17919 Fixed
2017-07-11 20:00:33 +03:00
nd
33a93e5fc5
Inspection detecting redundant Unit return type ( #1144 )
2017-07-07 16:51:53 +02:00
Dmitry Neverov
08afaca518
Don't propose making property private if it's used in inline function
2017-07-03 21:58:22 +02: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
Dmitry Neverov
3e29f9ed5a
Don't report as redundant 1st semicolon in enum without entries
...
So #KT-12524 Fixed
2017-06-28 15:30:40 +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
Dmitry Neverov
e2aa3518df
Property accessor isn't recursive when called on another object
...
So #KT-18120 Fixed
2017-06-05 19:42:44 +03:00
Dmitry Neverov
753b714544
Report cases when class member can be private
2017-05-26 13:29:01 +02: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
Dmitry Neverov
3b4dafe691
Detect recursive property accessors #KT-17221 Fixed
2017-05-19 20:36:09 +03:00
Dmitry Neverov
bf4e69e17f
Make semicolon in loop with empty body not redundant
...
So #KT-12805 Fixed
2017-05-16 16:43:28 +03:00
Kirill Rakhman
a8b2d3b4e8
Add inspection to detect copy() calls in a data class without named arguments
...
So #KT-17660 Fixed
2017-05-10 17:43:44 +03:00
Mikhail Glukhikh
759e6643c6
ConvertLambdaToReference refactoring
...
Intention is not registered now; inspection is enabled by default now,
but has highlight level of "No highlighting"
Inspection does not depend on text length now
So #KT-14335 Fixed
2017-05-10 14:56:37 +03:00
nd
c9f475b402
Detect redundant semicolon before empty import list ( #1072 )
...
#KT-16577 Fixed
2017-05-08 16:14:22 +03:00
Mikhail Glukhikh
b66401a41d
Variance checker: add check for nested local / anonymous classes
...
So #KT-16136 Fixed
2017-04-27 20:58:39 +03:00
Yan Zhulanow
4b072d59ac
Minor: Fix test for Android illegal identifiers
2017-04-27 18:52:13 +03:00
Alexey Sedunov
f575e2710f
Move: Fix processing of implicit extension 'invoke' calls
...
Also fix bogus "unused import" inspection reported on such calls
#KT-17496 Fixed
2017-04-21 13:32:34 +03:00
mglukhikh
8fb818fc74
Don't report 'protected in final' for implicitly protected
...
So #KT-16339 Fixed
2017-04-04 19:22:39 +03:00
Vyacheslav Gerasimov
b8ebc087e2
Add inspection for calls of function with lambda expression body
...
Added "Unused return value of a function with lambda expression body" inspection with quickfix "Remove '=' token from function declaration"
#KT-10393 Fixed
2017-03-15 00:22:31 +03:00
Kirill Rakhman
2506bb6673
Inspection checking that destructuring variable name matches the name of different component #KT-12004 Fixed
2017-03-01 18:24:48 +03:00
Stanislav Erokhin
3efda0e45a
Reserve yield if it isn't function call.
2017-02-13 02:53:37 +03:00
Simon Ogorodnik
f1c4230a68
KT-14680 import statement to typealias reported as unused when using only TA constructor
...
#KT-14680 fixed
2017-01-26 21:18:20 +03:00
Kirill Rakhman
909007d984
Add inspection for private primary constructors in data classes
...
Fixes #KT-15709
2017-01-24 14:08:05 +03:00
Mikhail Glukhikh
31a8689999
Do not count 'impl' or 'header' with implementations as unused #KT-15305 Fixed
2017-01-11 18:37:55 +03:00