-
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
gradle-plugin: fix behavior in githubActions mode #1229
Conversation
### What's done: * Correctly set system property * Rename report; store reports in build directory
Codecov Report
@@ Coverage Diff @@
## master #1229 +/- ##
============================================
+ Coverage 83.87% 83.93% +0.06%
- Complexity 2543 2546 +3
============================================
Files 104 104
Lines 7161 7164 +3
Branches 1939 1939
============================================
+ Hits 6006 6013 +7
+ Misses 352 350 -2
+ Partials 803 801 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
### What's done: * Rename report; store reports in build directory
@@ -186,7 +191,7 @@ open class DiktatJavaExecTaskBase @Inject constructor( | |||
// githubActions should have higher priority than a custom input | |||
if (diktatExtension.githubActions) { | |||
// need to set user.home specially for ktlint, so it will be able to put a relative path URI in SARIF | |||
System.setProperty("user.home", project.projectDir.toString()) | |||
systemProperty("user.home", project.projectDir.toString()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in maven plugin this works fine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this change doesn't affect maven plugin
### What's done: * Tests
What's done:
This pull request closes #1213