ToolboxHub / ToolboxToolbox

Declarative dependency management for Matlab.
The Unlicense
27 stars 11 forks source link

Report function shadowing #83

Open gkaguirre opened 6 years ago

gkaguirre commented 6 years ago

Functions in Installed toolboxes may shadow either Matlab toolboxes, or one installed toolbox may shadow components of other installed toolboxes.

A useful enhancement for TbTb would be to have it report when a function in an installed toolbox has shadowed either the matlab version or the version in another toolbox. A flag could be set to over-ride this reporting if the user wished.

This function (UniqueFuncNames) on matlab central reports all shadowed functions: https://www.mathworks.com/matlabcentral/fileexchange/27861-uniquefuncnames

The report that this function produces includes many, many examples of functions in matlab toolboxes shadowing each other. Perhaps this UniqueFuncNames could be modified to exclude these collisions.

gkaguirre commented 6 years ago

A very fancy enhancement would be the ability to specify, within the json file for toolbox, the identities of functions that are intentionally shadowing matlab built-in (or other) functions, and thereby silence reporting of those collisions.