-
Notifications
You must be signed in to change notification settings - Fork 107
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
test(lint): refactor logs and add linting rules #2045
Conversation
38de96b
to
d9e774a
Compare
Think about this pattern ... pkg/log/constants.go const RepoNotFoundMsg = "repo not found" log.Info().Msg(RepoNotFoundMsg) |
Error msgs ... to be standardized. "Failed to ..." "Failed to <verb>" All strings in msgs should be lowercase and not LOWERCASE Str("component", component).Msg("...") |
Add a log linter if possible. |
eab9675
to
7612d2e
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2045 +/- ##
==========================================
- Coverage 92.06% 92.00% -0.06%
==========================================
Files 165 165
Lines 28623 28687 +64
==========================================
+ Hits 26352 26394 +42
- Misses 1678 1697 +19
- Partials 593 596 +3 ☔ View full report in Codecov by Sentry. |
7612d2e
to
4840afd
Compare
19726ff
to
e89b043
Compare
8c707a9
to
ecf44e1
Compare
f96e892
to
9c8aacb
Compare
c134a4a
to
9df9fc5
Compare
I have added 2 linting rules for now:
|
457c132
to
57aef9f
Compare
5768ee6
to
c5adc1f
Compare
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.
Otherwise looks ok
3b8dfc4
to
85914c9
Compare
Signed-off-by: Ramkumar Chinchani <[email protected]> Signed-off-by: Laurentiu Niculae <[email protected]> Signed-off-by: Andrei Aaron <[email protected]>
85914c9
to
363fe94
Compare
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.
lgtm
What type of PR is this?
Which issue does this PR fix:
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:
Automation added to e2e:
Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.