Skip to content

0.8.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@thindil thindil released this 23 Apr 05:21
· 164 commits to trunk since this release

This is the eight alpha release of the program. It brings a couple of new rules for the program, updated unit tests and fixes for many bugs. Plus 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 configuration option to enable the program's summary at the end of its
    work. Currently, it shows only how much time elapsed and the highest memory
    usage.
  • New rule tryStatements to check try statements' except branches in a
    code do they are empty or contain an exception with the selected name.
  • More information about the program's error to error messages
  • New rule object. It can check if the object's type's declarations have all
    their fields public or private and do they are declared by using int or
    string types.
  • More types of the program's rules' options: natural for integer values of 0
    or more and positive for integer values greater than 0.
  • The rule varDeclared can now detect do a variable was declared with int or
    string type.

Changed

  • Using unittest2 package for the project's unit tests.
  • BREAKING: adding or removing rules from the program doesn't need to
    update file rulesList.txt. Now it is just adding or removing the Nim file
    with the rule's code to rules directory.
  • Better detection of if statements by the ifStatements rule.
  • Better detection of for statements by the forStatements rule.
  • Updated README.md.
  • BREAKING: added the option to set if the log file should be cleared
    before the logging starts. It can break the old configuration file, because
    the syntax of the setting output was changed.
  • Better detection of assignments by the assignments rule.

Fixed

  • The rule ifstatements checks when statements for upgrade to case
    statements.
  • Showing the explanation for negative checks of the forStatements rule.
  • The result for negative count type check for assignments and
    varuplevel rules.
  • The result for count type check for casestatements, ifstatements and
    localhides rules.
  • Showing the detailed information about found result for count type of
    the program's rules.
  • The summary information for negative count type check for hasdoc,
    hasentity, haspragma and localhides rules.
  • The summary information for checks for paramsused and vardeclared rules.
  • The result for search type check for casestatements, ifstatements,
    forstatements, localhides and varuplevel rules.
  • The summary information for negative search type check for hasdoc and
    localhides rules.