Nicolas Martyanoff on Nostr: The problem with most static linters —here staticcheck for #Go— is that they mix ...
The problem with most static linters —here staticcheck for #Go— is that they mix useful diagnostics (e.g. detecting calls to deprecated functions) with pure opinion (noooo you cannot early return with a branch, you have to use the full expression in a single return statement!). Not as bad as Rubocop but still bad enough I won't use it.
Just use "go vet".
Published at
2024-12-01 12:42:44Event JSON
{
"id": "ee8bdc684d3a4cb240e9e3a707a971b2b2897a62075a742d876159c5598bc6f1",
"pubkey": "6d91e7b056ab18986298e04a8b278a5e070a726487fd30a599427c79db9070e9",
"created_at": 1733056964,
"kind": 1,
"tags": [
[
"t",
"go"
],
[
"proxy",
"https://fosstodon.org/users/galdor/statuses/113577621255102589",
"activitypub"
]
],
"content": "The problem with most static linters —here staticcheck for #Go— is that they mix useful diagnostics (e.g. detecting calls to deprecated functions) with pure opinion (noooo you cannot early return with a branch, you have to use the full expression in a single return statement!). Not as bad as Rubocop but still bad enough I won't use it.\n\nJust use \"go vet\".",
"sig": "825250a0d48438d40cd72b8c30652eac3c8994b93e7798f8d231a1eaa154bf2644b2ab0336c092d63c9589fe90e3e0e98a584ec49801fd632c3a1a60971ee119"
}