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

Make all Go source file names snake case #4558

Merged
merged 3 commits into from Jul 3, 2023
Merged

Conversation

MichaelSnowden
Copy link
Contributor

@MichaelSnowden MichaelSnowden commented Jun 28, 2023

What changed?
I renamed all of our Go source code files so that they're snake case instead of camel case.

Why?
This was an annoying inconsistency we carried over from much older code in the repo.

How did you test it?
The renaming process was part of an automated script (https://gist.github.com/MichaelSnowden/47576fffe27aa1cae6b26eaccec7ab55), so it should be consistent. Also, I don't see us doing anything in our codebase that involves parsing our own source files by path:

image

PS: here's a link to the GPT convo I had to generate this renaming script: https://chat.openai.com/share/7f2d011a-a8da-4fa4-9c6d-e09102fdd49f

Potential risks
Mainly merge conflicts, but I used git mv so that these are renames instead of deletes/adds, so that shouldn't be a big issue.

Is hotfix candidate?
No.

@MichaelSnowden MichaelSnowden requested a review from a team as a code owner June 28, 2023 19:28
Copy link
Member

@alexshtin alexshtin left a comment

Choose a reason for hiding this comment

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

I planned this change long time ago. Thanks @MichaelSnowden for doing it.

Copy link
Member

Choose a reason for hiding this comment

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

This should be test_history_v2_persistence.go.

Copy link
Member

Choose a reason for hiding this comment

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

Or I would better remove this test_ prefix because all these files are in persistence-tests directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. Removed this prefix from all the files in that dir

@MichaelSnowden MichaelSnowden enabled auto-merge (squash) July 3, 2023 17:37
@MichaelSnowden MichaelSnowden merged commit 4b4dbf3 into master Jul 3, 2023
10 checks passed
@MichaelSnowden MichaelSnowden deleted the snowden/rename branch July 3, 2023 18:23
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.

None yet

2 participants