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

Enable golangci linter goconst #3169

Closed
wants to merge 3 commits into from
Closed

Enable golangci linter goconst #3169

wants to merge 3 commits into from

Conversation

xoxys
Copy link
Member

@xoxys xoxys commented Jan 11, 2024

Split out from #2960

@xoxys xoxys requested a review from a team January 11, 2024 15:21
@6543 6543 enabled auto-merge (squash) January 11, 2024 15:50
@woodpecker-bot
Copy link
Collaborator

woodpecker-bot commented Jan 11, 2024

Deployment of preview was successful: https://woodpecker-ci-woodpecker-pr-3169.surge.sh

@lafriks
Copy link
Contributor

lafriks commented Jan 11, 2024

Not sure I like this linter 🤣

@xoxys
Copy link
Member Author

xoxys commented Jan 11, 2024

No strong opinion, feel free to close unmerged.

@lafriks
Copy link
Contributor

lafriks commented Jan 11, 2024

It's too strict on values as can be seen already in a lot of places need to add nolint comment, personally I don't like it because of it

@lafriks lafriks disabled auto-merge January 11, 2024 16:05
@xoxys
Copy link
Member Author

xoxys commented Jan 11, 2024

Well... There are only a few places where excludes were added... However.

@qwerty287
Copy link
Contributor

I agree to @lafriks.

we don't need separate variables for value like windows.

If we do this, please move the consts out of the migrations to model s and use it there too.

@xoxys
Copy link
Member Author

xoxys commented Jan 11, 2024

Please make a decision first if the linter should be activated or not before I spend more time on it.

@qwerty287
Copy link
Contributor

I think we shouldn't enable it.

@xoxys xoxys closed this Jan 11, 2024
@6543 6543 deleted the linter-goconst branch January 11, 2024 17:07
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.

5 participants