Dimach
88fa7c2952
Introduce "double negation" inspection #KT-4748 Fixed
2017-07-31 15:57:31 +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
Pavel V. Talanov
05ea99441f
script.runtime 1.1.4: Update test data implementations
2017-07-30 18:21:35 +03:00
Nikolay Krasko
99555fa843
Retrieve receiver annotation to stubs from compiled code (KT-19209)
...
#KT-19209 Fixed
2017-07-28 15:01:32 +03:00
Nikolay Krasko
24865ba26a
Allow deprecated fix for TYPEALIAS_EXPANSION_DEPRECATION
2017-07-28 01:28:56 +03:00
Nikolay Krasko
53373b66b9
Do not replace in alias when constructor has special pattern (KT-19202)
...
#KT-19202 Fixed
2017-07-28 01:28:56 +03:00
Valentin Kipyatkov
996292264b
Fixed inline when multiple implicit receivers exist
...
#KT-17776 Fixed
#KT-17266 Fixed
2017-07-27 13:55:25 +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
Andrius Semionovas
68659f5a32
Introduce error "ANNOTATION_USED_AS_ANNOTATION_ARGUMENT" along with QF
...
The relevant inspection has been removed
So #KT-18855 Fixed
2017-07-27 09:54:22 +03:00
Toshiaki Kameyama
5290553184
Fix Math.min with coerceAtMost intention inside qualified expression
...
So #KT-19232 Fixed
2017-07-26 20:12:53 +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
9781d1fcdf
Remove unused variable with constant initializer #KT-13886 Fixed
2017-07-26 15:18:46 +03:00
Mikhail Glukhikh
a08f55cf99
Cast to type quick-fix: handle case with qualified elements correctly
...
Same fix for 'add !!' fix
So #KT-18368 Fixed
2017-07-26 15:18:38 +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
Nikolay Krasko
732d1129ab
Enable replace for deprecated alias in whole project (KT-14929)
...
#KT-14929 Fixed
2017-07-26 14:20:59 +03:00
Nikolay Krasko
5df2698f77
Enable ReplaceWith for type aliases (KT-14929)
...
#KT-14929 Fixed
2017-07-26 14:20:57 +03:00
Simon Ogorodnik
094125c970
KT-19154: Fix auto-import to check receiver for members properly
...
#KT-19154 fixed
2017-07-25 16:16:57 +03:00
Dmitry Jemerov
e0dc7a27a0
Migration for pre-1.1.3 JS libraries
...
#KT-19156 Fixed
2017-07-24 19:53:52 +02:00
Kirill Rakhman
4c7ddbe397
"Use destructuring declaration" should not be available for top-level and class properties ( #1205 )
...
Fixes #KT-19167
2017-07-24 14:33:46 +02:00
Mikhail Glukhikh
d05a525d8d
Search for KtTypeAlias in safe delete processor
...
Related to KT-16046
2017-07-21 18:59:07 +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
202fb19cf6
If-then to safe access: more correct receiver calculation
...
So #KT-18928 Fixed
2017-07-21 18:58:33 +03:00
Simon Ogorodnik
7ed1669050
KT-19011: Fix import optimizing when extension functional type is used
...
It should check is extension functional type imported from companion
is actually called on companion instance
#KT-19011 fixed
2017-07-21 03:08:06 +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
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
Dmitry Jemerov
fbcc519098
Fix tests affected by annotation wrapping changes
2017-07-20 12:32:48 +02:00
Toshiaki Kameyama
fe599463ac
KT-18978 Intention Move to class body generates incorrect code for vararg val/var ( #1188 )
...
Intention Move to class body generates incorrect code for vararg val/var #KT-18978 Fixed
2017-07-20 01:29:56 +03:00
Dmitry Jemerov
951392005b
Add options for wrapping local variable and property annotations
...
#KT-14950 Fixed
2017-07-19 15:03:00 +02:00
Dmitry Jemerov
050ff03b07
Implement wrapping options for enum constants
...
#KT-14126 Fixed
2017-07-19 15:02:59 +02:00
Dmitry Jemerov
7555bb6c3c
Support formatting of 'where' clauses
...
#KT-14083 Fixed
2017-07-19 15:02:58 +02:00
Dmitry Jemerov
325e950bfe
Reformat expression body property accessors
...
#KT-17394 Fixed
2017-07-19 15:02:52 +02:00
Toshiaki Kameyama
366b9d1d79
KT-12195 Quickfix @JvmStatic on main() method in an object ( #1192 )
...
* Quickfix @JvmStatic on main() method in an object #KT-12195 Fixed
* Fixed #KT-12195
2017-07-19 13:37:12 +02:00
Toshiaki Kameyama
a8da79a130
KT-12504 Intention to make open class with only private constructors sealed ( #1193 )
...
* Intention to make open class with only private constructors sealed #KT-12504 Fixed
* Fixed #KT-12504
2017-07-19 13:36:36 +02:00
Nikolay Krasko
4e76975a52
Force OOB in accessors for properties without explicit type (KT-19062)
...
#KT-19062 Fixed
2017-07-19 12:45:06 +03:00
Nikolay Krasko
bcbff98382
Check OOB stays the same for string in super type constructor call
2017-07-19 12:45:06 +03:00
Pavel V. Talanov
5faad493b4
Catch and report exceptions from DependenciesResolver
2017-07-19 12:29:25 +03:00
Pavel V. Talanov
b1ac451959
Make sure template classpath is always among script dependencies
2017-07-19 12:29:15 +03:00
Pavel V. Talanov
1b42095dc1
Support @AcceptedAnnotations for different kinds of resolvers
2017-07-19 12:28:49 +03:00
Pavel V. Talanov
1c412b4068
AsyncDependenciesResolver: provide implementation for sync resolve
2017-07-19 12:28:46 +03:00
Pavel V. Talanov
10e14103b6
Propagate reports from script dependency resolver
...
Compiler: show as compiler messages
IDE: annotate code in a separate highlighting pass
2017-07-19 12:28:20 +03:00
Alexey Sedunov
eda747c0bf
Minor: Fix tests
2017-07-19 11:34:30 +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
865f9d4c7e
Wrong caption "Change to property access" for Quick Fix to convert class instantiation to object reference #KT-13870 Fixed ( #1189 )
2017-07-18 15:47:43 +02: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
Nikolay Krasko
f664ffb06b
Check correspondent call on end token for better step over (KT-18949)
...
#KT-18949 Fixed
2017-07-18 14:39:54 +03:00
Nikolay Krasko
d282f14eac
Don't add double linenumber when return expression is absent (KT-18949)
...
#KT-18949 Fixed
2017-07-18 14:39:54 +03:00
Nikolay Krasko
ce4f923ba0
Replace return with nop to avoid merging line instructions (KT-18949)
...
Dex ignores subsequent line numbers for same instructions and interprets
instruction after inline as if they were inlined. This makes debugger
behaves as if there's nowhere to stop on line with breakpoint.
This also makes stepping through inline function consistent with
non-inline analog. In both context debugger now stops on '}'.
#KT-18949 Fixed
#KT-17120 Fixed
2017-07-18 14:39:54 +03:00