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

fix false positive in UnnecessaryParentheses #1098

Merged
merged 2 commits into from Sep 11, 2018

Conversation

Mauin
Copy link
Collaborator

@Mauin Mauin commented Sep 10, 2018

Fixes #1051. The 2nd lambda is not part of the KtParameterList but another KtLambdaArgument attached to the CallExpression.

Added a bunch of other tests for similar cases to ensure we handle this case correctly.

@arturbosch arturbosch added this to the RC9 milestone Sep 10, 2018
@arturbosch
Copy link
Member

Good to see you back working on detekt :)! Have you tested this fix on our analysis projects (get_analysis_projects.groovy script ^^)?

Copy link
Member

@schalkms schalkms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@arturbosch arturbosch merged commit 565ea9c into detekt:master Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants