-
Notifications
You must be signed in to change notification settings - Fork 39
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 able to determine a path to a scanned file or "src" directory cannot be found in it's path" Error #1202
Comments
Hi! @Cheshiriks will investigate it as he was integrating it to the spotless. But @yewton do you really need Spotless? 😄 Why not to use diktat directly. |
Yes, there is no reason to do so 😄 |
Problem in Please note that this warning does not affect other rules and if you will enabled those rules that you have disabled you will see diktat warnings. |
@Cheshiriks you will also need to update version of ktlint and diktat in Spotless |
Still happening in Spotless version 6.5.1 with diktat 1.1.0 |
Spotless passes Compared to ktlint's own cli implementation passing the whole path: I have not tested this, but this looks like the culprit. If this is the case, then diktat's parameter name choice is questionable. Should be an easy fix though. EDIT: Further debugging revealed that this line is probably also the culprit: It overrides the So to fix the issue either KtLint does not forcibly override a Consequently this is not Diktat's fault, but Spotless and/or KtLint are responsible. |
The issue should be resolved in spotless-grade 6.5.2, so I'm closing it. Feel free to reopen if this issue ever occurs again |
Describe the bug
./gradlew spotlessApply
output the following error:P.S. Telegram inivitation link seems being expired...
Expected behavior
Not getting any error
Observed behavior
Described error occurs
Steps to Reproduce
checkout https://github.com/yewton/testdiktat and run
./gradlew spotlessApply
Environment information
The text was updated successfully, but these errors were encountered: