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

What is Message.Type used for? #48

Open
cmeeren opened this issue Dec 28, 2022 · 2 comments
Open

What is Message.Type used for? #48

cmeeren opened this issue Dec 28, 2022 · 2 comments

Comments

@cmeeren
Copy link
Contributor

cmeeren commented Dec 28, 2022

What is Message.Type used for (or intended to be used for in the future)? I'm unsure what to set it to for my linter rules.

@baronfel
Copy link
Collaborator

The type is only used to tell the user what the 'source' of the Warning or Error is. In FSAutoComplete, an analyzer-reported diagnostic will have a 'source' of F# Analyzers (%s{message.Type}) to tell the user which analyzer the diagnostic came from.

@cmeeren
Copy link
Contributor Author

cmeeren commented Dec 29, 2022

Ok, but since we have analyzer names, and we're talking about using those in configs etc., wouldn't it be better to remove Message and require an analyzer name instead?

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

2 participants