Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New rule UnneededRecKeyword #652

Merged
merged 8 commits into from
Jan 8, 2024
Merged

New rule UnneededRecKeyword #652

merged 8 commits into from
Jan 8, 2024

Conversation

Mersho
Copy link
Contributor

@Mersho Mersho commented Dec 26, 2023

Fixes #650

@Mersho Mersho changed the title AvoidMisleadingRecursiveKeywordInNonRecursiveFuncs: This rule finds recursive functions that don't call themselves This new rule finds recursive functions that doesn't call themselves Dec 26, 2023
@Mersho Mersho force-pushed the fix-650 branch 2 times, most recently from 4759778 to 2f2c570 Compare December 27, 2023 08:53
@knocte knocte changed the title This new rule finds recursive functions that doesn't call themselves New rule AvoidMisleadingRecursiveKeywordInNonRecursiveFuncs Dec 28, 2023
@knocte
Copy link
Collaborator

knocte commented Dec 28, 2023

@Mersho please rebase this, and after that add a commit that renames the rule to UnneededRecKeyword

@Mersho Mersho force-pushed the fix-650 branch 2 times, most recently from 2ab0adb to 46db572 Compare December 28, 2023 08:53
@knocte
Copy link
Collaborator

knocte commented Dec 28, 2023

@webwarrior-ws please review

@knocte knocte changed the title New rule AvoidMisleadingRecursiveKeywordInNonRecursiveFuncs New rule UnneededRecKeyword Dec 28, 2023
This commit resolves red CI on the "Run FSharpLint on itself"
step by removing the "rec" keyword from "isNested" function.
@Mersho Mersho force-pushed the fix-650 branch 5 times, most recently from f7df3b8 to 999d8b9 Compare January 2, 2024 13:16
Additionally, the "symbol" argument does not need parentheses
and the name was confusing, so I renamed it.
@knocte knocte merged commit aeadd7f into fsprojects:master Jan 8, 2024
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.

New rule AvoidMisleadingRecursiveKeywordInNonRecursiveFuncs
3 participants