Valentin Kipyatkov
2b3694a77e
Do not drop use of SAM-constructor when it's required for labeled return
2015-10-30 17:25:35 +03:00
Valentin Kipyatkov
891e033d5b
KT-9664 Add quickfix to convert a piece of code to pretty look SAM-style
...
#KT-9664 Fixed
2015-10-27 15:07:59 +03:00
Mikhail Glukhikh
d6988ad69e
Get rid of FIELD_IDENTIFIER at syntax level, two errors dropped, a set of tests fixed / deleted #KT-9539 Fixed
2015-10-21 16:36:55 +03:00
Pavel V. Talanov
3a34dc0efe
minor: fixes in test data
...
(cherry picked from commit 6ea4fbd)
2015-10-19 16:03:16 +03:00
Dmitry Petrov
149e70aa07
Dropping package facades:
...
- light classes: do not generate light class for package facade
- drop package facades as multifile classes compilation mode support
- get rid of some additional package facade fqName usages
- update tests for light classes
2015-10-19 16:03:16 +03:00
Alexey Sedunov
6f5d977728
Inspections: Add inspection on equals()/hashCode()
2015-10-17 00:24:39 +03:00
Valentin Kipyatkov
c8135fe4f2
Removed obolete syntax for enum entries in test data
2015-10-15 19:20:08 +03:00
Valentin Kipyatkov
090ea37a32
Fixed test data to use only annotation syntax with @
2015-10-15 19:20:08 +03:00
Alexander Udalov
6a965c9a06
Update IDE tests to use KProperty instead of PropertyMetadata
2015-10-14 20:45:55 +03:00
Denis Zharkov
f0e3fd617d
Adjust testData to CharSequence.length transformation
2015-10-14 20:39:35 +03:00
Yan Zhulanow
528482f625
Deprecated conventions (get -> getValue, plus -> unaryPlus) quickfix
2015-10-14 19:10:36 +03:00
Andrey Breslav
8e7f6f3c8c
Migrated from @HiddenDeclaration to @Deprecated(..., level = DeprecationLevel.HIDDEN)
2015-10-13 13:50:16 +03:00
Yan Zhulanow
1f2b4e20fe
Replace get() and set() to getValue() and setValue() (property delegates)
2015-10-09 22:49:16 +03:00
Dmitry Jemerov
07d3ab792a
enable infix quickfix in cleanup
2015-10-09 17:43:27 +02:00
Pavel V. Talanov
c28107034a
Idea tests: INSTANCE$ -> INSTANCE
2015-10-09 16:25:17 +03:00
Dmitry Jemerov
45d1129dbb
quickfix to move type constraint to 'where' clause
2015-10-08 17:09:58 +02:00
Alexey Sedunov
e8e0f2d7e1
Unused Symbol: Check descriptor before creating light class to prevent InvalidMirrorException on red code
2015-10-08 13:15:20 +03:00
Dmitry Jemerov
1fdf08bec5
quickfix to migrate function type parameter lists to new syntax
2015-10-06 16:20:48 +02:00
Alexander Udalov
d83ed11cd9
Add "add type to callable reference LHS" quickfix to Code Cleanup
2015-10-05 09:18:48 +03:00
Zalim Bashorov
fca9b51548
Revert "extend test for code cleanup with changing visibility from private to internal for declarations, which are used outside of their file."
...
This reverts commit 9fd968d59e .
2015-10-01 14:57:26 +03:00
Mikhail Glukhikh
3ad628522a
ReplaceWith now functions correctly in built-ins #KT-9351 Fixed
2015-09-28 15:38:05 +03:00
Dmitry Jemerov
3d0e91065a
quickfix for usages of operators that don't have the proper annotation
2015-09-25 20:00:29 +02:00
Dmitry Jemerov
250456ab4b
add quickfix for NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION
2015-09-25 19:14:52 +02:00
Dmitry Jemerov
dadef12723
backing field migration fixes
2015-09-25 18:25:36 +02:00
Denis Zharkov
3f6cadf9b7
Change FUNCTION_EXPRESSION_WITH_NAME severity to ERROR
...
Also drop deprecation related parts and get rid of usages of this `feature` within testData
2015-09-25 08:29:26 +03:00
Denis Zharkov
c6377a0664
Drop everything related to lambda syntax deprecation
2015-09-25 08:29:26 +03:00
Dmitry Jemerov
4ca434da54
remove support for 'trait' keyword
2015-09-22 15:00:24 +02:00
Valentin Kipyatkov
5d09edb3e6
Adapted code cleanup feature implementation to the recent changes in IDEA
2015-09-18 15:44:16 +03:00
Denis Zharkov
38bafaa35c
Drop annotations deprecation related things: diagnostics, quickfixes
2015-09-18 09:34:25 +03:00
Michael Nedzelsky
9fd968d59e
extend test for code cleanup with changing visibility from private to internal for declarations, which are used outside of their file.
2015-09-10 16:50:47 +03:00
Denis Zharkov
372e35436a
Implement annotation related migrational quick fixes
2015-09-10 10:04:59 +03:00
Denis Zharkov
31244edec9
Deprecate deprecated in favor of Deprecated
2015-09-04 18:19:31 +03:00
Valentin Kipyatkov
b2ea369129
Don't report conflicting extension for marked with @HiddenDeclaration
2015-09-03 15:55:56 +03:00
Valentin Kipyatkov
10f7d6d7dd
Inspection (and quickfix) for extension propeties conflicting with synthetic ones
2015-09-03 15:55:54 +03:00
Nikolay Krasko
1132652026
Update to 142.4245.2: Temprorary modify test data after IDEA update
...
The problem is in order of cleanup actions. Each action can invalidate psi and that can prevent next action from execution.
2015-09-02 15:10:43 +03:00
Valentin Kipyatkov
e98edbcbac
Code cleanup to remove deprecated symbol imports that have ReplaceWith
2015-08-31 15:48:25 +03:00
Natalia Ukhorskaya
bf7f56d458
Redundant Sam Constructor inspection
2015-08-24 12:37:37 +03:00
Evgeny Gerashchenko
4b6991603f
Minor. Split test file into two.
2015-08-15 12:29:46 +02:00
Evgeny Gerashchenko
799368386b
KT-6877 Wrong unused function inspection on anonymous object member
...
#KT-6877 fixed
2015-08-15 12:29:46 +02:00
Evgeny Gerashchenko
da4be8a0f5
KT-7484 Companion object is marked unused if it's only usages are statically imported from Java
...
#KT-7484 fixed
2015-08-15 12:29:44 +02:00
Evgeny Gerashchenko
fe1d4e38b3
KT-8273 Don't mark serialVersionUID as unused
...
#KT-8273 fixed
2015-08-15 12:29:42 +02:00
Evgeny Gerashchenko
1cf433909b
Test for KT-7134 Command line entry point (main function is highlighted as unused)
...
#KT-7134 obsolete
2015-08-15 12:29:12 +02:00
Mikhail Glukhikh
3f14e74b08
Drop old enum syntax. Comma / semicolon are now a syntactic part of enum entry.
...
Comma must present now between enum entries, semicolon between last entry & first member, constructor calls must be without colons / specifiers.
A swarm of tests fixed accordingly.
2015-08-11 10:38:10 +03:00
Valentin Kipyatkov
851057a9ef
Highlighting duplicated and redandant *-imports as unused
2015-07-22 21:16:15 +03:00
Valentin Kipyatkov
af192698ed
Imports from current package are redundant too
2015-07-22 21:11:00 +03:00
Valentin Kipyatkov
344529a09a
Fixed test
2015-07-22 21:11:00 +03:00
Valentin Kipyatkov
e5d8eecc9d
Unused import highlighting
...
#KT-5236 Fixed
2015-07-22 21:11:00 +03:00
Alexander Udalov
636b63a8c5
Make "reflection not found" a warning, provide a quick fix
...
Reporting the warning on each "::", as ReflectionNotFoundInspection did, is not
correct anymore, because for example name/get/set on properties works perfectly
without kotlin-reflect.jar in the classpath. So instead we report the warning
on calls to functions from reflection interfaces. This is not perfect either
because it's wrong in projects with custom implementations of reflection
interfaces, but this case is so rare that the users can suppress the warning
there anyway
#KT-7176 Fixed
2015-07-10 20:10:11 +03:00
Evgeny Gerashchenko
8fcbd44ad4
KT-8137 AE at JetSourceNavigationHelper.convertNamedClassOrObject() on function local class with several constructor parameters
...
#KT-8137
#EA-69470 fixed
2015-07-01 19:43:54 +03:00
Evgeny Gerashchenko
b068a1dd5f
Added test for implicit receiver in class.
2015-06-17 13:14:07 +03:00