Commit Graph

17466 Commits

Author SHA1 Message Date
Mikhail Glukhikh 6d39eb9239 Unnecessary parentheses in function call with lambda: simplify
Related to KT-23452
2018-05-22 16:18:42 +03:00
Toshiaki Kameyama b8f3d588b7 Unnecessary parentheses in function call with lambda: fix false positive
So #KT-23452 Fixed
2018-05-22 15:45:02 +03:00
Mikhail Zarechenskiy 1b809413d2 [NI] Fix updated type for lambda, use original type for substitution
#KT-24367 Fixed
2018-05-21 17:56:11 +03:00
Toshiaki Kameyama 5564102a3e Add "Create secondary constructor" quick fix on NONE_APPLICABLE error #KT-22371 Fixed 2018-05-18 18:11:13 +03:00
Toshiaki Kameyama d32b53362d Reformat UnusedReceiverParameterInspection 2018-05-18 18:11:13 +03:00
Alexey Sedunov d2bfb8caec Configuration: Add migration of JPS project to new non-jvm source roots 2018-05-18 12:09:40 +03:00
Alexey Sedunov 9fa26c83b6 Configuration: Introduce special source roots for non-JVM Kotlin modules
#KT-5948 Fixed
 #KT-23672 Fixed
2018-05-18 12:09:40 +03:00
Alexey Sedunov 1fb1431257 Configuration: Setup project settings even if library is not detected
#KT-22305 Fixed
2018-05-18 12:09:39 +03:00
Alexey Sedunov eb14625851 Configuration: Detect platform of libraries added via maven artifact ids
#KT-20511 Fixed
2018-05-18 12:09:39 +03:00
Alexey Sedunov 06f9be1899 Configuration: Unify presentable names of Kotlin configurators
#KT-23658 Fixed
2018-05-18 12:09:39 +03:00
Alexey Sedunov 4a98f1dccc Misc: Follow-up fixes for 172/182 bunches 2018-05-18 12:09:38 +03:00
Nikolay Krasko 580e2972db Initial settings for incompatible API inspection 2018-05-17 12:27:30 +03:00
Nikolay Krasko 3ef67e1d9d Inspection for highlighting problem API usage
It's planned to use this inspection for show patchset branches problems
during development process.
2018-05-17 12:27:29 +03:00
Nikolay Krasko 0acb7d8200 Minor: reformat files 2018-05-17 12:27:28 +03:00
Alexander Udalov ffa6b6233b Minor, make BinaryVersion.numbers private
Use BinaryVersion.toArray instead, as in all other usages
2018-05-16 17:16:22 +02:00
Alexander Udalov 1b15619457 Move BinaryVersion to metadata, JVM versions to metadata.jvm
To be used in kotlinx-metadata
2018-05-16 17:16:22 +02:00
Mikhail Glukhikh 6a1ddd6c70 Lambda to anonymous: report only from left brace to arrow 2018-05-16 13:01:38 +03:00
Mikhail Glukhikh f4acaae364 Lambda to anonymous: use type renderer & shorten references 2018-05-16 13:01:38 +03:00
Mikhail Glukhikh 0f2879aa32 Rename: SOURCE_CODE_SHORT_NAMES_IN_TYPES -> *_SHORT_NAMES_NO_ANNOTATIONS 2018-05-16 13:01:37 +03:00
Mikhail Glukhikh 06f7e77006 Introduce new type renderers (no parameters & built-in annotations) 2018-05-16 13:01:37 +03:00
Mikhail Glukhikh 1ba99fde56 "lambda to anonymous": add tests for qualified types (KT-7710) 2018-05-16 13:01:37 +03:00
Mikhail Glukhikh 257664cf1b Make "lambda to anonymous" low-priority (KT-7710) 2018-05-16 13:01:36 +03:00
Mikhail Glukhikh bd6fdb743c Lambda to anonymous function: use callable builder (KT-7710) 2018-05-16 13:01:36 +03:00
Toshiaki Kameyama 8a20d1bf01 Add intention to convert lambda to anonymous function #KT-7710 Fixed 2018-05-16 13:01:36 +03:00
Nikolay Krasko 8ef4b9a8e1 Don't show type hierarchy for elements without name 2018-05-16 12:55:09 +03:00
Nikolay Krasko 062a212b61 Don't build light classes for local classes with parse errors (KT-24323, EA-107235)
Also use checks for building light classes in `getLightClassDataHolder`.
2018-05-16 12:55:09 +03:00
Nikolay Krasko f2c642eefb Fight with valid absent, corrupted and missing files in archives (EA-119686)
Inspired by ClassFileViewProvider.
2018-05-16 12:55:08 +03:00
Ilya Chernikov b2bda5c017 Enumerate roots for script definitions only if project is initialized
fixes #KT-23805
2018-05-15 19:27:09 +02:00
Mikhail Glukhikh bec1ae3d94 Reformat: replace with operator assignment 2018-05-15 13:28:08 +03:00
Mon_chi c49eaf2604 Fix hint text for replace with operator assignment #KT-23559 Fixed 2018-05-15 13:26:23 +03:00
Mikhail Glukhikh 8c3e787584 Convert KFunction to Function in type mismatch fixes #KT-16770 Fixed 2018-05-15 13:22:48 +03:00
Mikhail Glukhikh 25609f1159 Create kotlin file: create abstract class if its name contains Abstract
So #KT-21844 Fixed
2018-05-15 11:30:32 +03:00
Mikhail Glukhikh 1f8e24fa82 Reformat: NewKotlinFileAction 2018-05-15 11:30:30 +03:00
Mikhail Glukhikh c61b5671c9 Fix testSuspend (protect it from flaky error about disabled coroutines) 2018-05-15 11:30:29 +03:00
Simon Ogorodnik 6967028fdb KT-24146: Fix inserts imports automatically
Even if "add unambiguous imports on the fly" is off

 #KT-24146 fixed
2018-05-14 17:28:16 +03:00
Natalia Selezneva 4ee41d502a Scratch: report errors at the correct line
^KT-24364 Fixed
2018-05-14 15:55:44 +03:00
Natalia Selezneva 6427c79110 Trim last newline in scratch output with REPL
^KT-24362 Fixed
2018-05-14 15:55:39 +03:00
Natalia Selezneva 02fa8b5bab Check for dumb mode before compiling scratch file
^KT-23560
2018-05-14 15:55:35 +03:00
Natalia Selezneva 57b24007ac Log exceptions thrown during Run Scratch Action 2018-05-14 15:55:30 +03:00
Natalia Selezneva 5148a51ea2 Minor: reformat 2018-05-14 15:55:26 +03:00
Nicolay Mitropolsky 31b21a7bc8 182: compilation fix due to quickFixActionMarkers made nullble 2018-05-14 15:05:03 +03:00
Vyacheslav Karpukhin e329af0932 Excluded declarations for classes in CIDR plugin.xml 2018-05-11 19:43:21 +02:00
Natalia Selezneva 4ee0f401c6 Fix master_172
Remove GradleScriptDefaultDependenciesProvider as unused
2018-05-11 18:46:54 +03:00
Mikhail Glukhikh 1012bdb577 Convert to primary constructor: minor enhancement (KT-19629) 2018-05-11 18:17:42 +03:00
Mikhail Glukhikh 67d2abbe5e Reformat: Convert to primary constructor 2018-05-11 17:36:41 +03:00
Toshiaki Kameyama a41064295b "Convert to primary constructor": do not move init section down
So #KT-19629 Fixed
2018-05-11 17:36:40 +03:00
Mikhail Glukhikh 9a1253c5c7 Specify type explicitly: suggest also types from overridden
So #KT-22092 Fixed
2018-05-11 17:36:38 +03:00
Mikhail Glukhikh bf15d22ef1 Reformat: SpecifyTypeExplicitlyIntention 2018-05-11 17:36:37 +03:00
Mikhail Glukhikh 13be7803bb Introduce "redundant async" inspection #KT-24235 Fixed 2018-05-11 17:36:35 +03:00
Mikhail Glukhikh 365c13c38e Extract AbstractCallChainChecker from SimplifiableCallChainInspection 2018-05-11 17:36:29 +03:00