Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Add golangci-lint for more linting goodness#24

Merged
ddworken merged 5 commits intomasterfrom
david/golangci-lint
Aug 23, 2019
Merged

Add golangci-lint for more linting goodness#24
ddworken merged 5 commits intomasterfrom
david/golangci-lint

Conversation

@ddworken
Copy link
Copy Markdown
Contributor

Per @joshblum's suggestion, adds golangci-lint. This adds it in both the pre-commit hooks and on circle.

@ddworken ddworken requested a review from joshblum August 22, 2019 21:13
log.Log(conf, fmt.Sprintf("Processing SignatureRequest from user=%s on device='%s' keyID:%s, principals:%s, expiration:%s, pubkey:%s",
sr.Username, sr.DeviceName, keyID, principals, conf.GetKeyExpiration(), sr.SSHPublicKey))
signature, err := SignKey(conf.GetCAKeyLocation(), keyID, principals, conf.GetKeyExpiration(), sr.SSHPublicKey)
if err != nil {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was actually a really good catch from it :)

Comment thread .circleci/config.yml Outdated
Comment thread .golangci.yml
@@ -0,0 +1,8 @@
linters:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Mirrored except stricter. There are some additional linters that I have enabled that seem useful and are more practical to have enabled given that this is a smaller project. Do you object to any of the additional ones I added?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

sounds great!

Comment thread .pre-commit-config.yaml Outdated
Comment thread src/cmd/kssh/kssh.go
@ddworken ddworken requested a review from joshblum August 23, 2019 14:55
@ddworken ddworken merged commit c9be4a5 into master Aug 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants