-
Notifications
You must be signed in to change notification settings - Fork 6
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
chore/linting #24
chore/linting #24
Conversation
Signed-off-by: Bruno Bressi <[email protected]>
…gestions\n- RoutingTree is now a pointer to avoid mutex value copy\n- fixed some tests\n- added constants\n- simplified some loops Signed-off-by: Bruno Bressi <[email protected]>
- linted files based on suggestions - RoutingTree is now a pointer to avoid mutex value copy - fixed some tests - added constants - simplified some loops Signed-off-by: Bruno Bressi <[email protected]>
…into chore/linting
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.
Some minor things that can be improved
Additionally we should talk about/take care of the many open TODO comments that are in our code base. |
Signed-off-by: Bruno Bressi <[email protected]>
Signed-off-by: Bruno Bressi <[email protected]>
Signed-off-by: Bruno Bressi <[email protected]>
Signed-off-by: Bruno Bressi <[email protected]>
PR ready after call with developers. The tests will fail (errors unhandled and unittests). Those are handled in a separate PR. |
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 overall, just had some minor questions/notes.
I have just added 2 small things: Indent for json response of checks metrics endpoint; Reduced interval of health check to 15 sec. This will be configurable in the future by #34 PR is LGTM |
Motivation
Close #23
Changes
Added linting with golangci, turned off some of the most strict linters. Also implemented most of the linter's suggestions. We should discuss some of the TODOs before merging (a lot of errors were left unchecked...)
Tests done
TODO