Commit Graph

21 Commits

Author SHA1 Message Date
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
mglukhikh d9e1e82948 Destructure is available even without usages #KT-14435 Fixed 2017-04-05 15:07:15 +03:00
mglukhikh feb9dd4d83 Don't suggest destructuring if at least half components not used
So #KT-16828 Fixed
2017-04-05 14:45:48 +03:00
mglukhikh 8a02ce3dc2 KT-16828: use _ when appropriate in destructure intention 2017-04-04 19:22:24 +03:00
Mikhail Glukhikh 8188bb1e54 Destructure intention: entries / entrySet are now removed only for kotlin.Map inheritors #KT-14244 Fixed 2016-10-11 16:13:01 +03:00
Mikhail Glukhikh 475d5548c4 Destructure intention now handles the case with manual destructuring inside #KT-13943 Fixed 2016-10-11 16:12:51 +03:00
Mikhail Glukhikh 70949d10da Refactoring + minor fixes: destructure intention 2016-10-06 21:16:46 +03:00
Mikhail Glukhikh dd7d7a5fc7 Destructure inspection: do not apply on variable declarations or function literals without explicit parameters + name & severity changed 2016-10-06 21:07:58 +03:00
Mikhail Glukhikh 42aea59253 Simplify for intention refactoring: focus on the loop parameter, not on the loop itself 2016-10-06 21:03:03 +03:00
Mikhail Glukhikh 0a8006a395 Minor: destructing --> destructuring in SimplifyForIntention 2016-10-06 21:02:58 +03:00
Valentin Kipyatkov b0ed6adce3 Fixed wrong test 2016-09-27 18:05:26 +03:00
Valentin Kipyatkov 21c2268f70 Protection against "<caret>" missing in test data
Many incorrect tests fixed
2016-09-27 18:05:26 +03:00
Mikhail Glukhikh 7a24429b53 Simplify for intention: apply name validator to prevent conflicts 2016-05-30 12:15:13 +03:00
Mikhail Glukhikh 792b37bce4 Simplify for intention: applicable of any numbers of properties used #KT-10779 Fixed 2016-05-30 12:15:09 +03:00
Mikhail Glukhikh f81192d48f Simplify for: take into account two or more possible local variables for the same loop parameter property 2016-05-18 19:56:19 +03:00
Mikhail Glukhikh 9108ab1923 Simplify for: take into account local property mutability 2016-05-18 19:56:14 +03:00
Mikhail Glukhikh d0fd3dea67 Simplify for: take into account loop parameter nullability 2016-05-18 19:56:10 +03:00
Mikhail Glukhikh a56248a11a Simplify for now works even if no variables are declared inside loop #KT-12145 Fixed 2016-05-18 19:56:06 +03:00
Mikhail Glukhikh d366da5cd6 Simplify for intention: now is not active if map / data class properties aren't used in a loop #KT-11716 Fixed 2016-05-18 17:46:09 +03:00
Ilya Gorbunov 25c4453dc5 Cleanup deprecated symbol usages in testData 2016-01-22 05:54:38 +03:00
Natalia Ukhorskaya ea3ba6f534 Intention to simplify for using destructing declaration 2016-01-14 13:41:45 +03:00