Skip to content

A good starter .golangci.yml ? #4393

Closed Answered by bombsimon
bytebeast asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think there's any one size fits all here. If anything I would say an empty config is the best place to start. But I see a few approaches you can take.

Just the bare minimum

This is what I mean with default. You can create an empty .golanci.yaml so it's easy to change things when you notice what it does for you, but you don't have to. Maybe you just want to start with some formatting options or you don't want to limit the number of same issues? Then this would be enough:

---
run:
  tests: true

output:
  format: colored-line-number
  print-issued-lines: false

issues:
  max-issues-per-linter: 0
  max-same-issues: 0

Try it all

You can take a different approach and just enable everyt…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants