Valentin Kipyatkov
0a5255ee4e
Dropped inspection for functions matching operator convention - only intention left
2015-10-19 18:36:06 +03:00
Pavel V. Talanov
bb77890a4e
Drop DeprecatedFacadeUsageInspection
...
(cherry picked from commit f18b95d)
2015-10-19 16:03:17 +03:00
Mikhail Glukhikh
a4af6a3076
data deprecations (empty constructors, non val/var arguments, vararg, superclasses) are now errors, relevant tests fixed
2015-10-19 15:24:28 +03:00
Valentin Kipyatkov
563ad4bab2
Added test
2015-10-19 09:43:12 +03:00
Valentin Kipyatkov
5ce0ed37b1
Moved file to another package
2015-10-19 09:43:12 +03:00
Valentin Kipyatkov
d1de2f65c9
Rewritten AddOperatorModifierInspection to be based on an intention (shouldn't we drop the inspection at all?)
2015-10-19 09:43:12 +03:00
Yan Zhulanow
9ae3b0fa9c
Drop loading Java annotation methods as functions
2015-10-16 22:13:34 +03:00
Valentin Kipyatkov
090ea37a32
Fixed test data to use only annotation syntax with @
2015-10-15 19:20:08 +03:00
Pavel V. Talanov
d603142cc6
Provide inspection and quickfixes for usages of static fields which will be no longer accessible in future versions
...
For this inspection three kinds of fixes are potentially available:
- Add 'const' modifier to kotlin property
- Add '@JvmField' annotation to kotlin property
- Change field reference to getter invocation
In case user chooses to 'cleanup code', these fixes are prioritized in this order
2015-10-14 14:42:26 +03:00
Andrey Breslav
4f63d47f82
Intention action for hiddnen declarations fixed
2015-10-13 01:45:02 +03:00
Valentin Kipyatkov
cbf4e4a973
Corrected order of modifier insertion
2015-10-12 15:10:39 +03:00
Dmitry Jemerov
23e13d4043
fix type parameter migration for extension functions
2015-10-12 13:45:44 +02:00
Pavel V. Talanov
f4ef9647b1
Idea: add quick fix for replacing usages of deprecated "INSTANCE$" field
2015-10-09 16:25:19 +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
012a2971ff
Quick-fix to add type to LHS of incorrect callable references
2015-10-03 04:37:05 +03:00
Dmitry Jemerov
ee1175d5e5
fix 'operator' modifier inspection
...
#KT-9349 Fixed
2015-09-28 14:35:41 +02:00
Dmitry Jemerov
8b0ccce4f1
code review; add 'operator' also to next() and hasNext(); check toplevel functions
2015-09-25 20:00:28 +02:00
Dmitry Jemerov
41d1cf6083
check return type of contains() and compareTo()
2015-09-25 20:00:26 +02:00
Dmitry Jemerov
bda0bd1de1
quickfix to add 'operator' keyword to operator-like functions
2015-09-25 20:00:19 +02:00
Dmitry Jemerov
32e6a6e3a1
inspection and quickfix to replace usages of deprecated package facades
2015-09-25 18:29:06 +02:00
Dmitry Jemerov
e1acc8744d
"introduce backing property" intention
2015-09-25 18:25:37 +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
Denis Zharkov
9dada595b6
Replace deprecated annotations with modifiers in testData
2015-09-18 10:14:41 +03:00
Denis Zharkov
bae3320d52
Get rid of deprecated annotations in testData
2015-09-18 10:14:32 +03:00
Denis Zharkov
38bafaa35c
Drop annotations deprecation related things: diagnostics, quickfixes
2015-09-18 09:34:25 +03:00
Denis Zharkov
372e35436a
Implement annotation related migrational quick fixes
2015-09-10 10:04:59 +03:00
Valentin Kipyatkov
16650e8f5c
Conflicting extension is recognized as redundant for setter with expression body
2015-09-03 15:55:57 +03:00
Valentin Kipyatkov
086d29a44a
Added second quickfix on conflicting extension to mark it hidden and deprecated
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
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
Denis Zharkov
e3c3af6aab
Change MISSING_CONSTRUCTOR_KEYWORD severity to error
...
And adjust testData
2015-06-12 11:23:13 +03:00
Denis Zharkov
980499e331
Drop javaClass in annotations related things from inspections/quickfixes
2015-06-12 09:55:09 +03:00
Denis Zharkov
26864a4407
Get rid of annotation syntax deprecation related things
2015-06-12 09:23:32 +03:00
Denis Zharkov
c9f79c2d05
Adjust testData: get rid of obsolete annotations
2015-06-12 09:23:31 +03:00
Pavel V. Talanov
07d35d305e
Create import list psi element even if no directives are present
...
Fix a problem where deleting last import directive via "optimize imports" could lead to incorrect psi structure resulting in CCE, see EA-64291
New imports are inserted at the head (after package directive if present) of the file (before any comments) if no imports were present
Add test for inserting import to file where a first statement is a comment
Drop code dealing with non-existing import list in ImportInsertHelperImpl
AbstractQuickFixTest: check for unexpected actions before changes to the file are made as it relies on the first line having specific format
2015-06-08 20:51:04 +03:00
Denis Zharkov
53e9234ea9
Add quickfix for replacing positioned arguments in Java annotation
2015-05-27 17:41:27 +03:00
Valentin Kipyatkov
0a886320ca
JetWholeProjectForEachElementOfTypeFix - not too much duplicating string arguments
2015-05-27 16:15:45 +03:00
Valentin Kipyatkov
0dc92c3ee8
QuickFixMultiFileTestGenerated - shorter test data files names
2015-05-27 16:15:44 +03:00
Denis Zharkov
cab2328b64
Do not insert type parameters when replacing javaClass with T::class
...
Type parameters are invalid for class literal unless class is `Array`
2015-05-27 08:24:57 +03:00
Denis Zharkov
87be626848
Add quickfix for deprecated labels syntax
2015-05-20 09:24:57 +03:00
Denis Zharkov
5b1f3080d3
Add quickfix removing names of function expressions
2015-05-20 09:24:57 +03:00
Denis Zharkov
b650753643
Change formatting of function expressions without names
...
No spaces between 'fun' and value parameter list
2015-05-20 09:24:56 +03:00
Denis Zharkov
89337ff51e
Change deprecation rules for annotations in brackets
...
Also adjust quickfix for deprecated syntax
2015-05-20 09:24:56 +03:00
Denis Zharkov
a9c1c3edb6
Add quickfix for missing 'constructor' inside primary ctor
2015-05-20 09:24:55 +03:00
Mikhail Glukhikh
3585c45f70
Fixed a quick fix for enum entry delimiters: situation with following comments. Three new tests. isAvailable().
2015-05-19 11:22:57 +03:00
Mikhail Glukhikh
6342b98592
Fixed a quick fix for enum entry short super constructor syntax (situation with a preceding comment / annotation). Four extra tests. isAvailable().
2015-05-19 11:22:34 +03:00
Dmitry Jemerov
dc9523016a
report 'trait' keyword as deprecated, provide quickfix for replacing with 'interface'
2015-05-15 18:20:39 +02:00