Compare commits

...

3 Commits

Author SHA1 Message Date
Arnie bd632f21ef Update golangci config 2025-12-15 22:21:58 +01:00
Arnie 0af7547c4b Update flakes 2025-12-07 21:07:28 +01:00
Arnie 2ac8a3a57f Update flakes 2025-11-09 21:12:18 +01:00
2 changed files with 114 additions and 98 deletions
+79 -56
View File
@@ -1,52 +1,10 @@
linters-settings:
errcheck:
check-type-assertions: true
gci:
sections:
- standard
- default
- prefix(go.c3c.cz)
forbidigo:
analyze-types: true
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- hugeParam
- paramTypeCombine
- sloppyReassign
govet:
enable-all: true
settings:
shadow:
strict: true
nolintlint:
require-explanation: true
require-specific: true
sloglint:
attr-only: true
context: scope
forbidden-keys:
- time
- level
- msg
- source
key-naming-case: snake
no-global: all
static-msg: true
stylecheck:
checks:
- all
- -ST1000
wsl:
allow-cuddle-declarations: true
version: "2"
run:
timeout: 3m
relative-path-mode: gitroot
linters:
disable-all: true
enable:
- bidichk
- bodyclose
@@ -56,14 +14,11 @@ linters:
- errorlint
- exhaustive
- forbidigo
- gci
- gocheckcompilerdirectives
- gochecksumtype
- goconst
- gocritic
- gofumpt
- gosec
- gosimple
- govet
- ineffassign
- makezero
@@ -77,11 +32,9 @@ linters:
- perfsprint
- prealloc
- predeclared
- protogetter
- sloglint
- spancheck
- staticcheck
- stylecheck
- unconvert
- unconvert
- unparam
@@ -90,11 +43,81 @@ linters:
- usestdlibvars
- wastedassign
- whitespace
- wsl
- wsl_v5
settings:
errcheck:
check-type-assertions: true
forbidigo:
analyze-types: true
gocritic:
disabled-checks:
- hugeParam
- paramTypeCombine
- sloppyReassign
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
govet:
enable:
- shadow
nolintlint:
require-explanation: true
require-specific: true
sloglint:
attr-only: true
no-global: all
context: scope
static-msg: true
key-naming-case: snake
forbidden-keys:
- time
- level
- msg
- source
staticcheck:
checks:
- all
- -ST1000
wsl_v5:
disable:
- decl
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofumpt
settings:
gci:
sections:
- standard
- default
- prefix(go.yrps.dev)
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-use-default: false
exclude:
- Error return value of .*\.Body\.Close. is not checked
output:
sort-order:
- file
show-stats: false
Generated
+35 -42
View File
@@ -6,7 +6,8 @@
"devenv"
],
"flake-compat": [
"devenv"
"devenv",
"flake-compat"
],
"git-hooks": [
"devenv",
@@ -18,11 +19,11 @@
]
},
"locked": {
"lastModified": 1748883665,
"narHash": "sha256-R0W7uAg+BLoHjMRMQ8+oiSbTq8nkGz5RDpQ+ZfxxP3A=",
"lastModified": 1760971495,
"narHash": "sha256-IwnNtbNVrlZIHh7h4Wz6VP0Furxg9Hh0ycighvL5cZc=",
"owner": "cachix",
"repo": "cachix",
"rev": "f707778d902af4d62d8dd92c269f8e70de09acbe",
"rev": "c5bfd933d1033672f51a863c47303fc0e093c2d2",
"type": "github"
},
"original": {
@@ -36,6 +37,7 @@
"inputs": {
"cachix": "cachix",
"flake-compat": "flake-compat",
"flake-parts": "flake-parts",
"git-hooks": "git-hooks",
"nix": "nix",
"nixpkgs": [
@@ -43,11 +45,11 @@
]
},
"locked": {
"lastModified": 1752148960,
"narHash": "sha256-4Vvyywn2pwpBGsGG1XR3LG6ppPDecoiDq5+by58CXCI=",
"lastModified": 1764927628,
"narHash": "sha256-AH2H5O9i7k3oarg3MooAnQtZxo44qxrUTUuvGOy/OEc=",
"owner": "cachix",
"repo": "devenv",
"rev": "8d475aa9368cee3433a042cd793f6daefb2825a2",
"rev": "247d7027f91368054fb0eefbd755a73d42b66fee",
"type": "github"
},
"original": {
@@ -59,11 +61,11 @@
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1747046372,
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
"lastModified": 1761588595,
"narHash": "sha256-XKUZz9zewJNUj46b4AJdiRZJAvSZ0Dqj2BNfXvFlJC4=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
"rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5",
"type": "github"
},
"original": {
@@ -76,16 +78,15 @@
"inputs": {
"nixpkgs-lib": [
"devenv",
"nix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1733312601,
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
"lastModified": 1760948891,
"narHash": "sha256-TmWcdiUUaWk8J4lpjzu4gCGxWY6/Ok7mOK4fIFfBuU4=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
"rev": "864599284fc7c0ba6357ed89ed5e2cd5040f0c04",
"type": "github"
},
"original": {
@@ -107,10 +108,11 @@
]
},
"locked": {
"lastModified": 1749636823,
"lastModified": 1760663237,
"narHash": "sha256-BflA6U4AM1bzuRMR8QqzPXqh8sWVCNDzOdsxXEguJIc=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "623c56286de5a3193aa38891a6991b28f9bab056",
"rev": "ca5b894d3e3e151ffc1db040b6ce4dcc75d31c37",
"type": "github"
},
"original": {
@@ -129,6 +131,7 @@
},
"locked": {
"lastModified": 1709087332,
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
@@ -146,12 +149,18 @@
"devenv",
"flake-compat"
],
"flake-parts": "flake-parts",
"flake-parts": [
"devenv",
"flake-parts"
],
"git-hooks-nix": [
"devenv",
"git-hooks"
],
"nixpkgs": "nixpkgs",
"nixpkgs": [
"devenv",
"nixpkgs"
],
"nixpkgs-23-11": [
"devenv"
],
@@ -160,43 +169,27 @@
]
},
"locked": {
"lastModified": 1750955511,
"narHash": "sha256-IDB/oh/P63ZTdhgSkey2LZHzeNhCdoKk+4j7AaPe1SE=",
"lastModified": 1761648602,
"narHash": "sha256-H97KSB/luq/aGobKRuHahOvT1r7C03BgB6D5HBZsbN8=",
"owner": "cachix",
"repo": "nix",
"rev": "afa41b08df4f67b8d77a8034b037ac28c71c77df",
"rev": "3e5644da6830ef65f0a2f7ec22830c46285bfff6",
"type": "github"
},
"original": {
"owner": "cachix",
"ref": "devenv-2.30",
"ref": "devenv-2.30.6",
"repo": "nix",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1747179050,
"narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1751949589,
"narHash": "sha256-mgFxAPLWw0Kq+C8P3dRrZrOYEQXOtKuYVlo9xvPntt8=",
"lastModified": 1764947035,
"narHash": "sha256-EYHSjVM4Ox4lvCXUMiKKs2vETUSL5mx+J2FfutM7T9w=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "9b008d60392981ad674e04016d25619281550a9d",
"rev": "a672be65651c80d3f592a89b3945466584a22069",
"type": "github"
},
"original": {
@@ -209,7 +202,7 @@
"root": {
"inputs": {
"devenv": "devenv",
"nixpkgs": "nixpkgs_2"
"nixpkgs": "nixpkgs"
}
}
},