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 3 of 8

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.

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.

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 as `0`,
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.

0.9.30

* Fix a lexing/parsing bug in all tools where classes containing more
than one methods block, with a function named `end` in one of the
blocks (but not the last one) would confuse the lexer in ending the
special treatment for words such as `methods` prematurely. This
manifested in a confusing error message pointing at `methods`
stating that we expect `methods`.

This is now fixed, and you can name functions `end` again, no matter
where.

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.

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.

Page 3 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.