From 0ced8d053c2ff6ff86f3329f24c7c0854fa8466b Mon Sep 17 00:00:00 2001 From: InSync Date: Fri, 28 Feb 2025 15:11:14 +0700 Subject: [PATCH] [`flake8-copyright`] Add links to applicable options (`CPY001`) (#16421) --- .../rules/flake8_copyright/rules/missing_copyright_notice.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/ruff_linter/src/rules/flake8_copyright/rules/missing_copyright_notice.rs b/crates/ruff_linter/src/rules/flake8_copyright/rules/missing_copyright_notice.rs index 51628a4695..f2a3ff49f2 100644 --- a/crates/ruff_linter/src/rules/flake8_copyright/rules/missing_copyright_notice.rs +++ b/crates/ruff_linter/src/rules/flake8_copyright/rules/missing_copyright_notice.rs @@ -13,6 +13,11 @@ use crate::Locator; /// ## Why is this bad? /// In some codebases, it's common to have a license header at the top of every /// file. This rule ensures that the license header is present. +/// +/// ## Options +/// - `lint.flake8-copyright.author` +/// - `lint.flake8-copyright.min-file-size` +/// - `lint.flake8-copyright.notice-rgx` #[derive(ViolationMetadata)] pub(crate) struct MissingCopyrightNotice;