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

refactor: enable gofmt linter #264

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Nov 5, 2024

This enables the linter without the simplify flag, meaning things like unneeded type declarations will not be considered violations - ideally we want to have that checked, but we need to ensure that will be enforced internally first

Relates to #274

@G-Rath G-Rath force-pushed the linting/enable-gofmt branch from 97eec00 to 88c387b Compare March 25, 2025 19:11
@G-Rath G-Rath marked this pull request as ready for review March 25, 2025 19:14
@G-Rath G-Rath mentioned this pull request Mar 25, 2025
49 tasks
@@ -99,6 +99,8 @@ linters-settings:
- p: ^testing.T.Parallel$
pkg: ^testing$
analyze-types: true
gofmt:
simplify: false
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@another-rex @erikvarga is this still a concern? it feels like the internal process in regards to these public linters has been improved (assumingly they're now blocking on internal changes?) as main has had a green tick for a number of merges.

Are we in a position where we could just start enforcing simplify now, or do we want to wait some more?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Discussed offline, let's keep simplify as disabled.

@G-Rath G-Rath force-pushed the linting/enable-gofmt branch from 88c387b to 3ace2a3 Compare March 27, 2025 18:53
@copybara-service copybara-service bot merged commit 1ac1464 into google:main Apr 1, 2025
12 checks passed
@G-Rath G-Rath deleted the linting/enable-gofmt branch April 1, 2025 16:30
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