Skip to content

Release 0.1.6

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Dec 09:47
d2223c5

Release highlights

*Diktat checks it's own code

  • 3 new rules
  • a lot of bugfixes

New features

  • d8651d2 Rule 6.1.3 Do not use the primary constructor if it is empty and has no sense (#528)
  • 4ab49e1 Rule 6.1.7 implicit backing property(#443) (#465)
  • 89873bb Mechanism to exclude files from check (#563)
  • 11d2c4c diktat-analysis.yml can be read from a path, where jar is stored (#588)
  • fefe2fd Changing functionality for AVOID_NULL_CHECK (#564)
  • 80cad9d Rule 6.4.1: Avoid using utility classes/objects (#508)
  • 312bab6 No trigger on individual tag without KDoc (#583)
  • ac92d54 KDoc check property in class (#598)

Bugfixes

  • 205dbfc Removing complex cases from the warning related to null checks (#532)
  • 3888e94 Bugfix. ClassCastException in IndentationRule when blank line is added after @implNote tag in KDoc (#527)
  • 0bf93cf Bugfix. Newline at the beginning of code block is not removed if there are more than one (#537)
  • a1ccdbd WhiteSpaceRule after NewlinesRule (#549)
  • 0dd9f90 different functions due to semicolon (#557)
  • cd83754 Bugfix. False-positive LOCAL_VARIABLE_EARLY_DECLARATION (#535)
  • 0bc75c8 bugfix/make-kdoc-functions-not-mandatory(#551) (#565)
  • 3e91e26 Wrong braces with comments (#540)
  • 07829e0 Private property in KDoc (#575)
  • 047ad05 Fix for #585 - false positive NO_BRACES_IN_CONDITIONALS_AND_LOOPS when there is a comment in when entry (#591)
  • 4ce391a Bugfix. Comments should be indented as the code they are commenting (#566)
  • 2349037 hotfix: NPE in IndentationRule on last comment in code block (#595)
  • 6d4a8ef Bugfix. KdocMethod should not raise warning on override fun (#594)
  • 078b6d7 Bugfix. Lambda passed as an argument is forced to be on the same line as the previous argument (#545)
  • 27b7973 Overridden functions are excluded from FUNCTION_BOOLEAN_PREFIX (#567)
  • dc1ba8d Removing transitive dependency on kotlinpoet (#584)
  • 592031c Bugfix. NPE in indentation rule(#555) (#596)
  • 6d31422 Fix handling empty inputs in diktat-gradle-plugin (#611)
  • 0af6e32 function style bug in NewlinesRule (#580)
  • ca50c60 Fix for ArrayIndexOutOfBoundsException in #371 (#612)
  • ac07d98 Bugfix. CompactInitializationRule builds incorrect tree(#599) (#600)
  • d2223c5 Removed file path from warning messages (#621)

Docs

Housekeeping

Dependency updates

  • 090e575 Bump kotlin.version from 1.4.10 to 1.4.20 (#562)
  • 9224019 Bump junit in diktat-maven-plugin from 3.8.2 to 4.13.1 (#590)
  • 4e16a72 Bump dokka-maven-plugin from 1.4.10 to 1.4.20 (#465)