f887074f5d
refactor: nested context recursion
2025-01-17 00:02:58 +01:00
ef9d47d1f0
feat: better discriminate assignations to struct pointers
2025-01-17 00:02:58 +01:00
54e593c1c6
feat: ignore context.TODO and context.Background
...
Related to #34
2025-01-14 17:05:35 +01:00
Oleksandr Redko
632a706303
refactor: avoid one string to []byte conversion
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Go / coverage (push) Has been cancelled
2024-11-20 15:58:58 +01:00
Oleksandr Redko
98578576b8
chore: format with goimports
2024-11-20 15:56:39 +01:00
Gabriel Augendre
4410b65005
doc: update linter description
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