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 golines pre-commit hook #501

Merged
merged 2 commits into from
Oct 16, 2024
Merged

add golines pre-commit hook #501

merged 2 commits into from
Oct 16, 2024

Conversation

hmajid2301
Copy link
Contributor

I tried to copy the gofmt and move it over to golines as the tooling is very similar.
https://github.com/segmentio/golines

Copy link
Member

@sandydoo sandydoo left a comment

Choose a reason for hiding this comment

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

You have to import golines from pkgs and add it to tools. See tools.nix.

@sandydoo sandydoo added the enhancement New feature or request label Oct 10, 2024
@sandydoo sandydoo assigned sandydoo and unassigned sandydoo Oct 10, 2024
@hmajid2301
Copy link
Contributor Author

I have made the change, please let me know if I did it correctly? Thanks

type = types.submodule {
imports = [ hookModule ];
options.settings = {
flags = mkOption {
Copy link
Member

Choose a reason for hiding this comment

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

For what it's worth, all hooks accept an args option that does this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh good to know for the next one thanks

@sandydoo sandydoo merged commit 43983c5 into cachix:master Oct 16, 2024
4 checks passed
@hmajid2301 hmajid2301 deleted the add-golines branch October 17, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants