Commit 7f4e2fe
refactor(eslint/func-names): clean up implementation and improve documentation (#13601)
## Refactor and Standardize: `eslint/func-names`
This PR refactors the implementation of the `func-names` rule to make
the codebase more **idiomatic Rust**, improving readability,
maintainability, and alignment with Rust best practices.
In addition, the rule documentation has been **standardized and
enhanced** following the documentation skeleton described in #13389.
### Changes included
* Refactored rule logic with clearer naming, early returns, and
idiomatic Rust patterns (`if let`, `Option`, `Iterator`, etc.).
* Improved structure for better readability and maintainability.
* Focused on optimization and performances.
* Standardized rule documentation for consistency across the linter
rules.
> [!NOTE]
> This PR is focused solely on refactoring and documentation; no test
behavior is modified.
---------
Co-authored-by: Cameron Clark <cameron.clark@hey.com>1 parent 97c8d06 commit 7f4e2fe
1 file changed
+335
-224
lines changed
0 commit comments