From 655e6060b2ef3915215e0d795c79131f1a48d7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Vald=C3=A9s=20Castillo?= Date: Sun, 17 Nov 2024 22:50:51 -0800 Subject: [PATCH] Update RULES_DESCRIPTIONS.md (#1134) Describe var-naming's limitation on evaluating test file functions. --- RULES_DESCRIPTIONS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RULES_DESCRIPTIONS.md b/RULES_DESCRIPTIONS.md index 06e5272..d76f6b1 100644 --- a/RULES_DESCRIPTIONS.md +++ b/RULES_DESCRIPTIONS.md @@ -997,7 +997,7 @@ _Configuration_: N/A ## var-naming -_Description_: This rule warns when [initialism](https://go.dev/wiki/CodeReviewComments#initialisms), [variable](https://go.dev/wiki/CodeReviewComments#variable-names) or [package](https://go.dev/wiki/CodeReviewComments#package-names) naming conventions are not followed. +_Description_: This rule warns when [initialism](https://go.dev/wiki/CodeReviewComments#initialisms), [variable](https://go.dev/wiki/CodeReviewComments#variable-names) or [package](https://go.dev/wiki/CodeReviewComments#package-names) naming conventions are not followed. It ignores functions starting with `Example`, `Test`, `Benchmark`, and `Fuzz` in test files, preserving `golint` original behavior. _Configuration_: This rule accepts two slices of strings and one optional slice with single map with named parameters. (it's due to TOML hasn't "slice of any" and we keep backward compatibility with previous config version)