Release 1.2.2
What's Changed
Rules
Data classes
- Hotfix for Data Classes rule by @akuleshov7 in #1445
- Data class rule: removing several cases from the scope of the inspection by @akuleshov7 in #1471
Indentation
- Aligned chained method calls (dot-qualified and safe-access expressions) are no longer reported as false positives (#1336).
- A separate
extendedIndentForExpressionBodies
flag has been added, defaulting tofalse
(#1443).
The flag controls whether continuation indent is used to indent expression bodies
(previously, controlled withextendedIndentAfterOperators
). The corresponding 3rd party flags are:- IDEA:
CONTINUATION_INDENT_FOR_EXPRESSION_BODIES
, .editorconfig
:ij_kotlin_continuation_indent_for_expression_bodies
.
- IDEA:
- The
extendedIndentAfterOperators
flag now defaults totrue
to be consistent with IDEA (#1447). - Within expressions, the indent after an opening parenthesis
(
followed by a newline is now controlled by theextendedIndentAfterOperators
flag (#1448)
KDoc
- Add
@property
,@receiver
, and@exception
to the list of essential tags by @0x6675636b796f75676974687562 in #1468
Comments
- Don't reformat indent-style comments by @0x6675636b796f75676974687562 in #1441
- Correct the (sometimes meaningless) message in the
COMMENT_WHITE_SPACE
check by @0x6675636b796f75676974687562 in #1466
Gradle plug-in
- gradle-plugin: target Kotlin runtime 1.6 by @petertrr in #1419
- gradle-plugin: Set
user.home
property if SARIF reporter is active by @petertrr in #1426 - gradle-plugin: fix docs and tests for Groovy DSL by @petertrr in #1428
- [gradle-plugin] use empty string as default value for reporter type by @petertrr in #1458
- gradle-plugin: add task to merge sarif reports by @petertrr in #1456
Known issues
- After the upgrade to version 1.2.2, Gradle plug-in requires the
:mergeDiktatReports
task to be present (#1484).
Documentation
- Update available-rules.md by @vtchem in #1417
- Update guide-TOC.md by @vtchem in #1431
- Update guide-chapter-0.md by @vtchem in #1430
- Update guide-chapter-1.md by @vtchem in #1432
- README typo fix by @PhilipDukhov in #1453
- Get rid of the collapsible blocks in the CLI usage section by @0x6675636b796f75676974687562 in #1427
- Correct the rule description by @0x6675636b796f75676974687562 in #1467
Infrastructure
- Hotfix for CodeQl build by @akuleshov7 in #1429
- Migrate diktat smoke tests to SAVE-cli mechanism by @Cheshiriks in #1388
- Update metrics workflow fails after SAVE has been integrated by @Cheshiriks in #1463
- Update versions in pom.xml and documentation after 1.2.1 release by @github-actions in #1418
- Update all non-major dependencies (except core Kotlin) by @renovate in #1421
- Update dependency org.apache.maven.plugins:maven-assembly-plugin to v3.4.1 by @renovate in #1437
- Update renovate.json by @petertrr in #1460
- Update the version in
examples/maven/pom.xml
after the release by @0x6675636b796f75676974687562 in #1440 - Add
gradle-kotlin-dsl-multiproject
to the list of example projects by @0x6675636b796f75676974687562 in #1446 - Add the default value of
extendedIndentBeforeDot
todiktat-analysis.yml
by @0x6675636b796f75676974687562 in #1449 - Allow PR's to succeed even if authored by non-collaborators by @0x6675636b796f75676974687562 in #1459
- Add the retry logic and diagnostics to
DiktatSaveSmokeTest
by @0x6675636b796f75676974687562 in #1477 - Fix the missing fat JAR problem during the release procedure by @0x6675636b796f75676974687562 in #1479
- Improve
JAVA_HOME
comparison for forked tests by @0x6675636b796f75676974687562 in #1480 - Remove the circular dependency between
diktat-rules
anddiktat-ruleset
by @0x6675636b796f75676974687562 in #1481 - Simplify Maven configuration by running
DiktatSaveSmokeTest
as an integration test by @0x6675636b796f75676974687562 in #1482
Full Changelog: v1.2.1...v1.2.2