From 136c79f41a49256b343a07c3ad51316f451aa860 Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Sun, 5 May 2019 20:17:37 -0300 Subject: [PATCH] add cargo check hook --- .pre-commit-hooks.yaml | 7 +++++++ hooks.yaml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index f14a629..22bec7d 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -5,3 +5,10 @@ language: system files: \.rs$ args: [] +- id: cargo-check + name: cargo check + description: Check the package for errors. + entry: cargo check + language: system + files: \.rs$ + pass_filenames: false diff --git a/hooks.yaml b/hooks.yaml index f14a629..22bec7d 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -5,3 +5,10 @@ language: system files: \.rs$ args: [] +- id: cargo-check + name: cargo check + description: Check the package for errors. + entry: cargo check + language: system + files: \.rs$ + pass_filenames: false