Commit Graph

39963 Commits

Author SHA1 Message Date
Alexey Andreev 811da2e285 Compile stdlib-js with source map 2017-07-09 14:22:08 +03:00
Ilya Chernikov 25c731241b Fix parallel daemon start test reporting 2017-07-08 18:16:29 +02:00
Ilya Chernikov 21eed9ee78 Get rid of kotlin.Unit usage in RMI interfaces
attempt to fight mysterous "Cannot instantiate kotlin.Unit" exception.
2017-07-08 18:16:29 +02:00
Ilya Chernikov 06d27a9efa Fix failing tests on TC on Windows by falling back to standard launcher
...in one more case
Plus some minor test tweaks, diagnostics improvement and important comments
2017-07-08 18:16:28 +02:00
Ilya Chernikov e4ed217a3b Add missing explicit serialVersionUID to the REPL API classes 2017-07-08 18:16:27 +02:00
Ilya Chernikov 8542e878f7 Refactor daemon periodic check and shutdown logic
Cleaner logic and logging, improved stability during shutdown, reduced
overhead of the periodic checks, and regular calls, should also eliminate
dying daemons scenario on parallel execution (another attempt to do it).
2017-07-08 18:16:26 +02:00
Ilya Chernikov 2c35675fd6 Refactor daemon parallel start test to improve diagnostics
also add daemon info to the RPC
and remove redundant daemon stopping calls, that should speed up
tests execution
2017-07-08 18:16:26 +02:00
Ilya Chernikov e2d2c5ff42 Refactor daemon startup for better logging and cleaner code 2017-07-08 18:16:25 +02:00
Ilya Chernikov 2ec2a08753 Implement advanced gradle script template selection in the provider, improve diagnostics 2017-07-08 18:16:24 +02:00
Ilya Chernikov ebcac3dd01 Use renamed Gradle Kotlin DSL template in the provider when available 2017-07-08 18:16:24 +02:00
Pavel V. Talanov bf09d91e80 script.runtime: restore old apis and mark as deprecated
Needed for compatibility (i.e. with old gradle kdsl versions)
2017-07-08 15:10:46 +03:00
Pavel V. Talanov 20be924bbb script.runtime: update api
- Clean up some api inconsistencies
 - Provide experimental async resolver to allow cleaner async updates of dependencies
2017-07-08 15:10:45 +03:00
Alexander Udalov 127cd1295e Disable JSR-305 annotations by default, introduce CLI argument
No package annotations are going to be loaded, and
TypeQualifierDefault/TypeQualifierNickname are no longer recognized by
default. Use the CLI argument "-Xload-jsr305-annotations" to enable this
behavior back

 #KT-10942
2017-07-07 22:08:50 +03:00
Mikhail Glukhikh 522f67fda0 Severity is softened for some style issues 2017-07-07 18:15:38 +03:00
Mikhail Glukhikh a960fa78cb Use expression body: add new line more accurately 2017-07-07 18:15:36 +03:00
Mikhail Glukhikh b0fda5f451 Lift return out fix: do not suggest for labeled returns 2017-07-07 18:15:35 +03:00
Mikhail Glukhikh 41893736df Cleanup: make single KtExpression.isElseIf 2017-07-07 18:15:34 +03:00
Mikhail Glukhikh a6f0b7c7a4 Preferred style inspections: WEAK WARNING -> INFO 2017-07-07 18:15:33 +03:00
Mikhail Glukhikh 1d2017b0fc Cleanup: apply "cascade if..." inspection (+ some others) 2017-07-07 18:15:32 +03:00
Mikhail Glukhikh 9c06739594 Cleanup: apply "lift out..." inspection (+ some others) 2017-07-07 18:15:30 +03:00
Mikhail Glukhikh 0c41ceea9d "Cascade if" inspection: do not suggest for one-line if 2017-07-07 18:15:28 +03:00
Mikhail Glukhikh 0fe9030eba "Cascade if" inspection: don't highlight for complex logical conditions
Related to KT-18615
2017-07-07 18:15:27 +03:00
Mikhail Glukhikh 8273eff1a1 Introduce "cascade if" inspection suggesting replacement with when
So #KT-18615 Fixed
2017-07-07 18:15:26 +03:00
Mikhail Glukhikh 1ddaee5b4a "Lift return / assignment": don't highlight if other returns available 2017-07-07 18:15:24 +03:00
Mikhail Glukhikh 691b733c55 "Lift return / assignment": do not suggest for else arguments 2017-07-07 18:15:22 +03:00
Mikhail Glukhikh 042990dda1 "Lift return / assignment": do not suggest for too long expressions 2017-07-07 18:15:21 +03:00
Mikhail Glukhikh 398f92dc6f Lift assignment out: do not suggest if other assignments available
So #KT-18709 Fixed
2017-07-07 18:15:20 +03:00
Mikhail Glukhikh 9c4dfa3343 Lift return out: do not suggest for lambda in return #KT-18711 Fixed 2017-07-07 18:15:18 +03:00
Mikhail Glukhikh c0d10264bc Lift assignment out: do not highlight for exactly one assignment
Related to KT-14900
2017-07-07 18:15:17 +03:00
Mikhail Glukhikh 1010ecca8c Lift return out: do not report for zero returns
Also, do not highlight (but suggest fix) for exactly one return
Related to KT-14900
2017-07-07 18:15:16 +03:00
Mikhail Glukhikh 2deef48b84 Cleanup code: BranchedFoldingUtils 2017-07-07 18:15:15 +03:00
Mikhail Glukhikh 2d1abda9a1 Convert "lift return / assignment" intentions into a single inspection
Also includes minor test fix, related to KT-14900
2017-07-07 18:15:14 +03:00
Mikhail Glukhikh 8f33bd0768 Handle break / continue / throw in lift return / assignment intentions
So #KT-14900 Fixed
2017-07-07 18:15:09 +03:00
Mikhail Glukhikh 523cbc6723 Convert to expression body: insert new-line after = for long lines 2017-07-07 18:15:07 +03:00
Mikhail Glukhikh d08b18f5f8 Introduce "use expression body" inspection #KT-16063 Fixed
Converted from the relevant intention
Reported cases: one-liners, whens
Also, more exact caret detection in local inspection tests
2017-07-07 18:15:06 +03:00
takahirom fe9d3f16d3 KT-18501: Fix to find KDoc even if KDoc is in ModifierList 2017-07-07 18:12:19 +03:00
Dmitry Jemerov 4b92349031 Specify group for "Redundant 'Unit' return type" inspection 2017-07-07 16:53:42 +02:00
nd 33a93e5fc5 Inspection detecting redundant Unit return type (#1144) 2017-07-07 16:51:53 +02:00
Dmitry Jemerov 5f9a33564a Implement option for wrapping method annotations 2017-07-07 16:48:31 +02:00
Dmitry Jemerov a379a814ba Implement option for wrapping class annotations 2017-07-07 16:48:31 +02:00
Dmitry Jemerov 6c62b60147 Implement option for wrapping parameter annotations 2017-07-07 16:48:31 +02:00
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