Skip to content

0.9.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@thindil thindil released this 14 Jun 04:37
· 76 commits to trunk since this release

This is the ninth alpha release of the program. It brings a couple of new options for the rules of the program, updated unit tests and fixes for some bugs. As usual, a couple of new bugs arrived too. Tag BREAKING means the change break compatibility with a previous version of the program. Below are changes since the last release:

Added

  • The rule objects can now check for existence of constructors of objects.
    It follows Nim coding standard, the constructors must have names like
    newObjectName or initObjectName to be detected.
  • The rule namingconv can now check naming conventions for declared types.
  • The rule params can now check do routines use int or string for their
    parameters declarations.
  • BREAKING: added option fields to objects rule to check only fields of
    objects. The old option all now also checks for existence of constructors
    of objects.

Changed

  • Updated the project's documentation.
  • BREAKING: changed the name of the rule paramsUsed to params. The
    reason after this change is to make the rule more generic, allowing it to
    check more things related to routines' parameters.

Removed

  • BREAKING: Option checkType from complexity rule. It wasn't needed as the
    the rule checks only cyclomatic complexity. If in the future there will
    be added more types of complexities to check, the option can be
    reintroduced.

Fixed

  • The rule hasDoc doesn't detect documentation in functions.
  • Crash when trying to fix code documentation with hasDoc rule.
  • Adding code documentation with hasDoc rule.
  • Checking moveable branches with ifstatements rule.