Skip to content
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

False positive in ThrowsCount rule #3222

Closed
t-kameyama opened this issue Nov 11, 2020 · 0 comments · Fixed by #3223
Closed

False positive in ThrowsCount rule #3222

t-kameyama opened this issue Nov 11, 2020 · 0 comments · Fixed by #3223

Comments

@t-kameyama
Copy link
Contributor

t-kameyama commented Nov 11, 2020

import java.io.IOException

fun foo(x: Int) {
    fun bar(x: Int) {
        when (x) {
            1 -> throw IOException()
            2 -> throw IOException()
            3 -> throw IOException()
        }
    }
    return bar(x)
}

foo at line 3 should not be reported as well as ReturnCount rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants