refactor: add golangci-lint plus more code refactoring #8

Manually merged
dananglin merged 0 commits from golangci-lint into main 2023-08-21 03:13:01 +01:00
Owner

Add golangci-lint for linting and refactor the code based on the feedback from running it.

Changes:

  • Add configuration for golangci-lint.
  • Break the large function in create.go into smaller ones.
  • Rename internal/templateFuncs to internal/templatefuncs to remove the upper case letters in package name.
  • Add a mage target for lint tests.
Add `golangci-lint` for linting and refactor the code based on the feedback from running it. Changes: - Add configuration for `golangci-lint`. - Break the large function in create.go into smaller ones. - Rename `internal/templateFuncs` to `internal/templatefuncs` to remove the upper case letters in package name. - Add a mage target for lint tests.
dananglin force-pushed golangci-lint from 6e462347af to 71d62ecaf6 2023-08-21 03:10:48 +01:00 Compare
dananglin changed title from refactor: add golangci-lint + more code refactoring to refactor: add golangci-lint plus more code refactoring 2023-08-21 03:11:08 +01:00
dananglin manually merged commit 71d62ecaf6 into main 2023-08-21 03:13:01 +01:00
dananglin deleted branch golangci-lint 2023-08-21 03:13:20 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: apollo/spruce#8
No description provided.