mirror of
https://github.com/lukaszraczylo/oss-telemetry.git
synced 2026-10-12 00:45:30 +00:00
Anonymous OSS usage telemetry library with zero third-party deps. - Send(project, version): fire-and-forget POST to oss.raczylo.com/v1/ping - Disable() and Wait(timeout) helpers - Disable via DO_NOT_TRACK, OSS_TELEMETRY_DISABLED, or per-project env - Failproof: never blocks, never panics, never returns errors - Hand-written JSON (no encoding/json) and byte-loop validators (no regexp) - golangci-lint v2 clean, all tests pass with -race
37 lines
555 B
YAML
37 lines
555 B
YAML
version: "2"
|
|
|
|
run:
|
|
timeout: 2m
|
|
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- bodyclose
|
|
- errcheck
|
|
- errorlint
|
|
- gocritic
|
|
- gocyclo
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- prealloc
|
|
- revive
|
|
- staticcheck
|
|
- unconvert
|
|
- unused
|
|
settings:
|
|
gocyclo:
|
|
min-complexity: 12
|
|
revive:
|
|
rules:
|
|
- name: var-naming
|
|
- name: indent-error-flow
|
|
- name: superfluous-else
|
|
- name: unused-parameter
|
|
- name: redefines-builtin-id
|
|
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|