Toshiaki Kameyama
4c62788c3e
Make "Add operator modifier" an inspection instead of intention
...
#KT-31533 Fixed
2019-06-05 19:27:52 +07:00
Dmitry Gridin
7bc2fcd657
Convert RemoveCurlyBracesFromTemplateIntention to inspection
...
Relates to #KT-31717
2019-06-03 16:37:37 +07:00
Ilya Kirillov
8fa9b9923f
Allow removing trivial property accessor body when the accessor can not be fully deleted in redundant getter/setter inspections
2019-05-31 00:25:52 +03:00
Toshiaki Kameyama
65f06454be
Add "Control flow with empty body" inspection
...
#KT-30970 Fixed
2019-05-29 18:04:24 +07:00
Dmitry Gridin
1c4fb9b00b
ConstantConditionIfInspection.replaceWithBranch shouldn't remove subjectVariable with side effects
...
Relates to #KT-30975
2019-05-29 15:40:10 +07:00
Dmitry Gridin
e2d5e9a184
Only when keyword should be highlighted in WhenWithOnlyElseInspection
...
#KT-31673 Fixed
2019-05-29 15:40:10 +07:00
Toshiaki Kameyama
e955dcfc14
WhenWithOnlyElse: don't remove when subject variable if needed
...
#KT-30975 Fixed
2019-05-29 15:40:10 +07:00
Dmitry Gridin
8988b4b344
Convert ReplaceSubstringIntention to ReplaceSubstringInspection
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
d3339cae46
Merge ReplaceMathMaxWithCoerceAtLeastIntention & ReplaceMathMinWithCoerceAtMostIntention with ReplaceJavaStaticMethodWithKotlinAnalogInspection
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Toshiaki Kameyama
3bca1a50e3
Move variable declaration into when: fix comment place
...
#KT-31362 Fixed
2019-05-23 19:01:24 +07:00
Mikhail Glukhikh
0cf318918c
Clean & fix tests in "replace manual range with indices / iteration"
...
Related to KT-14344
2019-05-21 13:34:29 +03:00
KilianCallebaut
3451c60f93
Suggest to replace manual range with explicit indices or iterable
...
#KT-14344 Fixed
2019-05-20 12:24:52 +03:00
Toshiaki Kameyama
fef0cc5d2b
"Introduce 'when' subject" intention: suggest for "this" expression
...
#KT-12567 Fixed
2019-05-14 23:25:10 +03:00
Mikhail Glukhikh
2d5f41cfe3
Fix .inspection file for ConvertNaNEquality tests
2019-05-14 16:23:08 +03:00
Toshiaki Kameyama
14259ca9e0
Implicit Nothing? type: don't report when declaration overrides nullable nothing type
...
#KT-30481 Fixed
2019-05-13 13:00:50 +03:00
Toshiaki Kameyama
cf4471ba53
"Redundant 'requireNotNull' or 'checkNotNull' call": don't remove first argument if function is used as expression
...
#KT-31404 Fixed
2019-05-13 16:59:01 +07:00
Dereck Bridie
574178882a
KT-26629 Inspection to replace equality check with NaN with isNaN call
2019-05-13 12:55:53 +03:00
Dmitry Gridin
07e908f15f
Fix incorrect quickfix "Replace with Kotlin analog" for conversion to an extension
...
where the first argument is an expression with an operation
#KT-31341 Fixed
2019-05-13 16:38:08 +07:00
Mikhail Glukhikh
955bfd6e7b
Introduce "add parameter names to following arguments"
...
This commit also refactors relevant intentions & inspections,
like "add name to argument", "add names to call arguments",
"unnamed boolean literal argument"
#KT-30622 Fixed
2019-05-13 12:33:39 +03:00
Mikhail Glukhikh
54411bd248
Simplifiable call: support case w/out receiver, add minor enhancements
...
Related to KT-30501
2019-05-07 14:28:20 +03:00
Mikhail Glukhikh
e934eba6e4
Simplifiable call inspection: add filter -> filterIsInstance replacement
...
#KT-30501 Fixed
2019-05-07 14:28:18 +03:00
Mikhail Glukhikh
8913755e11
Simplifiable call inspection: add filter -> filterNotNull replacement
...
Related to KT-30501
2019-05-07 14:28:17 +03:00
Mikhail Glukhikh
4a5cbe0443
Replace "flatMap -> flatten" inspection with abstract "simplifiable call"
...
Related to KT-30501
2019-05-07 14:28:16 +03:00
Dmitriy Novozhilov
05aa36a858
[IDE-NI-MIGRATE] [BAD] Migrate testdata of LocalInspection tests
2019-05-06 11:35:55 +03:00
Dmitry Gridin
2ae30de980
MoveVariableDeclarationIntoWhenInspection shouldn't report a multi-line variable
...
#KT-30457 Fixed
2019-04-24 20:12:44 +07:00
Toshiaki Kameyama
864f99782e
Use property access syntax: fix problem text and highlight range
...
#KT-30910 Fixed
2019-04-22 16:19:37 +07:00
Dmitry Gridin
3838976083
Fix false positive 'Remove redundant qualifier name' for property
...
#KT-31112 Fixed
2019-04-22 11:58:43 +07:00
Kirill Rakhman
00c76593f2
fix typo in test data
2019-04-19 18:31:17 +07:00
Dmitry Gridin
d738a12b86
Fix false positive ReplaceJavaStaticMethodWithKotlinAnalog for java.io.PrintStream
2019-04-18 15:28:52 +07:00
Dmitry Gridin
fd47dc9b88
Replace popup with several quick-fixes in ReplaceJavaStaticMethodWithKotlinAnalog
2019-04-18 15:28:52 +07:00
Dmitry Gridin
ee304e92b5
Add Java Arrays.asList, Set.of, List.of to ReplaceJavaStaticMethodWithKotlinAnalogInspection
...
Relates to #KT-27782 #KT-21641
2019-04-18 15:28:52 +07:00
Dmitry Gridin
b5b5723ec3
Rename ReplaceJavaStaticMethodWithTopLevelFunctionInspection to ReplaceJavaStaticMethodWithKotlinAnalogInspection
2019-04-18 15:28:52 +07:00
Dmitry Gridin
23003c5d1a
Add Java compare to ReplaceJavaStaticMethodWithTopLevelFunctionInspection
2019-04-18 15:28:51 +07:00
Dmitry Gridin
7f3c4a21d5
Add Java toString to ReplaceJavaStaticMethodWithTopLevelFunctionInspection
2019-04-18 15:28:51 +07:00
Dmitry Gridin
6afc0367c0
Merge ReplaceJavaIntegerToStringWithMemberInspection and ReplaceJavaStaticMethodWithTopLevelFunctionInspection
...
Relates to #KT-12721
2019-04-18 15:28:51 +07:00
Dmitry Gridin
6b7f4dda31
Merge ReplaceArraysCopyOfWithCopyOfInspection and ReplaceJavaStaticMethodWithTopLevelFunctionInspection
...
Relates to #KT-23023
2019-04-18 15:28:51 +07:00
Dmitry Gridin
50b89dd587
Add more cases for ReplaceJavaStaticMethodWithTopLevelFunction from java.lang.Math
2019-04-18 15:28:51 +07:00
Toshiaki Kameyama
faa6eacb25
Add "Replace Java static method with Kotlin top-level function" inspection
...
#KT-27411 Fixed
2019-04-12 11:35:46 +07:00
Dereck Bridie
d86ffd3f34
Add inspection "Map replaceable with EnumMap" #KT-25439 Fixed
2019-04-11 19:01:02 +03:00
Jan Gerling
162de77b71
Add inspection to detect boxes *Range.start & endInclusive
...
These properties can be replaced with equivalent collections first & last.
#KT-15537 Fixed
2019-04-11 18:58:04 +03:00
Toshiaki Kameyama
849d18669b
Replace assert boolean with assert equality: do not report when arguments type are not subtype
...
#KT-30761 Fixed
2019-04-11 18:36:50 +03:00
Toshiaki Kameyama
47b1ea7fa4
SimplifiableCallChainInspection: replace .sorted().first() with .min()
...
#KT-30725 Fixed
2019-04-11 18:07:06 +03:00
Toshiaki Kameyama
e4b10a156e
SimplifiableCallChainInspection: fix tests
2019-04-11 18:07:06 +03:00
Dmitry Gridin
86a3daa302
Fix "Remove redundant qualifier name" for KtUserType with type parameter
...
#KT-30916 Fixed
2019-04-11 15:13:17 +07:00
Dmitry Gridin
646f325f57
Fix false positive "Redundant qualifier name" for functions with a receiver
...
#KT-30879 Fixed
2019-04-11 15:13:17 +07:00
Toshiaki Kameyama
3de723b8d0
SimplifiableCallChainInspection: replace .sorted().firstOrNull() with .min()
...
#KT-30725 Fixed
2019-04-08 11:07:24 +03:00
Toshiaki Kameyama
bcfab83d1c
Add "Constructor has non-null self reference parameter" inspection (KT-29799)
...
#KT-29799 Fixed
2019-04-04 17:25:37 +03:00
Toshiaki Kameyama
dffcfdc02f
Add inspection to replace not-null assertion with elvis return
...
#KT-30381 Fixed
2019-04-04 20:29:17 +07:00
Austaon
efcc6f0967
Add inspection for Integer.toString(i) to i.toString() (KT-12721)
2019-04-03 19:12:54 +03:00
Toshiaki Kameyama
61f3e776a7
Add 'Covariant equals' inspection
...
#KT-29798 Fixed
2019-04-02 13:19:05 +07:00