File tree 3 files changed +14
-3
lines changed
save-cli/src/commonNonJsMain/kotlin/com/saveourtool/save/cli/config
save-plugins/fix-plugin/src/commonMain/kotlin/com/saveourtool/save/plugins/fix
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ fun SaveProperties.Companion.of(args: Array<String>): SaveProperties {
24
24
val configFromCli = try {
25
25
parseArgs(fs, args)
26
26
} catch (e: IOException ) {
27
- return logErrorAndExit(
27
+ logErrorAndExit(
28
28
ExitCodes .INVALID_CONFIGURATION ,
29
29
" Save expects to get the root directory for test files as the first CLI argument: save [cli-options] <test-root> [...]. " +
30
30
" Provided value to cli as a root for test directory and is not able to find it. " +
@@ -46,7 +46,7 @@ private fun SaveProperties.validate(): SaveProperties {
46
46
try {
47
47
fs.metadata(fullConfigPath)
48
48
} catch (e: FileNotFoundException ) {
49
- return logErrorAndExit(
49
+ logErrorAndExit(
50
50
ExitCodes .INVALID_CONFIGURATION , " Not able to find configuration file '$fullConfigPath '." +
51
51
" Please provide a valid path to the test config via command-line or using the file with properties. " +
52
52
" Error: ${e.message} "
Original file line number Diff line number Diff line change @@ -210,7 +210,8 @@ class FixPlugin(
210
210
// instead, there was created sarif file with list of fixes, which we will apply ourselves
211
211
val fixedFiles = SarifFixAdapter (
212
212
sarifFile = sarifFile,
213
- targetFiles = testsPaths
213
+ targetFiles = testsPaths,
214
+ testRoot = testConfig.getRootConfig().directory,
214
215
).process()
215
216
216
217
// sarif file was created by us, remove tmp data
Original file line number Diff line number Diff line change @@ -15,6 +15,16 @@ dependencyResolutionManagement {
15
15
maven {
16
16
url = uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" )
17
17
}
18
+ maven {
19
+ name = " saveourtool/okio-extras"
20
+ url = uri(" https://maven.pkg.github.com/saveourtool/okio-extras" )
21
+ credentials {
22
+ username = providers.gradleProperty(" gprUser" ).orNull
23
+ ? : System .getenv(" GITHUB_ACTOR" )
24
+ password = providers.gradleProperty(" gprKey" ).orNull
25
+ ? : System .getenv(" GITHUB_TOKEN" )
26
+ }
27
+ }
18
28
}
19
29
}
20
30
enableFeaturePreview(" TYPESAFE_PROJECT_ACCESSORS" )
You can’t perform that action at this time.
0 commit comments