Releases: florianschanda/miss_hit
Release 0.9.34
0.9.34
- Relaxed docstring recognition: now you can have blank lines (without
the comment indicator) in your docstring.
Release 0.9.33
0.9.33
-
Add a new configuration option "indent_function_file_body" for MH
Style. This is true by default. If you set it to false, then you get
the odd indentation style that somewhat common in the MATLAB world,
where functions in function files do not have their body indented.
For example:function z = Potato(w) z = -w;
Note that this option only affects top-level functions in function
files. Any other function (e.g. a method, or a nested function) is
not affected. -
Fix an issue where a broken symlink could cause the tools to crash
in some circumstances. Broken symlinks are now ignored.
Release 0.9.32
0.9.32
- [CORRECTNESS] Fix another lexer bug where a matrix with a unary
minus in front did not correctly get interpreted as a separate
element in some cases. This could be seen in[-.1 -~0]
which was
seen as-1.1
, instead of[-.1 -1]
. This could lead mh_style to
change the meaning of the code. You will notice that this is almost
the same as the bug in 0.9.31. I hate everything surrounding
matrices. I suspect this will not be the laste one like this.
Release 0.9.31
0.9.31
-
[CORRECTNESS] Fix a lexer bug where a matrix with a unary minus in
front did not correctly get interpreted as a separate element in
some cases. This could be seen in[1 -[1]]
which was seen as0
,
instead of[1 -1]
. This could lead mh_style to change the meaning
of the code. This issue affected both matrices and cells. -
In some cases configuration files could be parsed in a different
order on different platforms. This makes no practical difference,
except for some error messages that would be slightly differently
worded. This can be visible in the internal MISS_HIT testsuite. This
is now fixed.
Release 0.9.30
0.9.30
-
Fix a lexing/parsing bug in all tools where classes containing more
than one methods block, with a function namedend
in one of the
blocks (but not the last one) would confuse the lexer in ending the
special treatment for words such asmethods
prematurely. This
manifested in a confusing error message pointing atmethods
stating that we expectmethods
.This is now fixed, and you can name functions
end
again, no matter
where.
Release 0.9.29
0.9.29
-
Support the
!
and!=
operators in Octave mode. In Octave mode we
now also no longer parse!
as if it was a MATLAB shell escape. -
Work around an extremely weird bug on some Windows envionments. The
behaviour of os.path.abspath could sometimes differ, leading to
weird problems like parsing the same config file twice (and then
complaining about duplicate definitions). One known environment is
using a Windows Python in a git bash environment, but there may be
others. This is now hopefully fixed in all such cases.
Release 0.9.28
0.9.28
-
New command-line option for all tools (but only applicable for MH
Metric for now):--ignore-justifications-with-tickets
. This option
can be used to ignore all justifications that quote a ticket. The
idea here is that these would be temporary justifications (e.g. "to
be fixed in ABC-123"), and you might want to check from time to time
how much technical debt you have. -
MH Lint now checks and enforces the correct syntax for TestTags.
Release 0.9.27
0.9.27
- MH_Trace now considers all functions in an entrypoint/library tests
directory to be a test (not just code in classes with a Test method
block). This essentially adds support for test systems that are not
based thematlab.unittest.TestCase
.
Release 0.9.26
0.9.26
-
All tools have a new common option
--include-version
, which will
print the MISS_HIT version similar to--version
; but will continue
execution. This is helpful to debug e.g. CI issues. -
MH_Trace supports a new pragma
No_Tracing
, which can be used to
remove functions from the tracing output. This can be helpful if you
have e.g. a test driver or project initialisation code that is
neither product code or a test.
Release 0.9.25
0.9.25
-
Support Octave identifiers in Octave mode. In Octave you can start
identifiers with an underscore, but you can't do it in MATLAB. -
Additional information in tracing output produced by
mh_trace
:test
- True if the function is a unit test and false otherwise.shared
- Only present if you use project configuration. True if
this function is part of a library, and False if it is party of
an entrypoint.
-
Minor improvement for error messages on config files with syntax
errors: suggestions are offered now.