Skip to content

Commit

Permalink
Merge pull request #210 from usefulness/renovate/gradle.starter
Browse files Browse the repository at this point in the history
Update gradle.starter to v0.72.0
  • Loading branch information
renovate[bot] authored May 1, 2024
2 parents 339509b + d1ba437 commit 8a308da
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
gradle-starter = "0.71.0"
gradle-starter = "0.72.0"
gradle-pluginpublish = "1.2.1"
gradle-doctor = "0.9.2"
google-agp = "8.4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ internal fun File.readKtlintBaseline(): Map<String, List<KtlintCliError>>? {
val baseline = loadBaseline(absolutePath, errorHandling = BaselineErrorHandling.LOG)
when (baseline.status) {
Baseline.Status.VALID -> Unit

Baseline.Status.NOT_FOUND,
Baseline.Status.INVALID,
Baseline.Status.DISABLED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public open class CheckEditorConfigTask @Inject constructor(objectFactory: Objec
resultsFile.get().asFile.writeText("Failure")
when (mode.get()) {
None -> Unit

PrintWarningLogs -> logger.warn(messageFn())

BuildFailure,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ internal abstract class ConsoleReportWorker : WorkAction<ConsoleReportWorker.Par
KtlintRunMode.Format -> {
when (lintError.status) {
Status.BASELINE_IGNORED -> Unit

Status.LINT_CAN_NOT_BE_AUTOCORRECTED -> {
hasUncoveredErrors = true
logger.warn(lintError.generateMessage(file = file, message = "Format could not fix"))
}

Status.FORMAT_IS_AUTOCORRECTED -> logger.quiet(lintError.generateMessage(file = file, message = "Format fixed"))

Status.LINT_CAN_BE_AUTOCORRECTED,
Status.KOTLIN_PARSE_EXCEPTION,
Status.KTLINT_RULE_ENGINE_EXCEPTION,
Expand Down

0 comments on commit 8a308da

Please sign in to comment.