mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-04-01 13:37:30 +02:00
Entire-Session: 9fa13bc4-ded3-497b-9553-eaac6e6ee61e Entire-Strategy: manual-commit Entire-Agent: Claude Code Ephemeral-branch: entire/82c514b-e3b0c4
40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
Add a Make target to format all go files using gofumpt. Add another target to run the linter using the following settings: gopls = {
|
|
gofumpt = true,
|
|
codelenses = {
|
|
gc_details = false,
|
|
generate = true,
|
|
regenerate_cgo = true,
|
|
run_govulncheck = true,
|
|
test = true,
|
|
tidy = true,
|
|
upgrade_dependency = true,
|
|
vendor = true,
|
|
},
|
|
hints = {
|
|
assignVariableTypes = true,
|
|
compositeLiteralFields = true,
|
|
compositeLiteralTypes = true,
|
|
constantValues = true,
|
|
functionTypeParameters = true,
|
|
parameterNames = true,
|
|
rangeVariableTypes = true,
|
|
},
|
|
analyses = {
|
|
nilness = true,
|
|
unusedparams = true,
|
|
unusedwrite = true,
|
|
useany = true,
|
|
},
|
|
usePlaceholders = true,
|
|
completeUnimported = true,
|
|
staticcheck = true,
|
|
directoryFilters = { "-.git", "-.vscode", "-.idea", "-.vscode-test", "-node_modules" },
|
|
semanticTokens = true, . How can go linter configuration be set project specific?
|
|
|
|
---
|
|
|
|
Analyse which directories should be added to the directoryFilters
|
|
|
|
---
|
|
|
|
Add infos about the new make targets including the required tools and how to install them to the README |