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
Toshiaki Kameyama
07ffac72cf
Assign backing field: don't add empty line
...
#KT-28694 Fixed
2018-12-10 12:06:55 +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
f6323cdee4
Replace assert boolean with assert equality: add import statement
...
#KT-28540 Fixed
2018-12-06 09:27:35 +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
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
Toshiaki Kameyama
a0162adbf9
Nested lambda has shadowed implicit parameter: do not report when outer lambda 'it' is not used
...
#KT-26710 Fixed
2018-11-29 19:19:19 +03:00
Toshiaki Kameyama
d3908aeb2e
Add "map.get() with not-null assertion operator" inspection #KT-25171 Fixed
2018-11-29 14:42:18 +03:00
Mikhail Glukhikh
c5c0cbccde
Redundant companion reference: simplify name conflict checking code
...
Before this commit, function with same name but different signature
wasn't counted as name conflict, now it is - just because that exact
check in this place could be too complex and error-prone
Enhancement for KT-27539
2018-11-29 14:32:08 +03:00
Toshiaki Kameyama
1db7a0e0cc
Redundant companion reference: don't report in case of name conflicts
...
#KT-27539 Fixed
2018-11-29 14:32:08 +03:00
Toshiaki Kameyama
75755afc00
Remove redundant spread operator: don't remove inner argument spread operator #KT-27699 Fixed
2018-11-16 13:06:25 +03:00
Toshiaki Kameyama
2a03e1b3da
Leaking this: fix for 'this' in enum class #KT-15835 Fixed
2018-11-15 15:16:48 +03:00
Aleksei Semin
793cac02e8
Add inspection and quick-fix to remove empty parentheses in annotation entries
2018-11-13 10:38:08 +03:00
Toshiaki Kameyama
4ae837e669
Redundant lambda arrow: fix false positive in 'when/if' without block #KT-28047 Fixed
2018-11-08 10:40:02 +03:00
Toshiaki Kameyama
23b9889ebb
Redundant companion reference: Fix false negative in enum entry #KT-27861 Fixed
2018-11-07 17:21:41 +03:00
Toshiaki Kameyama
0fcd1a2072
Introduce "Delegate to 'var' property" inspection #KT-26724 Fixed
2018-11-07 13:59:00 +03:00
Toshiaki Kameyama
d0d98dc283
Redundant companion reference: fix false positive for class with name Companion #KT-27861 Fixed
2018-11-07 11:53:22 +03:00
Toshiaki Kameyama
7a9effe30d
Redundant companion reference: Fix false positive in enum entry #KT-27861 Fixed
2018-11-06 11:02:35 +03:00
Toshiaki Kameyama
e8e51d1db4
Safe cast with return: fix false negative on lambda last statement #KT-27906 Fixed
2018-11-01 10:59:18 +03:00
Mikhail Glukhikh
318d6e7111
Introduce inspection for unused main parameter #KT-26999 Fixed
2018-10-31 19:00:29 +03:00
Mikhail Glukhikh
700bcb5984
Unused symbol: fix false positives on inline class constructors
...
#KT-27434 Fixed
2018-10-27 12:13:52 +03:00
Toshiaki Kameyama
3e6007e3d3
Lift return out: report also on 'return' keywords #KT-27173 Fixed
2018-10-25 19:51:36 +03:00
Toshiaki Kameyama
90529dfda4
"Remove redundant receiver" quick fix: Remove unused type parameter #KT-23512
2018-10-23 13:02:44 +03:00
Toshiaki Kameyama
0cd25353bc
Lift assignment: do not report in cases where argument are of different types #KT-21520 Fixed
2018-10-23 12:48:03 +03:00
Toshiaki Kameyama
29cc727c5a
Add inspection for suspicious 'var' property #KT-23691 Fixed
2018-10-23 12:31:42 +03:00
Toshiaki Kameyama
3ede93df11
Introduce inspection: "Setter backing field should be assigned"
...
#KT-20273 Fixed
2018-10-23 11:22:40 +03:00
Mikhail Glukhikh
a5e508a083
Unused symbol: handle functions with inline class parameters correctly
...
#KT-27357 Fixed
2018-10-19 19:07:59 +03:00
Toshiaki Kameyama
9b49c23668
Move lambda out: don't report in delegation #KT-27584 Fixed
2018-10-15 19:52:10 +03:00
Nikolay Krasko
d3ec145f13
Fixes for ReplaceArraysCopyOfWithCopyOfInspection
...
- Reduce applicability range
- Don't fix reporting level, otherwise it won't be possible to change
it in settings
- Using isCalling utility
2018-10-12 18:21:38 +03:00
kenji tomita
e6de8e9cd3
Inspection to convert Arrays.copyOf(a, size) to a.copyOf(size)
2018-10-12 18:21:36 +03:00
Toshiaki Kameyama
dc750cdbb3
Call chain into sequence: add 'unzip' to conversion targets #KT-27486 Fixed
2018-10-11 09:18:30 +03:00
Toshiaki Kameyama
3f252b15e1
Call chain into sequence: add 'flatten' to conversion targets #KT-26969 Fixed
2018-10-11 09:17:23 +03:00
Mikhail Glukhikh
6be65e7d1a
Replace equals with == involving FP types: handle possible smart casts
...
This fixes two relevant tests with smart casts
#KT-25933 Fixed
2018-10-10 15:02:47 +03:00
kenji tomita
1aa9d5673b
Do not highlight replacement of equals involving floating-point types
...
Two tests with smart casts do not work yet
Part of KT-25933
2018-10-10 15:02:43 +03:00
Toshiaki Kameyama
9a725b99b2
Call chain into sequence: fix false negative on Iterable
...
#KT-26650 Fixed
2018-10-09 12:22:17 +03:00
Toshiaki Kameyama
3be5f2b843
"Redundant visibility": Fix false positive for overridden setter
...
#KT-26051 Fixed
2018-10-09 11:48:00 +03:00
Toshiaki Kameyama
539c55c5b2
Call chain into sequence: fix false negative on implicit receiver
...
Part of KT-26650
2018-10-09 11:33:55 +03:00