Skip to content

Commit

Permalink
Bump the default DiKTat version
Browse files Browse the repository at this point in the history
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 2022. 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
  • Loading branch information
lutovich committed Jan 4, 2022
1 parent a749928 commit 1ef2012
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 1ef2012

Please sign in to comment.