-
Notifications
You must be signed in to change notification settings - Fork 698
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 [StringSyntax("CompositeFormat")]
to all because
parameters
#2635
Conversation
Pull Request Test Coverage Report for Build 9330038889Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
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.
For some reason the Qodana scan failed.
I don't really understand what is wrong or what I am supposed to do. |
It doesn't seem to be related to your changes. We're investigating it. |
@psychotoad try rebase onto current develop and force push |
It is caused by Qodana. JetBrains is working on a fix already. |
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.
Looks good!
If you search for these two regexes, I found ~30 more more places to add it.
[\(,][ \r\n]*string [a-zA-Z]+,[ \r\n]+(params )?object\[
[\(,][ \r\n]*string because
Except MessageBuilder.Build
(as it may contain {reason}
), IAssertionScope.WithExpectation
, IAssertionScope.FailWith
and their implementations
Qodana for .NETIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
Qodana now shows "String formatting method problems" in the tests. How do I disable these checks in the tests? |
You could add - name: FormatStringProblem
paths:
- Tests to qodana.yml (root directory) if you want to disable it completely for the given paths OR add |
Huh.. thats weird.. can you try the other method? |
Wait, now only 4 out of 5 warnings got ignored? |
This should work. |
For some reason it did not in one place. I solved it with with disable + restore. |
Have you noticed the compile error in last pipeline run? https://github.com/fluentassertions/fluentassertions/actions/runs/9318831327/job/25663184462 |
Thanks for notifying me. |
[StringSyntax("CompositeFormat")]
to all because
parameters
Implements #2630
IMPORTANT
./build.sh --target spellcheck
or.\build.ps1 --target spellcheck
before pushing and check the good outcome