Skip to content
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

[CI] golang linter configuration + bootstrapper fixes #1743

Merged
merged 2 commits into from
Nov 22, 2023
Merged

Conversation

tomaszjonak
Copy link
Contributor

No description provided.

Comment on lines +19 to +21
ErrFailUpdate = errors.New("failed to update")
ErrFailCreate = errors.New("failed to create")
ErrCgroupNotExist = errors.New("cgroup does not exist")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather keep error message starting with caps, easier to spot when embedded in other messages

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on the contrary. Golang usually goes with chaining in logging akin to err3: err2: err1 and actively encourages lowercase. On top of it if you include error messages within logs it may make sentences weird with sudden capitalization.

Copy link
Collaborator

@noboruma noboruma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go after comments addressed

@tomaszjonak tomaszjonak force-pushed the tomasz/linters branch 2 times, most recently from 246163c to b655305 Compare November 21, 2023 13:07
@tomaszjonak tomaszjonak merged commit 273e46f into main Nov 22, 2023
1 of 2 checks passed
@tomaszjonak tomaszjonak deleted the tomasz/linters branch November 22, 2023 09:27
tomaszjonak pushed a commit that referenced this pull request Nov 22, 2023
Fixes CI/build messed up by #1743
tomaszjonak pushed a commit that referenced this pull request Nov 22, 2023
Fixes CI/build messed up by #1743
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants