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

Add formatted code and linting #149

Merged

Conversation

meyermarcel
Copy link
Contributor

No description provided.

@meyermarcel meyermarcel force-pushed the add-formatted-code-and-linting branch 2 times, most recently from ac0337c to a6ca7e0 Compare November 29, 2024 15:13
@meyermarcel meyermarcel force-pushed the add-formatted-code-and-linting branch from 7ef9fdb to e308895 Compare November 29, 2024 15:17
@meyermarcel
Copy link
Contributor Author

Tests run with Go 1.23. I hope this is okay.

@meyermarcel
Copy link
Contributor Author

Because golangci-lint uses internally the go command in grammars/calculator/calculator.go I needed to remove

/go:build grammars
// +build grammars

Without the build tags the linter works. Maybe it would good if //go:build can be defined in peg file to have it in the generated file. Maybe this is already possible but I couldn't find out how this works.

@pointlander pointlander merged commit bd929c4 into pointlander:master Nov 30, 2024
1 check passed
@meyermarcel meyermarcel deleted the add-formatted-code-and-linting branch November 30, 2024 10:03
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