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

Feature: "DotnetNamingConventions" rule #693

Open
knocte opened this issue Jan 31, 2024 · 1 comment
Open

Feature: "DotnetNamingConventions" rule #693

knocte opened this issue Jan 31, 2024 · 1 comment

Comments

@knocte
Copy link
Collaborator

knocte commented Jan 31, 2024

  • Interfaces names should start with I.
  • Generic type names should start with T.
  • Exception type names should end with Exception.
  • Methods/funcs names starting with Async should have return type Async<_>.
  • Methods/funcs names finishing with Async should have return type Task or Task<_>.
  • Last but not least, a cosmetic one: any name containing the string Fsharp should be flagged and recommend proper capitalisation FSharp.
@knocte
Copy link
Collaborator Author

knocte commented Feb 4, 2024

Interfaces names should start with I.

Oops, there's already a rule for this: https://fsprojects.github.io/FSharpLint/how-tos/rules/FL0036.html

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

No branches or pull requests

1 participant