Skip to content

Conversation

@webwarrior-ws
Copy link
Contributor

Fixed rules to only take into account function and method names.

Added test cases make sure the rule doesn't fire on bindings that are not functions.

Specifically for NestedFunctionNames and UnnestedFunctionNames
rules. Added test cases make sure the rule doesn't fire on
bindings that are not functions.
Fix rules to only take into account function and method names.
@knocte
Copy link
Collaborator

knocte commented Aug 6, 2025

Let's also add a test (for each rule) that has a function with no parameters (so, with the unit ()) param, where the rule should give a positive.

@webwarrior-ws
Copy link
Contributor Author

Let's also add a test (for each rule) that has a function with no parameters (so, with the unit ()) param, where the rule should give a positive.

But we already have such tests.

@knocte
Copy link
Collaborator

knocte commented Aug 6, 2025

I just checked tests/FSharpLint.Core.Tests/Rules/Conventions/Naming/NestedFunctionNames.fs and all testcases with nested funcs have one param.

Added a test for nested function with no parameters where the
rule gives a positive.
@knocte knocte merged commit c304232 into fsprojects:master Aug 6, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants