dapperfu / pre-commit-matlab-examples

Repository / scratchpad for testing out pre-commit-hooks-matlab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example Repository for pre-commit-hooks-matlab

Example project with m-files and Simulink models to be linted/cleaned.

pre-commit hooks:

  • MATLAB: Auto cleanup code with TidyCode' smartIndent & justify).
  • Simulink:
    • Close all open subsystems and leave a Simulink model at the top level.
    • Zoom all subsystems to fit to the window.

See Also: pre-commit-hooks-matlab

Debugging / Development

git clone https://github.com/dapperfu/pre-commit-matlab-examples.git
git clone https://github.com/dapperfu/pre-commit-hooks-matlab.git

cd pre-commit-matlab-examples

pre-commit try-repo ..\pre-commit-hooks-matlab --all-files --verbose

pre-commit should run once and then Fail.

Run again.

pre-commit should run again and Pass all checks. (All files have been fixed).

About

Repository / scratchpad for testing out pre-commit-hooks-matlab


Languages

Language:MATLAB 100.0%