HackerTrans
トップ新着トレンドコメント過去質問紹介求人

eik

no profile record

投稿

ScopeGuard 0.0.7: Your Go-to linter for scope and shadow issues, now with MCP

old.reddit.com
2 ポイント·投稿者 eik·2 か月前·0 コメント

The error handling bugs that worry me aren't the ones that crash

old.reddit.com
1 ポイント·投稿者 eik·5 か月前·0 コメント

ScopeGuard v0.0.5: Improved Shadow Detection

old.reddit.com
1 ポイント·投稿者 eik·5 か月前·1 コメント

Go: Nested Assignments and New ScopeGuard Version

old.reddit.com
1 ポイント·投稿者 eik·7 か月前·0 コメント

ScopeGuard 0.0.2 – Go analyzer for tighter scopes

old.reddit.com
2 ポイント·投稿者 eik·7 か月前·0 コメント

Minimizing Variable Scope in Go: New Blog Post and Static Analyzer Tool

old.reddit.com
1 ポイント·投稿者 eik·8 か月前·1 コメント

Errortype v0.0.5 Released – Now with golangci-lint Plugin Support

old.reddit.com
1 ポイント·投稿者 eik·10 か月前·1 コメント

The Day the Linter Broke My Code

blog.fillmore-labs.com
25 ポイント·投稿者 eik·10 か月前·6 コメント

コメント

eik
·5 か月前·議論
ScopeGuard is a Go linter that helps you write more readable and maintainable code by suggesting tighter variable scope.
eik
·8 か月前·議論
Blog Post: https://blog.fillmore-labs.com/posts/scope-1/

Go Analyzer: https://github.com/fillmore-labs/scopeguard#scopeguard
eik
·10 か月前·議論
Announcement of the release of errortype v0.0.5, a Go linter that helps catch subtle bugs in error handling.

https://github.com/fillmore-labs/errortype#errortype
eik
·10 か月前·議論
Yes, but “an Is method should only shallowly compare err and the target and not call Unwrap on either”:

https://pkg.go.dev/errors#Is
eik
·10 か月前·議論
The linter in the post is `err113`. `errortype` does already warn:

https://github.com/fillmore-labs/errortype#errortype
eik
·10 か月前·議論
Having looked at the problems that can arise with errors.As:

https://news.ycombinator.com/item?id=44959638

Let's now look at how errors.Is can introduce subtle bugs that can affect the reliability of error checking, especially when trying to determine the root cause of an error.

How one letter can make such a difference…