-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
Not failing or not using baseline #3378
Comments
Thank you for submitting the bug report. I was not able to reproduce: With baseline set, I tried both If possible, would you mind creating a sample project to reproduce? |
Yeah, I'm attaching a basic project that has a similar structure to my current project. I've been playing with detekt versions 1.14.0 and 1.15.0, and I've been testing the failFast config set to true and false, but each set up passes, except with 1.15.0 and failFast = true, then I get some weird exception that doesn't seem related to the format checking, or at least it doesn't show the issues and says that it failed while analyzing a particular file that doesn't have any issues. I thought I had avoided this exception at some point but not sure how I did it. There are some weird exceptions that get printed out with failFast = true on 1.14.0, but the task still succeeds. The main place you want to look for testing is in the I put the sample project on my google drive. Let me know if you have issues getting it or have questions about the setup. Thanks |
Hello, I was wondering if you had a change to look at the sample project, plus if you were able to reproduce the issue with it and had any ideas yet about what might be going on. Thanks. |
Sorry this falls through the cracks, I have requested access to the Google drive. |
When on 1.15.0 and failFast = true, the exception below tells us that the yaml config has undesired types:
In addition, failFast is going to be deprecated as the naming was confusing. See #3391 |
When on 1.15.0 and failFast = false (This is the recommended setting), it seems like I would change the |
Awesome, all of this has fixed the issue. Thanks a bunch for taking a look at this. |
Expected Behavior
detekt should run using the baseline and fail when issues are found if fastFail is set to true.
Observed Behavior
If I don't set fastFail, then detekt runs and will not fail when issues are found. If I set fastFail = true, then detekt doesn't seem to use the baseline file, or somehow find new issues
Steps to Reproduce
In my buildSrc module, I include 'io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.15.0' in the dependencies. Then in a custom plugin class that all my project modules use, I have
Next, I run detekt.
Context
I'm trying to include the detekt task in my CI for pull request, etc, but if the task doesn't fail, we won't know there are issues.
Your Environment
The text was updated successfully, but these errors were encountered: