Skip to content

Releases: saveourtool/diktat

Release 1.1.0

13 Apr 13:07
85bed80
Compare
Choose a tag to compare

Features

aa3c22b Suggest using lastIndex instead of length - 1 for strings (#1221)
af5b1eb Adding the execution flag for maven to the readme (#1240)
bdd5e43 Rule for parameter name in outer lambda (#1228)
cbeaa96 Ktlint 0.44.0, Kotlin 1.6.10 (#1215)

Bugfixes

c79a36c Add --add-opens in gradle plugin on JVM >=16 (#1214)
e8b4a51 Improve autofix in AVOID_NULL_CHECKS rule (#1201)
970f316 Bugfix/invalid override enabled (#1223)
755b6b7 gradle-plugin: fix behavior in githubActions mode (#1229)
fd9ff89 Diktat analysis test (RulesConfigYamlTest) isignored now (#1230)
e25792b Fix: Incorrect wrapping into apply function (#1258)

Housekeeping

c3c960f Bump nexus-staging-maven-plugin from 1.6.8 to 1.6.11 (#1217)
cd0f00c Bump actions/checkout from 2.4.0 to 3 (#1225)
f9dfc30 Bump actions/cache from 2 to 3 (#1233)
4792cf1 Bump maven-compiler-plugin from 3.9.0 to 3.10.1 (#1227)
1e3c839 Bump maven-dependency-plugin from 3.2.0 to 3.3.0 (#1226)
39f7ec3 Bump log4j.version from 2.17.1 to 2.17.2 (#1220)
0eb153d Bump slf4j-api from 1.7.33 to 1.7.36 (#1208)
ed30b6c Bump properties-maven-plugin from 1.0.0 to 1.1.0 (#1237)
91bba00 Bump kaml-jvm from 0.40.0 to 0.43.0 (#1236)
5a8307b Bump maven.api.version from 3.8.4 to 3.8.5 (#1238)
65ff914 Bump peter-evans/create-pull-request from 3 to 4 (#1245)
4dc1e80 Bump versions-maven-plugin from 2.9.0 to 2.10.0 (#1247)
41c161a maven-plugin: Fix scopes of maven dependencies (#1257)
85bed80 Rollback nexus-staging-maven-plugin to 1.6.8 (#1267)

@nulls @petertrr @Arrgentum @akuleshov7 @sanyavertolet @kgevorkyan

Release 1.0.3

11 Feb 23:01
Compare
Choose a tag to compare

Highlights

0698727 Github actions integration (#1205)
78a339f Support baseline mode (#1194)
2011aff Range to until (#985)

Bugfixes

215e8f0 Adapt WHEN_WITHOUT_ELSE according to new features of Kotlin 1.6 (#1206)
749587a Fix: CLASS_SHOULD_NOT_BE_ABSTRACT breaks code when abstract class implements an interface (#1200)
80a366e Fix: False-positive SMART_CAST_NEEDED with mutable properties (#1196)
d140a2e Bugfix: Suppress COMPLEX_EXPRESSION in .gradle.kts (#1193)
297417a WRONG_DECLARATIONS_ORDER conflicts with ENUM_SEPARATED (#1195)
b89bb76 Bugfix: Check if expression in CompactInitialization rule should be parenthesized (#1192)
f533d9e Fix: AVOID_NULL_CHECKS conflicts with NO_BRACES_IN_CONDITIONALS_AND_LOOPS (#1191)
2df05de KotlinParseException on string concatenation for if expression (#1190)
237cb2c Gradle and Maven Plugins: reporter types are fixed and updated (#1180)
3de4c44 Delete CNAME
d1f60c9 Create CNAME
c00aab9 KotlinParseException on string concatenation in fix plugin (#1183)

Dependencies

83ffa6b Bump maven-jar-plugin from 3.2.0 to 3.2.2 (#1199)
e376022 Bump maven-plugin-tools.version from 3.6.1 to 3.6.4 (#1184)
854cb18 Bump versions-maven-plugin from 2.8.1 to 2.9.0 (#1198)
e170e33 Bump maven-compiler-plugin from 3.8.1 to 3.9.0 (#1188)
0a8f50a Bump kotlin-multiplatform-diff-jvm from 0.3.0 to 0.4.0 (#1187)
1fad7ba Bump assertj-core from 3.21.0 to 3.22.0 (#1186)
1eb236f Bump build-helper-maven-plugin from 3.2.0 to 3.3.0 (#1185)
662ccff Prepare next development iteration after release 1.0.2 (#1177)

Release 1.0.2

17 Jan 11:50
be5d07c
Compare
Choose a tag to compare

Updates:
bb63cee Support 'value' keyword from Kotlin 1.5 (#1171)
59d5145 Bump kaml-jvm from 0.36.0 to 0.40.0 (#1174)
9bf260e Bump maven-deploy-plugin from 3.0.0-M1 to 3.0.0-M2 (#1175)
0b08755 Bump slf4j-api from 1.7.31 to 1.7.33 (#1176)

Release 1.0.1

23 Dec 12:19
710ef1a
Compare
Choose a tag to compare

Updates:
710ef1a Fixes in copyrights rule (#1155)
e8007b5 Update diktat-analysis configs and migration to log4j2 (#1156)
da3f5ae Improvements for Copyrights rule - support pattern for the current year in the configuration (#1154)

Release 1.0.0

10 Dec 14:58
d55ce53
Compare
Choose a tag to compare

Full list of fixes:
8d971dc Prepare next development iteration after release 0.6.2 (#922)
4112a2b Bugfix in the LineLength rule (#929)
94a4d1c Sort typealiases in TopLevelOrderRule (#931)
3dc16b2 Fixes in code style, update documentation (#930)
8e04338 Bugfix of NPE in LongLine rule on Binary Expressions (#932)
2f96c88 Replacing replaceWithText() method with rawReplaceWithText() (#939)
1bf6e43 Correct fix of long comment (#933)
578f2a5 WRONG_NAME_OF_VARIABLE_INSIDE_ACCESSOR false positive trigger (#943)
7218a80 Prepare next development iteration after release 1.0.0-rc.1 (#944)
d584b2a Log file name in FileSize.kt (#945)
0786d51 Package naming: Allow default package in kotlin files in buildSrc (#947)
6dec699 Logging of file name in DiktatRule is unreliable (#948)
8bcc157 Fix ClassCastException in LocalVariablesRule (#951)
93bfd08 Diktat should avoid fixing/raising a warning an issue for overriden contructor arguments (#952)
70066f6 Don't use PSI for line number calculation (#950)
ab8d603 Correct fix with string concat (#946)
b464a3a Improve logging (#953)
30018f3 Fix logic of false-positives in InlineClassesRule (#958)
c4ec999 Prepare next development iteration after release 1.0.0-rc.2 (#960)
5dd4574 Boolean expressions rule: Remove inline comments from boolean condition while parsing (#962)
70c5b97 Bugfixes in KdocComments rule (#968)
7eb4698 MULTIPLE_INIT_BLOCKS: fixer can break the code (#967)
e957129 Bugfix in COMPACT_OBJECT_INITIALIZATION (#973)
be0b6d4 Improve way of header KDOC detection (#974)
a4ce78f Add more ignored imports (#980)
aee9fb2 Remove ignoreFolders option from FileSize rule (#981)
ae307fe Bugfix of NPE in complex binary expressions in long line rule (#983)
9e3fde2 Kdoc fixer false-negative: not generating a Kdoc for several public functions (#989)
36c8479 Support KDoc generation for rethrown exceptions (#990)
39e6c8f Fix NPE with commented import in kotlin scripts (#999)
a5cd939 Lambda incorrect trigger (#1008)
131575e Error with regex in COMMENTED_OUT_CODE rule (#995)
8b4823a Prepare next development iteration after release 1.0.0-rc.3 (#1010)
da86140 expect/actual removing abstract modifier (#1011)
e67c8a6 Interface vs Data class bug#1003 (#1014)
1098554 Kdoc for actual methods (#1018)
841ef74 Package name bug#1015 (#1016)
88f5d64 Keep return type when converting function to function with expression body (#1017)
55b5724 Incorrect pointing of warning in WRONG_INDENTATION Rule (#1024)
bad9569 Kdoc fixer: not ask @return on simple delegating getters: (#1022)
9fb026f Bugfix: Update @property KDoc tag if changing private property name (#1035)
0a975e7 Incorrect fix in COMPACT_OBJECT_INITIALIZATION rule (#1036)
6a0d4ec NPE in COMPLEX_BOOLEAN_EXPRESSION rule (#1052)
d22d0a4 NPE in NewlinesRule: (#1050)
18471a0 Added Save in diktat smoke tests (#1060)
502dfe3 Changed save.toml (#1066)
c1d823a Bugfix/kdoc annotation (#1072)
9493df5 Bugfix for blank lines rule (#1073)
8f11587 GH Actions: Set minimal retention for gradle test reports (#1080)
631c10e Fix: CommentsRule should not treat presence of import keyword alone as code (#1096)
45f91c9 Update ktlint from 0.39.0 to 0.43.0 (#816)
d249fbb Fix NPE in GENERIC_VARIABLE_WRONG_DECLARATION (#1098)
1dd9230 Fix: AbstractClassesRule should also take properties into account (#1102)
314882e Prepare next development iteration after release 1.0.0-rc.4 (#1103)
f17101e Bugfix in AVOID_NULL_CHECKS: don't change null checks in lambdas (#1104)
fd604b3 Fix: Don't check length of import statements (#1108)
b188eab Fixing an NPE related to an Identifier Name (#1111)
0f1f8af Bugfix in TRAILLING_COMMA rule: insert comma in a proper place when there are exists comments (#1110)
80d64ed Fix: Don't remove abstract for subclasses (#1116)
e302afa Fix: Don't remove newline when moving comments into class KDoc (#1119)
5e2e2ed Fix: proper newlines for return type (#1122)
b68c5f3 Bugfix/single constructor should be primary failure (#1123)
0451db5 Fix of incorrect movement of inline comments (#1121)
91708c9 Gradle plugin: use PatternSet instead of FileCollection for inputs (#1118)
5d8ce43 Newline with annotation misleading message (#1131)
d55ce53 Bugfix for incorrect movement of expressions in init block (#1133)

This release has been prepared by @akuleshov7 @petertrr @kentr0w @aktsay6 @Cheshiriks @kgevorkyan @sanyavertolet

Release 1.0.0-rc.4

08 Nov 13:30
1dd9230
Compare
Choose a tag to compare

This release includes more than 20 bugfixes and important update of ktlint. Now diktat works with latest ktlint version 0.43.0 and diktat maven and gradle plugins are built with this version.

Fixes

8b4823a Prepare next development iteration after release 1.0.0-rc.3 (#1010)
da86140 expect/actual removing abstract modifier (#1011)
e67c8a6 Interface vs Data class bug#1003 (#1014)
1098554 Kdoc for actual methods (#1018)
841ef74 Package name bug#1015 (#1016)
88f5d64 Keep return type when converting function to function with expression body (#1017)
55b5724 Incorrect pointing of warning in WRONG_INDENTATION Rule (#1024)
bad9569 Kdoc fixer: not ask @return on simple delegating getters: (#1022)
9fb026f Bugfix: Update @property KDoc tag if changing private property name (#1035)
0a975e7 Incorrect fix in COMPACT_OBJECT_INITIALIZATION rule (#1036)
6a0d4ec NPE in COMPLEX_BOOLEAN_EXPRESSION rule (#1052)
d22d0a4 NPE in NewlinesRule: (#1050)
18471a0 Added Save in diktat smoke tests (#1060)
502dfe3 Changed save.toml (#1066)
c1d823a Bugfix/kdoc annotation (#1072)
9493df5 Bugfix for blank lines rule (#1073)
8f11587 GH Actions: Set minimal retention for gradle test reports (#1080)
631c10e Fix: CommentsRule should not treat presence of import keyword alone as code (#1096)
45f91c9 Update ktlint from 0.39.0 to 0.43.0 (#816)
d249fbb Fix NPE in GENERIC_VARIABLE_WRONG_DECLARATION (#1098)
1dd9230 Fix: AbstractClassesRule should also take properties into account (#1102)

Housekeeping

d59f563 Bump maven.api.version from 3.8.1 to 3.8.2 (#1033)
002c1c3 Bump kaml-jvm from 0.35.0 to 0.35.2 (#1032)
91d5535 Bump kotlin.version from 1.5.21 to 1.5.30 (#1039)
37b2478 Bump detekt-maven-plugin from 1.17.1 to 1.18.1.1 (#1046)
2d57744 Bump plexus-cipher from 1.8 to 2.0 (#1049)
56168af Bump kaml-jvm from 0.35.2 to 0.35.3 (#1045)
d9b832f Bump junit.version from 5.7.2 to 5.8.0 (#1051)
fc1b7a2 Bump dokka-maven-plugin from 1.5.0 to 1.5.30 (#1053)
d9b48f0 Bump kotlin.version from 1.5.30 to 1.5.31 (#1056)
05994e7 Bump kotlinpoet from 1.9.0 to 1.10.0 (#1057)
728b689 Bump assertj-core from 3.20.2 to 3.21.0 (#1055)
d1eb914 Bump junit.version from 5.8.0 to 5.8.1 (#1062)
735339a Bump guava from 30.1.1-jre to 31.0-jre (#1064)
66a57c5 Bump kotlin-multiplatform-diff-jvm from 0.2.0 to 0.3.0 (#1069)
185abb1 Bump maven.api.version from 3.8.2 to 3.8.3 (#1068)
987158c Bump guava from 31.0-jre to 31.0.1-jre (#1067)
45e7b41 Bump whelk-io/maven-settings-xml-action from 18 to 20 (#1070)
430da10 Bump kotlinx-serialization-json-jvm from 1.2.2 to 1.3.0 (#1061)
2dc8e8b Bump kaml-jvm from 0.35.3 to 0.36.0 (#1063)

Release 1.0.0-rc.3

29 Jul 14:29
131575e
Compare
Choose a tag to compare

Bugfixes

131575e Error with regex in COMMENTED_OUT_CODE rule (#995)
a5cd939 Lambda incorrect trigger (#1008)
39e6c8f Fix NPE with commented import in kotlin scripts (#999)
36c8479 Support KDoc generation for rethrown exceptions (#990)
9e3fde2 Kdoc fixer false-negative: not generating a Kdoc for several public functions (#989)
ae307fe Bugfix of NPE in complex binary expressions in long line rule (#983)
aee9fb2 Remove ignoreFolders option from FileSize rule (#981)
a4ce78f Add more ignored imports (#980)
be0b6d4 Improve way of header KDOC detection (#974)
e957129 Bugfix in COMPACT_OBJECT_INITIALIZATION (#973)
7eb4698 MULTIPLE_INIT_BLOCKS: fixer can break the code (#967)
70c5b97 Bugfixes in KdocComments rule (#968)
5dd4574 Boolean expressions rule: Remove inline comments from boolean condition while parsing (#962)

Housekeeping

e51714b Bump maven.itf.version from 0.10.0 to 0.11.0 (#997)
d63410c Bump kaml-jvm from 0.34.0 to 0.35.0 (#996)
7cf8eb0 Bump kotlin.version from 1.5.20 to 1.5.21 (#986)
4ac0f89 Bump commons-io from 2.10.0 to 2.11.0 (#987)
502baa7 Bump kotlinx-serialization-json-jvm from 1.2.1 to 1.2.2 (#977)
3f8f0e6 Bump dokka-maven-plugin from 1.4.32 to 1.5.0 (#976)
c4ec999 Prepare next development iteration after release 1.0.0-rc.2 (#960)

Release 1.0.0-rc.2

02 Jul 14:21
30018f3
Compare
Choose a tag to compare

Fixes

30018f3 Fix logic of false-positives in InlineClassesRule (#958)
b464a3a Improve logging (#953)
ab8d603 Correct fix with string concat (#946)
70066f6 Don't use PSI for line number calculation (#950)
93bfd08 Diktat should avoid fixing/raising a warning an issue for overriden contructor arguments (#952)
8bcc157 Fix ClassCastException in LocalVariablesRule (#951)
6dec699 Logging of file name in DiktatRule is unreliable (#948)
0786d51 Package naming: Allow default package in kotlin files in buildSrc (#947)
d584b2a Log file name in FileSize.kt (#945)

Housekeeping

14c6f8a Bump kotlin.version from 1.5.10 to 1.5.20 (#941)
7218a80 Prepare next development iteration after release 1.0.0-rc.1 (#944)

Release 1.0.0-rc.1

30 Jun 10:16
578f2a5
Compare
Choose a tag to compare

We are ready to consider diktat stable enough for 1.0.0 release. This release candidate includes several important bugfixes and is a step towards polishing and releasing 1.0.0.

Fixes

4112a2b Bugfix in the LineLength rule (#929)
94a4d1c Sort typealiases in TopLevelOrderRule (#931)
3dc16b2 Fixes in code style, update documentation (#930)
8e04338 Bugfix of NPE in LongLine rule on Binary Expressions (#932)
2f96c88 Replacing replaceWithText() method with rawReplaceWithText() (#939)
1bf6e43 Correct fix of long comment (#933)
578f2a5 WRONG_NAME_OF_VARIABLE_INSIDE_ACCESSOR false positive trigger (#943)

Housekeeping

8d971dc Prepare next development iteration after release 0.6.2 (#922)
08c6c15 Bump commons-io from 2.9.0 to 2.10.0 (#927)
6ee9d43 Bump maven-dependency-plugin from 3.1.2 to 3.2.0 (#926)
0628e73 Bump assertj-core from 3.19.0 to 3.20.2 (#936)
8eedcd6 Bump slf4j.version from 1.7.30 to 1.7.31 (#935)
91864bd Bump whelk-io/maven-settings-xml-action from 17 to 18 (#937)
b0b4055 Bump kotlinpoet from 1.8.0 to 1.9.0 (#942)

Release 0.6.2

10 Jun 15:22
b57b71d
Compare
Choose a tag to compare

Fixes

b57b71d Changing logging for critical exceptions (#917)

Housekeeping

2c3c434 Adding more documentation (#916)
2c3c434e4f346fb5a057dcf6e05c02a98a9f1c11Bump whelk-io/maven-settings-xml-action from 16 to 17 (#910)