Commit graph

10 commits

Author SHA1 Message Date
Gabriel Augendre
4410b65005
doc: update linter description
Some checks are pending
Go / build (1.22, macos-latest) (push) Waiting to run
Go / build (1.22, ubuntu-latest) (push) Waiting to run
Go / build (1.22, windows-latest) (push) Waiting to run
Go / build (1.23, macos-latest) (push) Waiting to run
Go / build (1.23, ubuntu-latest) (push) Waiting to run
Go / build (1.23, windows-latest) (push) Waiting to run
golangci-lint / lint (1.22) (push) Waiting to run
golangci-lint / lint (1.23) (push) Waiting to run
2024-08-26 10:30:12 +02:00
Venkatesh Kotwade
be0aa70f23
Detect nested contexts in function literals (#18)
* feat: Add detection for nested contexts in function literals
* feat: Improve detection of nested contexts in function literals
* refactor: Update getReportMessage function to handle unsupported nested context types
* use node instead of block
* refactor: use multi case
* added one more case
* feat: also added support for multiple contexts
2024-08-26 07:46:02 +02:00
Gabriel Augendre
091030580e feat: detect in nested blocks 2024-07-23 19:07:34 +02:00
Michael Urman
69e9ae12fc Explain getRootIdent/ObjectOf/Pos check 2024-05-29 10:26:10 -05:00
Michael Urman
3e9e29f41c Test and fix cases with nested contexts
As long as the context is rooted in a non-pointer value that has a new
copy in the loop, it is as safe to copy that value as it is to copy the
context. So only report such cases when they are indirected and thus
shared.
2024-05-29 09:47:58 -05:00
a2187f17e7 fix: remove panic 2024-03-28 00:08:19 +01:00
781d685146 refactor: rename foreshadow to fatcontext 2024-03-27 23:50:12 +01:00
e294cd822f fix: don't touch AST 2024-03-27 19:57:23 +01:00
30700a7521 update analyzer doc wording 2024-03-27 19:25:49 +01:00
c07c76b205 initial commit 2024-03-27 19:24:38 +01:00