Skip to content

0.4.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@thindil thindil released this 08 Jun 05:06
· 1142 commits to trunk since this release

This is the fourth alpha release of the program. It brings the new type of rules: fix which allows to automatically or semi-automatically fix the detected problems in the code. It also has some updates to existing rules, fixes for bugs and probably a nice amount of new ones. ;) Below are changes since the last release:

Added

  • Checking global variables declarations, do they have documentation with
    hasDoc rule.
  • New type of rules: fix. For most rules, it just executes a configured
    command when a rule finds a problem, but some rules can automatically fix
    the reported problem. Please refer to the program's documentation how the
    type of rules works.
  • The option to enable checking public fields of types declarations for
    documentation for hasDoc rule.
  • Ability to check usage of parameters in macros only for paramsUsed rule.

Changed

  • Better checking for named parameters by namedParams rule.
  • Don't check for named parameters in defined procedure by namedParams rule.
  • Don't check for type or value for declarations which unpack tuples by
    varDeclared rule.
  • Updated the project's documentation.
  • BREAKING: rule hasDoc doesn't check public fields of objects types for
    documentation.
  • Updated contributing guide.

Fixed

  • Typos in Changelog.
  • hasDoc rule doesn't detect if procedure doesn't have documentation if one
    of its child has it.
  • Message level for hasEntity rule when it doesn't find the selected entity
    with check type of the rule.
  • Message text for hasEntity rule when the program's verbosity is set to
    higher level than default.
  • Negation doesn't work for paramsUsed rule.
  • Detection of variables which can be updated to let or const with
    varUplevel rule.
  • Result of negative check for varUplevel rule.