Skip to content

lint and fix before commit

Nils Windisch requested to merge feature/lint-and-fix-before-commit into develop



lint and fix code when invoking commit command. when linting finds erros, that are not automagically fixable, the pre-commit hokk exits with an error code and you can't proceed with you commit. So only linted and fixed code can be added to the repo.


Are we able to test this new feature?

Yes, you can test by following these steps:

  • write code that doesn't lint properly, but is fixable by --fix parameter and watch a commit command fix it and let you commit things

/cc Mathias Göbel, Frank Schneider, Michelle Weidling

Merge request reports