Skip to content

Commit

Permalink
Fix missing ignoreUnusedFunctionReturnWarnings compiler option
Browse files Browse the repository at this point in the history
  • Loading branch information
tdroxler committed Aug 26, 2024
1 parent 9a0a7da commit 1ec5ad0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ object TSBuildTransformer {
ignoreUnusedFieldsWarnings = tsOptions.ignoreUnusedFieldsWarnings.getOrElse(ralphOptions.ignoreUnusedFieldsWarnings),
ignoreUnusedPrivateFunctionsWarnings = tsOptions.ignoreUnusedPrivateFunctionsWarnings.getOrElse(ralphOptions.ignoreUnusedPrivateFunctionsWarnings),
ignoreUpdateFieldsCheckWarnings = tsOptions.ignoreUpdateFieldsCheckWarnings.getOrElse(ralphOptions.ignoreUpdateFieldsCheckWarnings),
ignoreCheckExternalCallerWarnings = tsOptions.ignoreCheckExternalCallerWarnings.getOrElse(ralphOptions.ignoreCheckExternalCallerWarnings)
ignoreCheckExternalCallerWarnings = tsOptions.ignoreCheckExternalCallerWarnings.getOrElse(ralphOptions.ignoreCheckExternalCallerWarnings),
ignoreUnusedFunctionReturnWarnings = tsOptions.ignoreUnusedFunctionReturnWarnings.getOrElse(ralphOptions.ignoreUnusedFunctionReturnWarnings)
)

/**
Expand Down Expand Up @@ -115,6 +116,7 @@ object TSBuildTransformer {
"ignoreUnusedPrivateFunctionsWarnings",
"ignoreUpdateFieldsCheckWarnings",
"ignoreCheckExternalCallerWarnings",
"ignoreUnusedFunctionReturnWarnings",
"errorOnWarnings"
)

Expand Down Expand Up @@ -188,6 +190,7 @@ object TSBuildTransformer {
ignoreUnusedPrivateFunctionsWarnings = parseBooleanOption(optionsMap.get("ignoreUnusedPrivateFunctionsWarnings")),
ignoreUpdateFieldsCheckWarnings = parseBooleanOption(optionsMap.get("ignoreUpdateFieldsCheckWarnings")),
ignoreCheckExternalCallerWarnings = parseBooleanOption(optionsMap.get("ignoreCheckExternalCallerWarnings")),
ignoreUnusedFunctionReturnWarnings = parseBooleanOption(optionsMap.get("ignoreUnusedFunctionReturnWarnings")),
errorOnWarnings = parseBooleanOption(optionsMap.get("errorOnWarnings"))
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ object TSConfig {
ignoreUnusedPrivateFunctionsWarnings: Option[Boolean],
ignoreUpdateFieldsCheckWarnings: Option[Boolean],
ignoreCheckExternalCallerWarnings: Option[Boolean],
ignoreUnusedFunctionReturnWarnings: Option[Boolean],
errorOnWarnings: Option[Boolean] = None)

object CompilerOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ object TestTSBuildFile {
ignoreUnusedPrivateFunctionsWarnings <- Gen.option(arbitrary[Boolean])
ignoreUpdateFieldsCheckWarnings <- Gen.option(arbitrary[Boolean])
ignoreCheckExternalCallerWarnings <- Gen.option(arbitrary[Boolean])
ignoreUnusedFunctionReturnWarnings <- Gen.option(arbitrary[Boolean])
errorOnWarnings <- Gen.option(arbitrary[Boolean])
} yield TSConfig.CompilerOptions(
ignoreUnusedConstantsWarnings,
Expand All @@ -37,6 +38,7 @@ object TestTSBuildFile {
ignoreUnusedPrivateFunctionsWarnings,
ignoreUpdateFieldsCheckWarnings,
ignoreCheckExternalCallerWarnings,
ignoreUnusedFunctionReturnWarnings,
errorOnWarnings
)

Expand Down Expand Up @@ -78,6 +80,7 @@ object TestTSBuildFile {
| ${printOption("ignoreUnusedPrivateFunctionsWarnings", compilerOptions.ignoreUnusedPrivateFunctionsWarnings)}
| ${printOption("ignoreUpdateFieldsCheckWarnings", compilerOptions.ignoreUpdateFieldsCheckWarnings)}
| ${printOption("ignoreCheckExternalCallerWarnings", compilerOptions.ignoreCheckExternalCallerWarnings)}
| ${printOption("ignoreUnusedFunctionReturnWarnings", compilerOptions.ignoreUnusedFunctionReturnWarnings)}
| ${printOption("errorOnWarnings", compilerOptions.errorOnWarnings)}
|}""".stripMargin
}
Expand Down

0 comments on commit 1ec5ad0

Please sign in to comment.