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

Swallowed exception update #1326

Merged
merged 3 commits into from
Nov 14, 2018
Merged

Swallowed exception update #1326

merged 3 commits into from
Nov 14, 2018

Conversation

schalkms
Copy link
Member

When this PR is merged, I suggest to add a config parameter to this rule.
There are exception types like NumberFormatException and ParseException that indicate nonexceptional outcomes. This rule should ignore unhandled exception of this type specified in the config.

@@ -47,7 +47,7 @@ exceptions:
ReturnFromFinally:
active: true
SwallowedException:
active: true
active: false
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be generated from the rule KDoc @active tag (in this case the tag would be missing as it is not active)?

Copy link
Member Author

Choose a reason for hiding this comment

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

This file is the rule config which is applied to analyzing detekt itself. I deactivated it for now, since there is some work necessary as mentioned in my initial post.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Right! I didn't realize this was the failfast.yml. LGTM

@arturbosch arturbosch merged commit ea82872 into detekt:master Nov 14, 2018
@arturbosch arturbosch added this to the RC11 milestone Nov 14, 2018
@schalkms schalkms deleted the SwallowedException-update branch November 15, 2018 18:45
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.

4 participants