Miss-hit

Latest version: v0.9.44

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 8

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 the `matlab.unittest.TestCase`.

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.

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.

0.9.24

* Fix issue in MH Style where the new rule `naming_parameters` would
complain about `~` parameters. These will now always pass name
checking, regardless on how your regular expression for parameters
looks like.

0.9.23

* MH Trace can now produce tracing information from code. You can place
tracing tags in code using the new `pragma Tag`:

%| pragma Tag("Potato");


* MH Style and MH Copyright now support octave-style copyright notices
(i.e. `Copyright (c) ...` instead of `(c) Copyright ...`).

The default regular expression for matching copyright notices has
changed and must now include a new group. If you have configured
this setting, you must also include the new `copy` group in your
regular expression, otherwise the tools break in interesting ways.

* MH Style supports a new rule "naming_parameters" that enforces a
naming scheme for function and method inputs and outputs.

* MH Style supports a new rule "naming_enumerations" that enforces a
naming scheme for class enumerations.

* Fix various parsing corner cases in parsing *extremely* dubious
code. MISS_HIT previously rejected all of these as parse errors, now
it complains about (and fixes) the style instead:

* A command-form invocation after a `try` on the same line is now
correctly recognised: `try rotate3d off; end`

* A global statement can be terminated by a comma or semicolon:
`try, global dt, f = f*dt; end`

* A single quote directly after a keyword introduces a character
array: `case'potato'`

* The expression in a for loop does not require any termination:
`for i=1:indx(1)-1 y(i) = y(indx(1)); end`

* Fix parsing of `Contents.m` in class directories (previously we
expected some code, but these files are supposed to be blank).

* Fix a tool crash in MH Metrics: when producing the HTML report the
tool would crash if there were parse errors in at least one file.

0.9.22

* Fix bug in MH Trace: libraries unit tests were considered part of
the source. This meant tests may have been analysed that would
otherwise have been (deliberately) excluded from analysis.

Page 4 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.