-
-
Notifications
You must be signed in to change notification settings - Fork 821
Report PreferToOverPairSyntax only for kotlin.Pair #1905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1905 +/- ##
============================================
- Coverage 80.45% 80.42% -0.03%
- Complexity 1968 1970 +2
============================================
Files 326 326
Lines 5510 5512 +2
Branches 1022 1023 +1
============================================
Hits 4433 4433
Misses 543 543
- Partials 534 536 +2
Continue to review full report at Codecov.
|
| } | ||
|
|
||
| it("does not report if a non-Kotlin Pair class was used") { | ||
| val code = """val pair1 = Pair(1, 2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
val pair1 = Pair(1, 2) should be in its own line.
Provides automatic syntax highlighting at compileAndLintWithContext call sites.
* Report PreferToOverPairSyntax only for kotlin.Pair * Fix issues found by PreferToOverPairSyntax * Add @language annotation Provides automatic syntax highlighting at compileAndLintWithContext call sites.
* Report PreferToOverPairSyntax only for kotlin.Pair * Fix issues found by PreferToOverPairSyntax * Add @language annotation Provides automatic syntax highlighting at compileAndLintWithContext call sites.
* Report PreferToOverPairSyntax only for kotlin.Pair * Fix issues found by PreferToOverPairSyntax * Add @language annotation Provides automatic syntax highlighting at compileAndLintWithContext call sites.
* Report PreferToOverPairSyntax only for kotlin.Pair * Fix issues found by PreferToOverPairSyntax * Add @language annotation Provides automatic syntax highlighting at compileAndLintWithContext call sites.
Fixes #1066
Rule now requires type resolution.
Blocked by #1880.