Releases: saveourtool/diktat
Release 0.6.1
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
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
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
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
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
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
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
- 517e3d6 Wrapper in kts file (#735)
- c80bc50 Allow custom source directories (#778)
- 5ee8d64 Check that newline is not placed before a colon (#720)
- fbb6a20 String concatenation: automatic code fixes (#208)
Bugfixes
- 83b9f1a Kdoc order (#770)
- 1291bd7 Bugfix. Indentation inside string templates (#765)
- 4860902 Bugfix. diktat-gradle-plugin shouldn't log warning about reporter type (#779)
- 8891a13 Bugfix. Bug in autofix in string templates (#780)
- 386ae91 Fix NPE in NewLineRule (#792)
Docs
Housekeeping
Release 0.4.1
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
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
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
- cea7a7a Updates to the codestyle (#702)
- d34ed1c Final version of white-paper (#655)
- 526bc52 Codestyle fixed. (#683)
- 6b0b9d2 Custom label (#715)
- 5a4e738 Describe order of top-level structures (#722)
Housekeeping
Release 0.3.0
Release highlights
This release allows setting custom config file location in gradle plugin.
Diktat now supports checking .kts
files too.
New features
- 27e5f7d Support checking .kts files (#667)
- ccfceb4 Feature. Auto-fixes for null-checks (#681)
- 62c5a01 Feature. Allow more prefixes for boolean methods (#417) (#677)
- c852602 Support setting config file via system property (#682)
Docs
- d63c347 Available-rules corrected according out documentation (#675)
- 565e2e9 Feature. All rules should be commented in diktat-analysis.yml (#673)