-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Tighten backend linting #2106
Tighten backend linting #2106
Conversation
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.
Reviewed 15 of 15 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @imnasnainaec)
Backend/Startup.cs
line 113 at r1 (raw file):
{ _logger.LogError("Must set {EnvName} environment variable to string of length {MinLength} or longer.", secretKeyEnvName, minKeyLength);
Why is this method of formatting the message preferred here? I know that in Python, the templated literal (the previous method) is preferred.
Code quote:
_logger.LogError("Must set {EnvName} environment variable to string of length {MinLength} or longer.",
secretKeyEnvName, minKeyLength);
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.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)
Backend/Startup.cs
line 113 at r1 (raw file):
Previously, jmgrady (Jim Grady) wrote…
Why is this method of formatting the message preferred here? I know that in Python, the templated literal (the previous method) is preferred.
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2254
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2106 +/- ##
==========================================
- Coverage 48.97% 48.93% -0.04%
==========================================
Files 296 296
Lines 9477 9478 +1
Branches 698 698
==========================================
- Hits 4641 4638 -3
- Misses 4274 4278 +4
Partials 562 562
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)
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.
Reviewed 6 of 6 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)
This change is