Skip to content
Snippets Groups Projects

#1427: Introduce rust and gitlab-ci-linter pre-commit hooks

Closed #1427: Introduce rust and gitlab-ci-linter pre-commit hooks
Closed Moul requested to merge 1427_pre-commit into dev
4 files
+ 27
48
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 14
0
@@ -82,6 +82,20 @@ If all the tests are successful, the command ends like this:
Done in 43.80s.
```
### Pre-commit hooks
We are using [`pre-commit`](https://pre-commit.com/) tool to perform checks on staged changes before committing.
We are using it for `fmt` formatting, `clippy` linter, `cargo check` and `gitlab-ci` linting.
To install the `pre-commit`, run:
```bash
sudo apt install pre-commit
```
Install the hooks:
```bash
duniter> pre-commit install
```
### Configure your IDE
Personally, I use VsCodium/VsCode, so I give the configuration for this IDE.
Loading