Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@3flex
Copy link
Member

@3flex 3flex commented Sep 9, 2019

Fixes #1066

Rule now requires type resolution.

Blocked by #1880.

@3flex 3flex added the blocked label Sep 9, 2019
@codecov-io
Copy link

codecov-io commented Sep 9, 2019

Codecov Report

Merging #1905 into master will decrease coverage by 0.02%.
The diff coverage is 50%.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ Complexity Δ
...gitlab/arturbosch/detekt/api/AnnotationExcluder.kt 22.22% <0%> (ø) 5 <0> (ø) ⬇️
...ekt/rules/style/optional/PreferToOverPairSyntax.kt 85.71% <60%> (-14.29%) 7 <5> (+2)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f714f6e...fd4db5b. Read the comment docs.

}

it("does not report if a non-Kotlin Pair class was used") {
val code = """val pair1 = Pair(1, 2)
Copy link
Member

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.

@3flex 3flex removed the blocked label Sep 13, 2019
@schalkms schalkms merged commit 7187493 into detekt:master Sep 13, 2019
@3flex 3flex deleted the 1066-fix branch September 13, 2019 22:26
@arturbosch arturbosch added this to the 1.0.2 milestone Sep 14, 2019
sowmyav24 pushed a commit to sowmyav24/detekt that referenced this pull request Sep 17, 2019
* Report PreferToOverPairSyntax only for kotlin.Pair

* Fix issues found by PreferToOverPairSyntax

* Add @language annotation

Provides automatic syntax highlighting at compileAndLintWithContext call
sites.
sowmyav24 pushed a commit to sowmyav24/detekt that referenced this pull request Sep 17, 2019
* Report PreferToOverPairSyntax only for kotlin.Pair

* Fix issues found by PreferToOverPairSyntax

* Add @language annotation

Provides automatic syntax highlighting at compileAndLintWithContext call
sites.
@arturbosch arturbosch modified the milestones: 1.0.2, 1.1.0 Sep 17, 2019
smyachenkov pushed a commit to smyachenkov/detekt that referenced this pull request Dec 9, 2019
* Report PreferToOverPairSyntax only for kotlin.Pair

* Fix issues found by PreferToOverPairSyntax

* Add @language annotation

Provides automatic syntax highlighting at compileAndLintWithContext call
sites.
smyachenkov pushed a commit to smyachenkov/detekt that referenced this pull request Dec 9, 2019
* Report PreferToOverPairSyntax only for kotlin.Pair

* Fix issues found by PreferToOverPairSyntax

* Add @language annotation

Provides automatic syntax highlighting at compileAndLintWithContext call
sites.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PreferToOverPairSyntax false positive

4 participants