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

Add string.Format analyzer to IDiagnosticLogger.Log methods #3926

Open
jamescrosswell opened this issue Jan 30, 2025 · 0 comments
Open

Add string.Format analyzer to IDiagnosticLogger.Log methods #3926

jamescrosswell opened this issue Jan 30, 2025 · 0 comments

Comments

@jamescrosswell
Copy link
Collaborator

Originally posted by @bruno-garcia in #3923 (comment)

See issue #3922

Basically someone (yeah, OK, it was me) accidentally used the wrong index in the format string when calling LogDebug.

As Bruno points out, we should use an analyzer to prevent this happening in the future, since it could crash the user's application.

Solutions

We could quickly enable this for JetBrains IDEs like so:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant