From 52e1532f785e07409d7fa56c4ffb4bb0c476aba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Fri, 28 Jan 2022 14:29:43 +0100 Subject: [PATCH] also lint --no-default-features (allow fail) --- .gitlab-ci.yml | 14 ++++++++++++++ Makefile | 3 +++ 2 files changed, 17 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e90cde..38e6785 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,6 +30,20 @@ lint:backend: - Makefile 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: # stage: lint # image: $NODE_IMAGE diff --git a/Makefile b/Makefile index 4a706a1..5eb69a4 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,9 @@ lint: backend_lint frontend_lint backend_lint: cargo clippy +backend_lint_no_default: + cargo clippy --no-default-features + frontend_lint: cd webui && yarn instlal && yarn lint