-
-
Notifications
You must be signed in to change notification settings - Fork 758
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 UnnecessarySafeCall (1.11.0-RC2) #2961
Comments
Possibly seeing a similar false positive A)
B)
In this case, there is a workaround. This passes:
Your environment
|
Thanks for listing and tracking further cases here. |
Hey @vladimirfx @Julesssss OP Example: https://pl.kotl.in/-VLlrSCsk For all of them, I was not able to reproduce the issue. Are you also getting warnings from the Kotlin compiler for those examples? |
Sure, I'll try this next week. Thanks for investigating.
…On Fri, 14 Aug 2020, 17:47 Nicola Corti, ***@***.***> wrote:
Hey @vladimirfx <https://github.com/vladimirfx> @Julesssss
<https://github.com/Julesssss>
I've tested all of your examples removing the types that are not known (or
that are Android specifics) but trying to maintain the patterns:
OP Example: https://pl.kotl.in/-VLlrSCsk
Example A: https://pl.kotl.in/ydew3b-Fc
Example B: https://pl.kotl.in/OGo8X_wPe
For all of them, I was not able to reproduce the issue.
Moreover, this specific rule is relying only on an inspection of the
Kotlin compiler: UNNECESSARY_SAFE_CALL. There is no extra logic added.
Are you also getting warnings from the Kotlin compiler for those examples?
Can I ask you to try with the snippets I linked if the issue is still
reported?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2961 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACR5JXNGMVCJMVPSPL4QOC3SAVL7LANCNFSM4P2YMFXQ>
.
|
all classpath delimeted by ';' (shouldn't it be ':' in Unix system?). Afterward 10k lines with errors such:
Detekt 1.10 works correctly in same project. Gradle downgrade is not helps. |
Looks like bug is there: detekt/detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/invoke/CliArgument.kt Line 42 in b75cf42
IMO it should be:
instead of hardcoded ';' |
Thanks for investigating this! |
We had a regression in 1.11.0, please update to 1.11.1, thanks! |
Observed Behavior
Issue reported for necessary safe call:
Your Environment
The text was updated successfully, but these errors were encountered: