mirror of
https://github.com/lukaszraczylo/kportal.git
synced 2026-06-05 23:03:40 +00:00
e50f73ec92
- [x] Add golangci-lint v2 configuration with formatters section - [x] Reorganize linters-settings under linters section - [x] Replace if-else chains with switch statements for clarity - [x] Wrap all ignored error returns with `_ = ` pattern - [x] Add OSC 8 hyperlink helper function for clickable ports - [x] Add blank line in table styling function - [x] Remove unnecessary type assertion in test
32 lines
590 B
YAML
32 lines
590 B
YAML
# golangci-lint configuration
|
|
# https://golangci-lint.run/usage/configuration/
|
|
version: "2"
|
|
|
|
run:
|
|
timeout: 5m
|
|
tests: true
|
|
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
|
|
linters:
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- ineffassign
|
|
- staticcheck
|
|
- unused
|
|
- gosec
|
|
- gocritic
|
|
settings:
|
|
govet:
|
|
enable:
|
|
- fieldalignment
|
|
gosec:
|
|
excludes:
|
|
- G304 # File path provided as taint input - handled with #nosec comments where needed
|
|
gocritic:
|
|
disabled-checks:
|
|
- ifElseChain # Complex conditionals are clearer as if-else than switch true
|