Sergey Igushkin
e46b56acbc
Add @LocalState of buildServicesWorkingDir to KotlinCompile
2018-01-03 22:14:21 +03:00
Sergey Igushkin
627fe52858
Map compiler arguments to Gradle inputs.
2018-01-03 22:14:20 +03:00
Sergey Igushkin
a8ba8fbf77
Make pluginOptions.classpath a separate input in the Gradle tasks
...
(cherry picked from commit b03e758)
2018-01-03 22:14:20 +03:00
Sergey Igushkin
a752d30f12
Move CompilerArgumentAware to the <...>.internal package.
2018-01-03 22:14:20 +03:00
Sergey Igushkin
62f2876230
Refactor compiler arguments in Gradle tasks:
...
Pull create/setup args functions up to CompilerArgumentsAware interface
Remove diamond-shaped CompilerArgumentsAware inheritance
Provide the default implementation for serialization in the interface
Make KotlinJsDce implement CompilerArgumentsAware
Implement the compiler args logic for Kapt & GenerateStubs tasks
2018-01-03 22:14:20 +03:00
Toshiaki Kameyama
6b2c22aff1
Add intention to specify all types explicitly in destructuring assignment
...
#KT-16260 Fixed
2018-01-03 17:23:31 +01:00
Dmitry Jemerov
3529d61a7d
Exclude generated test classes from language statistics
2018-01-03 14:57:01 +01:00
Toshiaki Kameyama
eb12cfd444
KT-18674 Join Lines should join strings ( #1305 )
...
* Join Lines should join strings #KT-18674 Fixed
* #KT-18674 Fixed
2018-01-03 11:27:16 +01:00
Toshiaki Kameyama
16695c1af5
KT-21929 Inappropriate quick fix for a sealed class instantiation ( #1444 )
2018-01-03 11:20:58 +01:00
Toshiaki Kameyama
de185b79d0
KT-21780 Wrong redundant setter inspection ( #1453 )
2018-01-03 11:14:23 +01:00
Toshiaki Kameyama
640c28ceaf
KT-14670 Support kotlinPackageName() macro in live templates ( #1455 )
...
* KT-14670 Support kotlinPackageName() macro in live templates
* Use context.psiElementAtStartOffset.containingFile #KT-14670
2018-01-03 10:41:28 +01:00
Dmitry Jemerov
84d63051f9
Add a rule for invalid characters in names
2018-01-02 13:17:31 +01:00
Dmitry Jemerov
f83c5344d7
Apply same style for top-level and object properties
...
#KT-20437 Fixed
2018-01-02 12:46:03 +01:00
Dmitry Jemerov
1c7d97289b
Naming convention inspection for test functions
...
#KT-21547 Fixed
2018-01-02 12:46:02 +01:00
Dmitry Jemerov
37d2ff2d4d
Report more friendly messages from naming conventions inspection
...
#KT-19736 Fixed
2018-01-02 12:46:01 +01:00
Dmitry Jemerov
429bf5bb98
Reformat
2018-01-02 12:46:00 +01:00
Toshiaki Kameyama
79ff36592d
KT-15320 Live templates: please add function which returns the "outer" class name
2018-01-02 12:35:20 +01:00
Ilya Gorbunov
e2306ecf94
Keep exception primary constructors for binary compatibility in JS
...
Resort to a workaround for KT-22053 in direct Throwable inheritors.
2017-12-29 21:21:20 +03:00
Ilya Gorbunov
3825187e93
Update expected reachable node count
2017-12-29 21:20:59 +03:00
Ilya Gorbunov
a1f67e347f
Relax nullability of UninitializedPropertyAccessException constructor parameters
...
To make it consistent with other exception types
2017-12-29 21:16:17 +03:00
Ilya Gorbunov
4e26ca5659
Add missing exception constructors to common and JS declarations
...
Add test to validate exception properties after calling various constructors.
Make NumberFormatException a descendant of IllegalArgumentException in all platforms.
#KT-21861 Fixed
#KT-21191 Fixed
2017-12-29 21:16:17 +03:00
Ilya Gorbunov
496df371f4
Provide the guide for sample authoring
2017-12-29 20:42:46 +03:00
Pavel V. Talanov
03a8ce63b2
Scripts: fix any file deletion potentially leading to reindex
2017-12-29 20:14:59 +03:00
Dmitry Jemerov
25ea53457e
Send source code in exceptions as attachments, not text (common cases)
...
#KT-17678 In Progress
2017-12-29 15:35:53 +01:00
Toshiaki Kameyama
817dadc120
Specify type: do not suggest nullable type if not null is overridden
...
So #KT-12814 Fixed
2017-12-29 17:28:44 +03:00
Mikhail Glukhikh
50eaca1ac4
Add modifier fix: improve style a bit
2017-12-29 17:17:38 +03:00
Toshiaki Kameyama
184651d366
Do not suggest "add inner" quick fix for interfaces etc. #KT-18396 Fixed
2017-12-29 16:43:47 +03:00
Toshiaki Kameyama
84a6ef6ac4
Add inspection to detect is checks for object types #KT-21741 Fixed
2017-12-29 16:24:18 +03:00
Dmitry Jemerov
247881baf9
Apply style guide and enable reformat inspection
2017-12-29 13:51:53 +01:00
Mikhail Glukhikh
0df3ffbe36
Build fix: convert reference to lambda
...
Related to KT-19283 (fixes mistake in 3f005924 )
2017-12-29 14:36:10 +03:00
Dmitry Jemerov
896246a7f5
More cleanup after J2K
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
d0e8e176c4
Catch exceptions from decompiler service
...
EA-108937 - RE: InvocationExprent.toJava
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
9a61abfb9f
Don't add null module info to list
...
EA-113650 - TCE: LazyModuleDependencies.getModulesWhoseInternalsAreVisible
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
2c4180222a
Check if containing file is KtFile
...
EA-109460 - CCE: KtElementImplStub.getContainingKtFile
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
4b6efe3eb0
Take read action in KtLightParameter.isEquivalentTo()
...
EA-109775 - (OperatorReferencesSearcher) assert: PsiFileImpl.getStubTree
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
7f1dd88600
KtLightParameter: convert to .kt and cleanup
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
98d26ae59f
KtLightElementParameter: rename to .kt
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
cde84a7923
Handle I/O exceptions when updating library jars
...
EA-101940 - FNFE: FileUtil.openOutputStream
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
254f766aaf
Take longer read action in forEachKotlinOverride()
...
EA-114124 - assert: CompositeElement.getChildrenAsPsiElements
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
768fce4722
Check for project disposed when reporting outdated libraries
...
EA-106858 - assert: ComponentManagerImpl.getPicoContainer
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
cc2faa67f9
Don't pass null element to RefactoringFactory.createRename()
...
EA-114286 - IAE: RenameProcessor.$$$reportNull$$$
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
9a156541c1
Don't try to read attribute for files with no ID
...
(EA-114351 - CCE: PersistentFSImpl.getFileId)
2017-12-29 10:19:50 +01:00
Toshiaki Kameyama
5e765c525e
Do not suggest quickfix 'Specify type explicitly' with existing type
...
So #KT-15180 Fixed
2017-12-28 21:06:48 +03:00
Mikhail Glukhikh
5475f99cec
Elvis -> if-then: handle case with safe cast separately #KT-17816 Fixed
2017-12-28 20:31:55 +03:00
Mikhail Glukhikh
ec60c92fe9
Lambda -> reference: build bound reference for complex qualified
...
So #KT-19073 Fixed
2017-12-28 20:31:53 +03:00
Mikhail Glukhikh
73bca21f94
Allow using add modifier quick-fixes in batch mode #KT-21950 Fixed
2017-12-28 20:31:47 +03:00
Mikhail Glukhikh
2e71691ab2
Fix potential leak in "unused lambda expression body" fix
2017-12-28 20:31:45 +03:00
Mikhail Glukhikh
8e23ca597d
Add extra tests for KT-20429, simplify code a bit
2017-12-28 20:31:44 +03:00
Toshiaki Kameyama
a65304556c
CFG: provide "used as expression" in enum constant constructor
...
This allows to avoid
"unused return value of a function with lambda expression body"
for such a situation
So #KT-20429 Fixed
2017-12-28 20:31:42 +03:00
Mikhail Glukhikh
e10fa218f5
Extend range of "use expression body" to left brace..end of return
...
Range is extended iff we are in DO_NOT_SHOW case,
otherwise just return is highlighted to avoid ugly highlighting
So #KT-19771 Fixed
2017-12-28 20:31:41 +03:00