From de6f777c6c76b3766d0788a67feba27bb452ce33 Mon Sep 17 00:00:00 2001
From: Vincent Lafeychine <vincent.lafeychine@proton.me>
Date: Thu, 11 Apr 2024 14:14:13 +0200
Subject: [PATCH] feat(ci): Clippy is now required to succeed

---
 .gitlab-ci.yml                 |  1 -
 rr_frontend/.cargo/config.toml | 16 ++++++++--------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 66115eeb..7b3dc09d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -59,7 +59,6 @@ nix-cache:
 
 clippy:
   stage: lint
-  allow_failure: true
   script:
    - cd rr_frontend
    - nix develop -c cargo clippy --all-targets --all-features --no-deps
diff --git a/rr_frontend/.cargo/config.toml b/rr_frontend/.cargo/config.toml
index 1badc216..9c73aa93 100644
--- a/rr_frontend/.cargo/config.toml
+++ b/rr_frontend/.cargo/config.toml
@@ -2,14 +2,14 @@
 rustflags = [
     # === ENABLE ALL LINTS ===
 
-    "-Wclippy::complexity",
-    "-Wclippy::correctness",
-    "-Wclippy::nursery",
-    "-Wclippy::pedantic",
-    "-Wclippy::perf",
-    "-Wclippy::restriction",
-    "-Wclippy::style",
-    "-Wclippy::suspicious",
+    "-Dclippy::complexity",
+    "-Dclippy::correctness",
+    "-Dclippy::nursery",
+    "-Dclippy::pedantic",
+    "-Dclippy::perf",
+    "-Dclippy::restriction",
+    "-Dclippy::style",
+    "-Dclippy::suspicious",
 
     # === REASONABLE LINTS ===
 
-- 
GitLab