Release 1.2.0
Read first
Important: due to the bugfixes done in IntelliJ Idea formatter we finally removed several our workarounds, so whitespace/newlines formatting was slightly changed and code style updated. You can easily use FIX
in diktat or our specially prepared .editorconfig to update formatting. This is why this release is not a patch, but has a minor version.
New features
- Diktat moved to Kotlin 1.7.0 and ktlint 0.46.1 by @nulls in #1357
- Adding new logic for suppressing inspection by @akuleshov7 in #1328
- Add
.editorconfig
which conforms to the Kotlin style guide by @0x6675636b796f75676974687562 in #1348 - DebugPrintRule by @nulls in #1314
- New Rule COMMENTS_BY_KDOC was implemented by @icemachined in #1350
- Support DistributiveLaw as jbool.Rule by @nulls in #1369
Bugfixes
- Unsigned integer literal is perhaps incorrectly marked as a MAGIC_NUMBER by @Cheshiriks in #1276
- Delete all set of in descriptions of rule classes by @Arrgentum in #1273
- Configure Renovate by @renovate in #1277
- Fix logic "BinaryExpression" in "LineLength" Rule by @Arrgentum in #1292
- Fixed build on Unix by @nulls in #1296
- BooleanExpressionRule fixes by @nulls in #1295
- Enhance
examples/maven/pom.xml
with a doc comment by @unix-junkie in #1298 - Refactor
DiktatMavenPluginIntegrationTest
to ease troubleshooting in case of test failures by @unix-junkie in #1304 - Correctred NAME_ID by @Arrgentum in #1306
- Reused c.p.k.c.Rule.VisitorModifier.RunAfterRule by @nulls in #1310
- Supported comments after latest enum element by @nulls in #1302
- Rename
s/analysis-dev/saveourtool/g
in URLs by @unix-junkie in #1311 - Also set the default value of
extendedIndentOfParameters
tofalse
if there's no config file by @0x6675636b796f75676974687562 in #1329 - Typos in DEBUG_PRINT by @nulls in #1338
- NullPointerException on KDOC inspection by @Cheshiriks in #1334
- Set the default values of
extendedIndentAfterOperators
andextendedIndentBeforeDot
tofalse
by @0x6675636b796f75676974687562 in #1342 - Prohibit the use of *-imports via
.editorconfig
by @0x6675636b796f75676974687562 in #1353 - Enforce the import order consistent with the project policy by @0x6675636b796f75676974687562 in #1355
- Bugfix/new lines rule dot qualified expression and safe access expression by @Arrgentum in #1337
- Add unit tests for mis-indented expression body functions by @0x6675636b796f75676974687562 in #1363
- Bugfix/long line in string template by @Arrgentum in #1297
- Fix for NSFE when mvn test run from /diktat-rules by @nulls in #1366
- Fix for NSFE when mvn test run from /diktat-rules: follow up by @nulls in #1367
- Bugfix/indentation of multiline string by @Arrgentum in #1364
- Report unit test results via GitHub Actions by @0x6675636b796f75676974687562 in #1370
- Fix for UNUSED_IMPORT in KDoc by @nulls in #1368
- Add unit tests which reproduce #1347 by @0x6675636b796f75676974687562 in #1371
- Clean up the code by @0x6675636b796f75676974687562 in #1376
- Stop using
DEFAULT_INDENT_SIZE
directly by @0x6675636b796f75676974687562 in #1382 - Bugfix/fix cause long line by @Arrgentum in #1373
- Adding new
macosArm64
target for inspection by @akuleshov7 in #1386 - Indent only
TEMPLATE_ENTRY
nodes immediately following a newline by @0x6675636b796f75676974687562 in #1387 - Corrected analysis if maximum lineLength drop in first symbol of the last word long binary expression by @Arrgentum in #1389
- Fix ordering issue by @nulls in #1390
- Add more integration tests for
extendedIndentAfterOperators
flag by @0x6675636b796f75676974687562 in #1395 - Added this operator references to the list with similar operator references by @Arrgentum in #1393
New Contributors
- @maugagneur made their first contribution in #1289
- @unix-junkie (@0x6675636b796f75676974687562) made their first contribution in #1298
- @icemachined made their first contribution in #1350
Full Changelog: v1.1.0...v1.2.0