Skip to content

Commit

Permalink
Merge pull request #12 from Narsil/master
Browse files Browse the repository at this point in the history
Enabling possibility to add custom arguments to clippy too.
  • Loading branch information
Fadi Hadzh authored Sep 11, 2020
2 parents 14b3e11 + 0c016ce commit 79fb5df
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
- id: fmt
name: fmt
description: Format files with cargo fmt.
entry: cargo fmt
language: system
types: [rust]
args: ['--']
- id: cargo-check
name: cargo check
description: Check the package for errors.
entry: cargo check
language: system
types: [rust]
pass_filenames: false
- id: clippy
name: clippy
description: Lint rust sources
entry: cargo clippy -- -D warnings
language: system
types: [rust]
pass_filenames: false
- id: fmt
name: fmt
description: Format files with cargo fmt.
entry: cargo fmt
language: system
types: [rust]
args: ["--"]
- id: cargo-check
name: cargo check
description: Check the package for errors.
entry: cargo check
language: system
types: [rust]
pass_filenames: false
- id: clippy
name: clippy
description: Lint rust sources
entry: cargo clippy
language: system
args: ["--", "-D", "warnings"]
types: [rust]
pass_filenames: false

0 comments on commit 79fb5df

Please sign in to comment.