Dmitry Jemerov
be15ee3c03
Add "Wrap extends/implements list" option
2017-07-07 16:48:30 +02:00
Dmitry Jemerov
722cc521a9
Add "Blank lines before }" option
...
#KT-15504 Fixed
2017-07-07 16:48:30 +02:00
Dmitry Jemerov
5c8a90fe85
"Blank lines after class header" option supported
2017-07-07 16:48:30 +02:00
Dmitry Jemerov
6a96ade02c
Options for blank lines between 'when' branches
...
#KT-18607 Fixed
2017-07-07 16:48:29 +02:00
Dmitry Jemerov
8fe2858c6a
Option to use normal indent in chained calls
...
#KT-18605 Fixed
2017-07-07 16:48:29 +02:00
Simon Ogorodnik
d8bb0b1023
KT-16999: Fix duplicates in parameter info
...
Use ShadowedDeclarationFilter in Parameter Info
#KT-16999 fixed
2017-07-07 17:40:32 +03:00
nd
58e5c497d0
Intention to replace add/addAll on a mutable collection with += ( #1143 )
2017-07-07 16:34:20 +02:00
nd
fae8efdc7f
Handle unsafe implicit invoke on array access expression ( #1151 )
2017-07-07 16:29:11 +02:00
Dmitry Jemerov
8cc9195fae
Merge remote-tracking branch 'origin/master'
2017-07-07 13:26:59 +02:00
Dmitry Jemerov
9dc4183a16
Fix tests affected by the inspection behavior change
2017-07-07 13:25:59 +02:00
Mikhail Zarechenskiy
0ae45a2835
Add test for obsolete issue
...
#KT-6502 Obsolete
2017-07-07 14:20:01 +03:00
Mikhail Zarechenskiy
c853ac95ad
Improve diagnostic message for annotations with @receiver
...
#KT-14647 Fixed
2017-07-07 14:19:59 +03:00
Dmitry Jemerov
1de685949b
Merge branch 'KT-18797' of https://github.com/nd/kotlin
2017-07-07 13:02:02 +02:00
Vyacheslav Gerasimov
ee53e81e8e
Fix Android resource reference folding
...
Properly fold qualified expressions and handle nested references
#KT-18429 Fixed
2017-07-07 03:24:03 +03:00
Vyacheslav Gerasimov
2ec1a4311a
Implement Kotlin configurator for GSK
...
#KT-14965 Fixed
2017-07-07 03:23:17 +03:00
Simon Ogorodnik
9f340b40c2
Minor: Add test to check inferred types shown correctly in parameter info
...
#KT-11858 Obsolete
2017-07-06 20:40:53 +03:00
Alexander Udalov
e8a8bdc58e
Add test on cyclicly dependent Java 9 modules
2017-07-06 13:01:12 +03:00
Alexey Sedunov
994b6d687c
Find Usages: Use MethodReferencesSearch to find constructor usages
2017-07-04 19:37:55 +03:00
Dmitry Neverov
08afaca518
Don't propose making property private if it's used in inline function
2017-07-03 21:58:22 +02:00
Denis Zharkov
5141a88a53
Add TypeQualifier annotation to IDE test data
...
Othewise nullability is not processed correctly
2017-07-03 17:55:37 +03:00
Dmitry Neverov
4f678fa85c
Do not suggest !! on expression which is always null
...
Related to KT-14643
2017-07-03 15:14:11 +03:00
Dmitry Neverov
66bd9d63dd
Do not suggest adding !! on null constant #KT-14643 Fixed
2017-07-03 15:13:46 +03:00
Simon Ogorodnik
ab919886ae
Fix rendering of local anonymous object types for quick doc
...
#KT-8893 fixed
2017-07-01 15:04:29 +03:00
Alexey Sedunov
9ba868a903
Minor: Fix test data
2017-06-30 13:53:09 +03:00
Alexey Sedunov
88968807b2
Generate equals/hashCode(): Swap class literals in comparison
2017-06-29 17:42:20 +03:00
Alexey Sedunov
e3e4c447fa
Generate equals/hashCode(): Use class literals when possible
...
#KT-18683 Fixed
2017-06-29 17:42:18 +03:00
Alexey Sedunov
50a38df8b1
Remove Parentheses: Forbid on call inside a call without argument list
...
#KT-18699 Fixed
2017-06-29 17:42:17 +03:00
Alexey Sedunov
2e8b374ce8
Move: Use KtNamedDeclaration as referrer when reporting a conflict
...
EA-103817 Fixed
2017-06-29 17:42:15 +03:00
Alexey Sedunov
6060a39494
Change Signature: Use correct index in getOriginalParameter()
...
#KT-18642 Fixed
#KT-18606 Fixed
2017-06-29 17:42:09 +03:00
Nikolay Krasko
df393e18fe
Configure AbstractInspectionTest with project descriptors
...
Previous implements produced flaky tests when non-js tests were
executed after js.
2017-06-29 16:56:15 +03:00
Mikhail Glukhikh
fdca96634e
Add restrictions for "simplifiable call chain" inspection
...
Do not use on maps; do not suggest for lambdas with return inside
Related to KT-18274
2017-06-29 16:25:55 +03:00
Mikhail Glukhikh
36be1fdaef
Introduce "simplifiable call chain on collection" inspection
...
Related to KT-12165
So #KT-18274 Fixed
So #KT-17198 Fixed
2017-06-29 16:25:52 +03:00
Mikhail Glukhikh
bdb9f00c75
Introduce "Useless call on collection type" inspection
...
Related to KT-12165
Supported functions: filterNotNull, filterIsInstance,
mapNotNull, mapNotNullTo, mapIndexedNotNull, mapIndexedNotNullTo
Also, "Useless cal on not-null" improved a bit
2017-06-29 16:25:50 +03:00
Mikhail Glukhikh
f80f41d254
Introduce "redundant explicit type" inspection #KT-18517 Fixed
...
Reported cases: constants, constructors, object references
2017-06-29 16:25:47 +03:00
Mikhail Glukhikh
0f4ae3b727
Introduce "Useless call on not-null type" inspection #KT-18386 Fixed
...
Supported functions: orEmpty(), isNullOrEmpty(), isNullOrBlank()
2017-06-29 16:25:45 +03:00
Alexander Udalov
f8346d21c2
Check type alias expansion for Java 9 module accessibility
...
#KT-18598 In Progress
2017-06-29 15:59:57 +03:00
Alexander Udalov
8768500844
Fix incorrect behavior and refactor JvmModuleAccessibilityChecker
...
Previously we assumed that a symbol is accessible if its containing
package is exported by module-info.java. Which was obviously wrong and
could lead to a situation where a symbol would be incorrectly accessible
if a usage module has a dependency on the symbol's module in IDEA
project terms, but does not require it in its module-info.java
#KT-18598 In Progress
2017-06-29 15:59:57 +03:00
Alexander Udalov
e32880d9a3
Implement Java 9 module visibility checks
...
In this commit, only IDE tests are added, because we look for module
declarations in the IDE across the whole project, whereas in the
compiler we should do this on the module path only and that requires
separate work (KT-18599) which is done in the following commits.
(The change in Cache.kt is needed so that
JvmModuleAccessibilityChecker.ClassifierUsage, which is an inner class,
would be injected properly.)
#KT-18598 In Progress
#KT-18599 In Progress
2017-06-29 15:59:56 +03:00
Dmitry Neverov
3e29f9ed5a
Don't report as redundant 1st semicolon in enum without entries
...
So #KT-12524 Fixed
2017-06-28 15:30:40 +03:00
Toshiaki Kameyama
3a606d13f0
Extends range of change visibility intention #KT-14093 Fixed
2017-06-28 15:28:50 +03:00
Dmitry Neverov
44ce5f73f7
Apply De Morgan's laws to non-negated binary expressions
...
So #KT-18460 Fixed
2017-06-28 15:28:43 +03:00
Toshiaki Kameyama
af53a0ecd5
Add quick-fix "Replace with safe call & elvis" #KT-17815 Fixed
2017-06-28 15:28:35 +03:00
Toshiaki Kameyama
c2707bb81b
Support cascade if / when in lift return / assignment intentions
...
So #KT-13458 Fixed
So #KT-13436 Fixed
2017-06-28 15:28:28 +03:00
Toshiaki Kameyama
ed04b4debd
Add quick-fix for empty brackets after primary constructor
...
So #KT-18534 Fixed
2017-06-28 15:28:21 +03:00
Denis Zharkov
bc564af2fc
Regenerate mockJDK using openJDK 7
2017-06-24 17:26:01 +03:00
Nikolay Krasko
87889904ee
Allow only one invoke to be a target for smart step into (KT-18632)
...
It's difficult to distinguish such calls reliably in debug session
#KT-18632 Fixed
2017-06-23 21:33:26 +03:00
Mikhail Glukhikh
c99db11ace
Visibility can be private: do not perform too expensive search
...
Also, additional test for usage via accessor was added
So #KT-18617 Fixed
2017-06-23 18:15:20 +03:00
Nikolay Krasko
502ac80b89
Do not skip invoke call on parameters during smart step into (KT-18577)
...
#KT-18577 Fixed
2017-06-23 13:47:33 +03:00
Alexey Sedunov
9681f5ca42
Generate equals/hashCode(): Enable for classes without properties
...
Also:
- forbid for enum classes
- use javaClass.hashCode() instead of 0 if class has no properties
#KT-18418 Fixed
2017-06-22 19:50:55 +03:00
Alexey Sedunov
895407f5e3
Rename: Do not silently rename all parameters in function hierarchy
...
#KT-18325 Fixed
2017-06-22 19:50:54 +03:00