Mikhail Glukhikh
ada7287c66
Refactoring: make "replace call with binary operator" an inspection
2017-12-26 18:39:48 +03:00
Mikhail Glukhikh
91bcfb97c6
Refactoring: make "replace get or set" an inspection
2017-12-26 18:39:47 +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
Valentin Kipyatkov
1fe6886a33
Fixed error message to quote parameter name
2017-05-20 23:44:20 +03:00
Mikhail Zarechenskiy
f37b7224da
Fix test: do not propose to change 'mod' to '%'
2016-12-09 17:01:32 +03:00
Dmitry Jemerov
b1b171fbc5
correct way to check if intention is applicable; revert: Delete test that is transformed syntax error
2016-10-13 15:45:55 +02:00
takahirom
925c48c2f0
Fix 'in' operator intention for Strings (KT-13974)
2016-10-13 15:45:30 +02:00
Kirill Rakhman
e6e46809de
fix "Can be replaced with comparison" false positive if extension method called 'equals' is used
...
Fixes #KT-13480
2016-08-20 14:11:57 +02:00
Mikhail Glukhikh
fc13b25ca4
KT-11425: convert a.compareTo(b) to binary comparison if possible
...
(cherry picked from commit 7219904)
2016-08-01 12:23:19 +03:00
Mikhail Glukhikh
f309021c9f
KT-11425: convert !a.equals(b) to a != b
...
(cherry picked from commit 56c7786)
2016-08-01 12:23:07 +03:00
Mikhail Glukhikh
2850a7898d
KT-11425: replace call with binary operator works now also with equals() and ==
...
(cherry picked from commit 5d47fdf)
2016-08-01 12:22:54 +03:00
Stanislav Erokhin
f3be1b8f1f
Add assertion for variable as function call with explicit type parameters.
2016-07-27 13:17:15 +03:00
Yan Zhulanow
6752df189d
Make infix modifier diagnostic message more informative (KT-12589)
...
(cherry picked from commit 2744309)
2016-06-24 15:10:19 +03:00
hedgehog
02d4376b85
#KT-10797 Fixed
2016-04-04 12:21:11 +02:00
Alexander Udalov
8316953259
Fix double quotes in diagnostic messages
...
For diagnostics without any parameters, the given text is simply rendered as a
String, so no symbols should be escaped.
For diagnostics with parameters, the format in java.text.MessageFormat is used,
so one single quote is erased and two single quotes become one single quote in
the rendered text.
2016-03-30 21:41:43 +03:00
Alexander Udalov
e915e1548c
Fix multiple 'unresolved java classifier' errors
...
Use the same component (NotFoundClasses) as in loading of compiled Kotlin
symbols.
Some tests were changed to avoid a diagnostic that is now reported when a
non-found class is encountered in a signature (e.g. staticMethod.1.java where
JDK seems to be not configured)
#KT-10493 Fixed
#KT-10820 Fixed
#KT-11368 Fixed
2016-03-28 14:13:59 +03:00
Anton Sukhonosenko
e8b665f600
#KT-10883 Fixed
2016-03-22 17:23:16 +01:00
Yan Zhulanow
0304bd1dc1
More precise diagnostic messages about "operator modifier is not applicable"
2016-01-26 17:21:44 +03:00
Yan Zhulanow
3fa506fd45
"Inapplicable operator modifier" and "Inapplicable infix modifier" are now errors
2016-01-26 17:21:44 +03:00
Nikolay Krasko
36210f0a27
Allow to suppress kotlin inspections with Suppress() annotation
2015-12-19 14:32:36 +03:00
Natalia Ukhorskaya
ce3d53d2ee
Intention tests: add operator modifier in some tests
2015-12-17 11:11:27 +03:00
Yan Zhulanow
9d1af5a17e
Fix tests: "infix modifier required" and "operator modifier required" errors
2015-11-27 15:51:11 +03:00
Yan Zhulanow
a3ff3ffc45
Fix tests: "Placing function type parameters after the function name" error
2015-11-27 15:51:11 +03:00
Valentin Kipyatkov
c5e13ebc68
Minor corrections on code review
2015-10-30 17:25:34 +03:00
Valentin Kipyatkov
66310806ca
KT-9628 Intention&inspection to replace use of "set" operator function with []
...
#KT-9628 Fixed
2015-10-22 18:48:15 +03:00
Valentin Kipyatkov
852579e7f3
Renamed class
2015-10-22 18:48:15 +03:00
Valentin Kipyatkov
734d3f4fca
Removed test which did not work by some reason
2015-10-19 09:43:13 +03:00
Valentin Kipyatkov
e7fa2cb776
Replace with explicit "get" inspection enabled by default but is reported only for functions explicitly marked with "operator"
2015-10-19 09:43:13 +03:00
Valentin Kipyatkov
50f559a1c8
ReplaceGetIntention should not be available for non-operator functions
2015-10-19 09:43:11 +03:00
Yan Zhulanow
ed5c059cea
Rename unary plus() and minus() to unaryPlus() and unaryMinus()
2015-10-09 22:49:17 +03:00
Valentin Kipyatkov
4c88b31878
KT-7525 Don't suggest to replace 'get' call with index operator for static method calls (inspection & intention)
...
KT-5322 super.get issues a "Replace 'get' call with index operator" inspection
#KT-7525 Fixed
#KT-5322 Fixed
2015-05-27 16:15:52 +03:00
Valentin Kipyatkov
1ad5ea4f7e
Corrected test data
2015-05-14 01:10:13 +03:00
Valentin Kipyatkov
102aa661ee
Moved intention based inspection classes to their intention classes + some renames
2015-05-14 01:10:08 +03:00
Valentin Kipyatkov
addcadeddf
Replace "contains" with "in" intention handles negation
2015-05-14 01:10:06 +03:00
Valentin Kipyatkov
11812a9ece
Renamed some intentions + test data dirs
2015-05-14 01:10:05 +03:00
Valentin Kipyatkov
096df91972
Renamed intentions package
2015-05-14 01:10:05 +03:00