miss_hit
miss_hit copied to clipboard
MATLAB Independent, Small & Safe, High Integrity Tools - code formatter and more
Need to decide on a supported sub-set of blocks. Need significant parsing and interpretation of models. The following seems like a good first set of blocks to think about supporting:...
Existing projects that are trying to adopt miss_hit may want to generate a report with just unjustified violations, but not presented as error messages, but a subset of the "worst...
The old `mdl` format is an undocumented proprietary plain-text format. - [ ] work out format - [ ] create simplified ast that can read/write models without understanding them -...
Single target assignments don't need brackets: ``` [x] = foo ``` Matrix with a single element doesn't need brackets: ``` x = [1] x = [y] x = [1:2:10]' ```...
For loops can contain a set of parenthesis, but this is really awkward.
``` a = [1, 2, 3, 4, 5, 6, 8, 9, 10] ``` Is not the same as ``` a = [1, 2, 3, ... 4, 5, 6, ... 8,...
https://uk.mathworks.com/help/matlab/matlab_prog/upgrade-code-for-r2019b-changes-to-function-precedence-order.html Previously this printed 1 and 2: ``` function myfunc local(1); % local is a function local = 2; disp(local); end function local(x) disp(x) end ``` This now errors: ```...