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)
This commit is contained in:
2026-03-15 19:27:36 +00:00
parent 233b83f902
commit 3b9ea37b0e
3 changed files with 8 additions and 2 deletions

8
.gitleaks.toml Normal file
View File

@@ -0,0 +1,8 @@
# Gitleaks configuration
# https://github.com/gitleaks/gitleaks
[allowlist]
description = "Allowlist for false positives"
# Documentation examples with placeholder credentials
commits = ["92155cf6574d89f93ee68503a7b68455ceaa19af"]

View File

@@ -5,7 +5,6 @@
//! //!
//! Functions in this module are stubs used only for generating OpenAPI documentation. //! 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 #![allow(dead_code)] // utoipa doc stubs — not called at runtime, used by derive macros
use axum::Router; use axum::Router;

View File

@@ -1,7 +1,6 @@
// Copyright (c) 2026 Volkov Pavel | DevITWay // Copyright (c) 2026 Volkov Pavel | DevITWay
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
//! Secrets management for NORA //! Secrets management for NORA
//! //!
//! Provides a trait-based architecture for secrets providers: //! Provides a trait-based architecture for secrets providers: