also lint --no-default-features (allow fail)
This commit is contained in:
parent
8b9947c2e4
commit
52e1532f78
2 changed files with 17 additions and 0 deletions
|
@ -30,6 +30,20 @@ lint:backend:
|
||||||
- Makefile
|
- Makefile
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
|
lint:backend_no_default_features:
|
||||||
|
stage: lint
|
||||||
|
image: $RUST_IMAGE
|
||||||
|
script:
|
||||||
|
- rustup component add clippy
|
||||||
|
- make backend_lint_no_default
|
||||||
|
rules:
|
||||||
|
- changes:
|
||||||
|
- migrations/**/*
|
||||||
|
- src/**/*
|
||||||
|
- Cargo.lock
|
||||||
|
- Makefile
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
#lint:frontend:
|
#lint:frontend:
|
||||||
# stage: lint
|
# stage: lint
|
||||||
# image: $NODE_IMAGE
|
# image: $NODE_IMAGE
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -27,6 +27,9 @@ lint: backend_lint frontend_lint
|
||||||
backend_lint:
|
backend_lint:
|
||||||
cargo clippy
|
cargo clippy
|
||||||
|
|
||||||
|
backend_lint_no_default:
|
||||||
|
cargo clippy --no-default-features
|
||||||
|
|
||||||
frontend_lint:
|
frontend_lint:
|
||||||
cd webui && yarn instlal && yarn lint
|
cd webui && yarn instlal && yarn lint
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue