forked from openebs/mayastor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
32 lines (32 loc) · 1.14 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
repos:
- repo: https://github.com/nix-community/nixpkgs-fmt
rev: master
hooks:
- id: nixpkgs-fmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: trailing-whitespace
- repo: local
hooks:
- id: rust-style
name: Rust style
description: Run cargo fmt on files included in the commit. rustfmt should be installed before-hand.
entry: cargo fmt --all -- --check
pass_filenames: true
types: [file, rust]
language: system
- id: rust-lint
name: Rust lint
description: Run cargo clippy on files included in the commit. clippy should be installed before-hand.
entry: cargo clippy --all --all-targets -- -D warnings
pass_filenames: false
types: [file, rust]
language: system
- id: js-lint
name: JS lint
description: Run semistandard on files included in the commit. semistandard npm module should be installed before-hand.
entry: semistandard --env mocha --env node --verbose --fix
pass_filenames: true
types: [file, javascript]
language: system