-
Notifications
You must be signed in to change notification settings - Fork 73
Add SynchronousFunctionNames rule #834
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
Add SynchronousFunctionNames rule #834
Conversation
It would address that issue if it completely fixed it, but it doesn't. So you should change that word to "Contributes to..." |
Changed PR description. |
src/FSharpLint.Core/Rules/Conventions/SynchronousFunctionNames.fs
Outdated
Show resolved
Hide resolved
src/FSharpLint.Core/Rules/Conventions/Naming/SynchronousFunctionNames.fs
Outdated
Show resolved
Hide resolved
src/FSharpLint.Core/Rules/Conventions/SynchronousFunctionNames.fs
Outdated
Show resolved
Hide resolved
6c936c1 to
db38171
Compare
2f6ef00 to
f380e99
Compare
| this.Parse """ | ||
| module Foo = | ||
| let Bar(): int = | ||
| let BazAsync(): int = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@webwarrior-ws I found a bug; to cover it let's rename this to asyncBaz, and then error msg should contain "baz" (not Baz)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a test for it and fixed the rule.
Put error message into resources file Text.resx.
That use methods instead of functions.
For case when function is named asyncBar. Suggested name should also start from lowercase letter.
d9939fc to
7eb3749
Compare
Contributes to #517.