From 28867b62125042159f53454a01ff71a0dc2cef35 Mon Sep 17 00:00:00 2001 From: Kostiantyn Liutovych Date: Tue, 4 Jan 2022 23:22:55 +0100 Subject: [PATCH] Bump the default DiKTat version Use the latest major release - 1.0.1. The previous default version 0.4.0 started causing build failures because of the copyright rule. DiKTat tests started failing after the new year. It is not entirely clear why the tests started failing, but the error behaviour changes when adding a dummy copyright header to Kotlin source files. Example header: ``` /* Copyright (c) My Company, Ltd. 2000-2022. All rights reserved. */ ``` Release notes for DiKTat 1.0.1 mention a PR that fixes the copyrights rule: https://github.com/analysis-dev/diktat/releases/tag/v1.0.1 --- .../main/java/com/diffplug/spotless/kotlin/DiktatStep.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/main/java/com/diffplug/spotless/kotlin/DiktatStep.java b/lib/src/main/java/com/diffplug/spotless/kotlin/DiktatStep.java index 4af23f5559..7f5779cce6 100644 --- a/lib/src/main/java/com/diffplug/spotless/kotlin/DiktatStep.java +++ b/lib/src/main/java/com/diffplug/spotless/kotlin/DiktatStep.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 DiffPlug + * Copyright 2021-2022 DiffPlug * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ public class DiktatStep { // prevent direct instantiation private DiktatStep() {} - private static final String DEFAULT_VERSION = "0.4.0"; + private static final String DEFAULT_VERSION = "1.0.1"; static final String NAME = "diktat"; static final String PACKAGE_DIKTAT = "org.cqfn.diktat"; static final String PACKAGE_KTLINT = "com.pinterest.ktlint";