0.8.0
Pre-release
Pre-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 checktry
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 usingint
or
string
types. - More types of the program's rules' options:
natural
for integer values of 0
or more andpositive
for integer values greater than 0. - The rule
varDeclared
can now detect do a variable was declared withint
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 theifStatements
rule. - Better detection of
for
statements by theforStatements
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 settingoutput
was changed. - Better detection of assignments by the
assignments
rule.
Fixed
- The rule
ifstatements
checkswhen
statements for upgrade tocase
statements. - Showing the explanation for negative checks of the
forStatements
rule. - The result for negative
count
type check forassignments
and
varuplevel
rules. - The result for
count
type check forcasestatements
,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 forhasdoc
,
hasentity
,haspragma
andlocalhides
rules. - The summary information for checks for
paramsused
andvardeclared
rules. - The result for
search
type check forcasestatements
,ifstatements
,
forstatements
,localhides
andvaruplevel
rules. - The summary information for negative
search
type check forhasdoc
and
localhides
rules.