Skip to content

Instantly share code, notes, and snippets.

@baturax
Last active August 31, 2026 19:15
Show Gist options
  • Select an option

  • Save baturax/398a8b99d002d9103f48e51ef9d7c0f9 to your computer and use it in GitHub Desktop.

Select an option

Save baturax/398a8b99d002d9103f48e51ef9d7c0f9 to your computer and use it in GitHub Desktop.
golangci
# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json
version: "2"
formatters:
enable:
- golines
- gofumpt
- gci
settings:
gci:
sections:
- standard
- localmodule
- prefix(github.com/baturax)
custom-order: true
no-inline-comments: true
no-lex-order: false
no-prefix-comments: true
golines:
chain-split-dots: true
max-len: 80
reformat-tags: true
shorten-comments: true
tab-len: 2
gofumpt:
extra:
group-params: true
clothe-returns: true
balance-calls: true
module-path: "unutma"
gofmt:
simplify: true
rewrite-rules:
- pattern: "interface{}"
replacement: "any"
- pattern: "a[b:len(a)]"
replacement: "a[b:]"
linters:
settings:
revive:
enable-all-rules: true
rules:
- name: package-comments
disabled: true
- name: exported
disabled: true
enable:
- asciicheck
- bidichk
- bodyclose
- canonicalheader
- containedctx
- copyloopvar
- cyclop
- dupl
- durationcheck
- embeddedstructfieldcheck
- errcheck
- errchkjson
- errorlint
- exhaustive
- fatcontext
- forbidigo
- funcorder
- gocritic
- goprintffuncname
- gosec
- govet
- iface
- ineffassign
- intrange
- mirror
- modernize
- musttag
- nestif
- nilerr
- nilnesserr
- perfsprint
- prealloc
- predeclared
- nosprintfhostport
- protogetter
- revive
- sloglint
- sqlclosecheck
- staticcheck
- tagalign
- tagliatelle
- unparam
- unused
- usestdlibvars
- whitespace
- wastedassign
@baturax

baturax commented Aug 21, 2026

Copy link
Copy Markdown
Author

i hate yamlllllllllll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment