-
Notifications
You must be signed in to change notification settings - Fork 156
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
Print report path #51
Comments
Umm... Currently no. I don't think we expose that. We could/should. This would probably be easiest to do if we were to make the Ktlint task extend something like |
@hasnainjaved can you provide examples of use-case? Currently plugin always create reports in |
I don't see the point of adding this feature, but possible solution may be: |
@Tapchicoma since CI/CD servers don't have a GUI so grabbing the path from the console and pasting into a browser would be convenient eg. Maven's surefire plugin prints the path of the report in case of test failures. We are currently doing what you have suggested. @JLLeitschuh Just printing the path would suffice. |
I don't think we should just print the directory. We should make it something that the user can retrieve as a method or field. Then they can do what they want with it. |
@hasnainjaved just to clarify: You are using some non-Gradle tool to post failed results back to PR as a comment? Not failed builds should not print report path? Will some Gradle callback suit your goals? |
@hasnainjaved is this issue still actual? |
I'd say that in case of a linting failure it would be nice to have the report(s) path(s) in the exception message so that Gradle will display them in the build failure summary. This will make it work nicely even with Then, logging the report(s) path(s) at e.g. |
Related commit in KtLint: pinterest/ktlint@30ec67d |
New released version of KtLint
|
Hello,
Is there a way to print out the path for the report file on the console ? Useful for CI/CD environments.
If not, is there a work around to print it out ?
Kind Regards .
The text was updated successfully, but these errors were encountered: