-
Notifications
You must be signed in to change notification settings - Fork 0
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
Linting baseline and initial Circle/CI integration #81
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These are not nice in CircleCi/YAML.
Should be faster
Although this would be nice as a separate commit, I'm working to get the automated builds going. It ended up in this branch. This added `if err != nil` in many places.
This moves linting into the container in the makefile. Also, more code with linting issues that I forgot to commit. Want to see this work in Circle/CI.
Should we use *all* of the lints? Either way, lots of formatting.
Feel like there must be a better way. Even with the fixes, the linter is angry. This does address CodeQL, however.
Dependabot is angry.
IsabelLaurenceau
previously approved these changes
Jan 13, 2025
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.
After docker desktop update containers run correctly, and I am able to run make containerlint
as expected
jadudm
dismissed
IsabelLaurenceau’s stale review
January 14, 2025 14:09
The merge-base changed after approval.
Superceded by #88. Closing this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We prefer smaller PRs that merge more often.
Haiku-length summary
Amidst drifting snow
So much lint like water flows
Once, and future, fluff
Additional details
linting
This introduces
golangci-lint
, and integrates it into the stack. This can (currently) be triggered locally either viamake lint
(if the tools are installed locally), ormake containerlint
to run in a containerized environment.Hundreds of linting errors were addressed. Some were flagged as
nolint
on a per-file basis (e.g. linting involving naming of test packages, or some documentation linting), some were flagged per-line, and some were put in theignore
list.The linting that was flagged/ignored will need to be addressed as debt. This provides us an initial baseline where the code passes a rigorous set of linting, and makes clear where we want to do some fixes (the ignores/
nolint
lines).Circle/CI
We cannot use Github Actions. We can use Circle/CI. This introduces a basic C/CI config. It allows us to
The configuration successfully lints in the cloud, and only goes on to build the application if the linting passes.
related tickets
This work is in partial fulfillment of:
PR Checklist: Submitter
main
into your branch shortly before creating the PR. (You should also be mergingmain
into your branch regularly during development.)PR Checklist: Reviewer
make macup ; make e2e"
(FIXME)The larger the PR, the stricter we should be about these points.