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. 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 28867b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down 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 28867b6

Please sign in to comment.