Skip to content

Feature/golangci lint configuration file#657

Open
kjetils-labs wants to merge 3 commits intomainfrom
feature/golangci-lint
Open

Feature/golangci lint configuration file#657
kjetils-labs wants to merge 3 commits intomainfrom
feature/golangci-lint

Conversation

@kjetils-labs
Copy link
Copy Markdown
Contributor

  • Added a golangci-lint configuration file.
  • Exclued dupl from test.go files.
  • Added comments from documentation that are nice to have.

@havardelnan havardelnan requested a review from Copilot January 26, 2026 13:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a golangci-lint configuration file to standardize linting rules for the Go project. The configuration enables a comprehensive set of linters with customized settings for code quality, complexity checks, and error handling while excluding duplication checks from test files.

Changes:

  • Created .golangci.yml with golangci-lint version 2 configuration
  • Enabled 19 linters including default linters (errcheck, govet, ineffassign, staticcheck, unused) and additional quality linters
  • Configured linter-specific settings for complexity thresholds and code quality checks
  • Excluded dupl linter from test files to allow acceptable duplication in tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rogerwesterbo
Copy link
Copy Markdown
Collaborator

Do we need a custom, or could we go with the default? and I guess we have a lot to fix first ...

Exclued dupl from test.go files.
Added comments from documentation that are nice to have.
@kjetils-labs kjetils-labs force-pushed the feature/golangci-lint branch from 85d4559 to 4af7c51 Compare January 27, 2026 06:53
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

3 participants