Skip to content

Releases: saveourtool/diktat

Release 0.6.1

08 Jun 12:15
eda9604
Compare
Choose a tag to compare

Fixes

2201861 Do not remove return type from recursive functions when converting to expression body (#905)
0218da1 Improve compatibility of gradle plugin (#907)
eda9604 Fixes and enhancements for complex boolean expressions rule (#909)

Housekeeping

4daab8c Bump commons-io from 2.8.0 to 2.9.0 (#901)
cc252ae Bump kotlin.version from 1.5.0 to 1.5.10 (#898)
aa08d05 Bump kaml-jvm from 0.33.0 to 0.34.0 (#902)
259c701 Adding kompar link to the readme

Release 0.6.0

26 May 12:32
43cb952
Compare
Choose a tag to compare

New features

9f8c298 Feature. Rule for collapsing and enhancing Boolean conditions (#864)
a13f019 Update kotlin from 1.4.32 to 1.5 (#856)

Fixes

2662d66 FP for gradle script (#885)
14d97a3 New line in script (#886)
9ff5493 Removed file appender from log4j configuration (#887)

Housekeping

43cb952 Bump detekt-maven-plugin from 1.16.0 to 1.17.1 (#895)
a978292 Bump whelk-io/maven-settings-xml-action from 15 to 16 (#896)
863085c Bump maven.itf.version from 0.9.0 to 0.10.0 (#888)
666f824 Bump kaml-jvm from 0.32.0 to 0.33.0 (#890)
93f1e89 Bump kotlinx-serialization-json-jvm from 1.2.0 to 1.2.1 (#891)
6e33bef Bump actions/checkout from 1 to 2.3.4 (#892)
9b182b3 Bump junit.version from 5.7.1 to 5.7.2 (#889)
87fd139 Bump kaml-jvm from 0.31.0 to 0.32.0 (#884)
149c31e Bump kotlinx-serialization-json-jvm from 1.1.0 to 1.2.0 (#853)
b43176b Bump kotlin-multiplatform-diff-jvm from 0.1.0 to 0.2.0 (#871)
de04b9b Prepare next development iteration after release 0.5.3 (#883)

Release 0.5.3

13 May 08:24
7f74e9a
Compare
Choose a tag to compare

New features

8fa1ece Value Parameter in Magic Number Rule (#874)
2b17b31 Disable Magic Number in test (#879)

Fixes

6de6a62 Fix NPE in KdocFormatting rule (#876)
fd9b54f Bugfix. Not all types of nodes for annotation Suppress are considered (#878)
cf126df Fix bug with incorrect package name fixing (#877)
7f74e9a Bugfix. Unused_import rule should ignore all standard operator funs (#880)

Housekeeping

2a342ea Prepare next development iteration after release 0.5.2 (#867)
e80edfe Bump maven-gpg-plugin from 1.6 to 3.0.1 (#873)
a2f4056 Bump jacoco-maven-plugin from 0.8.6 to 0.8.7 (#872)

Release 0.5.2

30 Apr 15:07
8832cf3
Compare
Choose a tag to compare

Highlights

This is a bugfix-only release that fixes several important bugs

Fixes

9ac8d4b Bugfix. Top-level constants should not be considered magic number (#849)
4c9ebf8 Removing System.exit(1) (#862)
4c82083 Fix bug in PackageNaming for kotlin scripts (#863)
076ec56 Incorrect fix of null-safety rule (#857)
8832cf3 Bugfix. NPE in fixing of LineLength Rule (#858)

Housekeeping

927cb21 Bump git-build-hook-maven-plugin from 3.0.0 to 3.1.0 (#854)
c8cd2d2 Bump maven-plugin-tools from 3.6.0 to 3.6.1 (#855)
4c81b3f Fix all Warnings (#781)

Release 0.5.1

27 Apr 10:06
19b838d
Compare
Choose a tag to compare

New features

4be22ab Collapse if statements with comments (#825)
8564277 Rule for typeAlias name (#839)

Fixes

c04b83f Fix bug with incorrect reordering of enum classes (#847)
19b838d Bugfix. Useless auto-fix in AVOID_NULL_CHECKS rule (#848)

Housekeeping

44fb01d Prepare next development iteration after release 0.5.0 (#827)
73253b1 Bump kaml-jvm from 0.29.0 to 0.30.0 (#830)
292ee58 Bump actions/setup-java from v1 to v2 (#831)
d8aafa4 Use github packages repository for kotlin-maven-plugin-tools (#835)
1135a43 Bump kaml-jvm from 0.30.0 to 0.31.0 (#844)
93b7bbe Bump dokka-maven-plugin from 1.4.30 to 1.4.32 (#845)
60dac69 Remove jcenter from the list of dependency repositories (#846)

Release 0.5.0

08 Apr 16:54
a2c7c24
Compare
Choose a tag to compare

New features

d508bd7 Magic Number (#772)
199dd99 (WIP) Collapse if statements rule (#801) (#814)

Bugfixes

1885386 Fix Conflicting TOO_MANY_BLANK_LINES and BRACES_BLOCK_STRUCTURE_ERROR with empty block (#797)
73cdc6f Bugfix. EMPTY_BLOCK_STRUCTURE_ERROR shouldn't trigger on empty lambdas (#803)

Docs

Housekeeping

4311ff5 Prepare next development iteration after release 0.4.2 (#794)
b0f42d3 Bump detekt-maven-plugin from 1.15.0 to 1.16.0 (#798)
d9b6b6e Use kotlin-multiplatform-diff instead of java-diff-utils (#799)
2176972 Bump guava from 30.0-jre to 30.1.1-jre (#805)
8a7a2df Bump dokka-maven-plugin from 1.4.20 to 1.4.30 (#807)
ee33cfd Added gradle test-retry plugin for functional tests in diktat-gradle-plugin (#808)
9a2a218 Added test class for DummyWarning (#810)
9ffbb40 Bump kaml from 0.28.3 to 0.29.0 (#812)
767a6d5 Bump kotlin.version from 1.4.31 to 1.4.32 (#813)
8899c71 Bump kotlinpoet from 1.7.1 to 1.8.0 (#820)
9b75ec5 Bump whelk-io/maven-settings-xml-action from v14 to v15 (#821)
e1c175e Bump maven.api.version from 3.6.3 to 3.8.1 (#819)
a2c7c24 Update dependency kotlin-stdlib (#826)

Release 0.4.2

09 Mar 14:30
5f3ee0e
Compare
Choose a tag to compare

Release highlights

Diktat is now built with Kotlin IR. We now have automatic fix to convert string concatenation into a template. Custom source directory naes can be configured in yaml file, this will help multiplatform projects with complex directory structure.

New features

Bugfixes

Docs

Housekeeping

  • 19932b6 Prepare next development iteration after release 0.4.1 (#777)
  • 862b423 Enable JVM IR (#757)
  • aeae7a9 Bump kotlinx-serialization-json-jvm from 1.0.1 to 1.1.0 (#782)
  • 5d0af45 Bump kotlin.version from 1.4.30 to 1.4.31 (#786)
  • 9d5796b Bump kaml from 0.27.0 to 0.28.3 (#784)

Release 0.4.1

16 Feb 08:59
505b024
Compare
Choose a tag to compare

Release highlights

This is a bugfix-mostly release. The only new feature is support for trailing comma.
Also, diktat is now integrated into spotless! You can find usage instructions in spotless or in diktat README.

Features

d65d447 Trailing comma (#743)

Bugfixes

f652657 Top level order (#739)
474f94f Bugfix. Sanitize diktat config(#737) (#759)
2551330 Bugfix. False positives in UNUSED_IMPORT (#760)
208c1ed Bugfix. Inspect the logic of the data class rule (#761)
5140a50 Multiple error (#764)
77b5578 Enum order breaks white space (#726)
505b024 Bugfix. New lines rule(#748) (#749)

Docs

6a43720 Updating the readme file
dfe0e4a Minor updates for links in the readme
95434dd Added spotless description to README.md (#762)

Housekeeping

c53018e Update versions in pom.xml and documentation after 0.4.0 release (#741)
e51031c Feature. Ktlint rule wrapper (#744)
d8e644e Bump kaml from 0.26.0 to 0.27.0 (#754)
dc5011f Bump kotlin.version from 1.4.21 to 1.4.30 (#755)
0028f77 Bump junit.version from 5.7.0 to 5.7.1 (#753)

Release 0.4.0

02 Feb 09:37
ed935c5
Compare
Choose a tag to compare

Release Highlights

Specify kotlin language version in config, disable rules by chapter, specify reporter type in gradle plugin.
Breaking change: HEADER_CONTAINS_DATE_OR_AUTHOR renamed to KDOC_CONTAINS_DATE_OR_AUTHOR

New Features

  • 9b29541 Check whether @since tag contains date or version (#694)
  • 241f45e Do not use !isEmpty methods from the collections – need to use isNotEmpty instead (#704)
  • 0b7cf0a New rule for complex expression (#680)
  • 373b609 AsyncAndSyncRule (#707)
  • 0b61701 New rule 5.2.4 for lambda length (#705)
  • b43fb71 Warning for domain name (#696)
  • 00a00ae Feature. Enable confiuring of ktlint reporter in gradle plugin (#724)
  • 05c3ebb Add warning to suggest to use inline classes when a class has single property (#716)
  • 5dd1394 Added config option to disable chapters (#718)
  • de93c7d New warning: Unused imports should be removed (#717)
  • bb0bbe8 A rule to check that there are no extension functions in the same file with the class(#731) (#733)
  • 3293e8d Kotlin version (#730)

Fixes

  • 166d615 bugfix/bug-documentation-generation (#701)
  • 8344d70 Bugfix. Problems with year checking logic in copyright(#688) (#693)
  • 9eefb12 Fix for gradle plugin config (#706)
  • 66fc684 Bugfix. Spaces are not inserted after { and before } in lambda expressions (#711) (#712)
  • ed935c5 Fix false-positive of ComentsRule on default copyright text (#740)

Docs

Housekeeping

  • 5cb0ce5 Minor infrastructure improvements (#700)
  • c5d3db8 Bump assertj-core from 3.18.0 to 3.19.0 (#723)
  • c4c32b2 Infrastructure. Split rules logic in rule-set into chapters (#729)

Release 0.3.0

11 Jan 10:08
c4b6084
Compare
Choose a tag to compare

Release highlights

This release allows setting custom config file location in gradle plugin.
Diktat now supports checking .kts files too.

New features

Docs

  • d63c347 Available-rules corrected according out documentation (#675)
  • 565e2e9 Feature. All rules should be commented in diktat-analysis.yml (#673)

Housekeeping

  • e6c6f7f Update versions in pom.xml and documentation after 0.2.0 release (#674)
  • f38ce8b Years in copyright examples updated to 2021 (#687)
  • c4b6084 Pass diktat-maven-plugin for maven-itf via maven.config (#689)