From 3b9ea37b0eff4c6ad2ca30ac56aa2175ac13612c Mon Sep 17 00:00:00 2001 From: devitway Date: Sun, 15 Mar 2026 19:27:36 +0000 Subject: [PATCH] fix: cargo fmt, add .gitleaks.toml allowlist for doc examples - remove extra blank lines in openapi.rs and secrets/mod.rs - allowlist commit 92155cf (curl -u admin:yourpassword in README) --- .gitleaks.toml | 8 ++++++++ nora-registry/src/openapi.rs | 1 - nora-registry/src/secrets/mod.rs | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .gitleaks.toml diff --git a/.gitleaks.toml b/.gitleaks.toml new file mode 100644 index 0000000..8e1df97 --- /dev/null +++ b/.gitleaks.toml @@ -0,0 +1,8 @@ +# Gitleaks configuration +# https://github.com/gitleaks/gitleaks + +[allowlist] + description = "Allowlist for false positives" + + # Documentation examples with placeholder credentials + commits = ["92155cf6574d89f93ee68503a7b68455ceaa19af"] diff --git a/nora-registry/src/openapi.rs b/nora-registry/src/openapi.rs index ade11b0..253ba24 100644 --- a/nora-registry/src/openapi.rs +++ b/nora-registry/src/openapi.rs @@ -5,7 +5,6 @@ //! //! Functions in this module are stubs used only for generating OpenAPI documentation. - #![allow(dead_code)] // utoipa doc stubs — not called at runtime, used by derive macros use axum::Router; diff --git a/nora-registry/src/secrets/mod.rs b/nora-registry/src/secrets/mod.rs index 0bba218..4961363 100644 --- a/nora-registry/src/secrets/mod.rs +++ b/nora-registry/src/secrets/mod.rs @@ -1,7 +1,6 @@ // Copyright (c) 2026 Volkov Pavel | DevITWay // SPDX-License-Identifier: MIT - //! Secrets management for NORA //! //! Provides a trait-based architecture for secrets providers: