021f1b4ed6
cd: use go1.23 for golangci-lint
2024-08-26 07:46:50 +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
0d2c4019d4
update go.mod to 1.22
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.21) (push) Waiting to run
golangci-lint / lint (1.22) (push) Waiting to run
2024-08-25 18:15:22 +02:00
77afd24616
cd: always run all test jobs
2024-08-25 16:00:22 +02:00
2e1ec44b79
drop support for go 1.21, and test against released go 1.23
2024-08-25 15:59:59 +02:00
0be9888cea
Merge pull request #17 from Crocmagnon/pre-commit-ci-update-config
...
Go / build (1.21, macos-latest) (push) Has been cancelled
Go / build (1.21, ubuntu-latest) (push) Has been cancelled
Go / build (1.21, windows-latest) (push) Has been cancelled
Go / build (1.22, macos-latest) (push) Has been cancelled
Go / build (1.22, ubuntu-latest) (push) Has been cancelled
Go / build (1.22, windows-latest) (push) Has been cancelled
Go / build (1.23.0-rc.2, macos-latest) (push) Has been cancelled
Go / build (1.23.0-rc.2, ubuntu-latest) (push) Has been cancelled
Go / build (1.23.0-rc.2, windows-latest) (push) Has been cancelled
golangci-lint / lint (1.21) (push) Has been cancelled
golangci-lint / lint (1.22) (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2024-08-20 08:05:44 +02:00
pre-commit-ci[bot]
ab55c271f9
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/golangci/golangci-lint: v1.59.1 → v1.60.1](https://github.com/golangci/golangci-lint/compare/v1.59.1...v1.60.1 )
2024-08-19 22:52:08 +00:00
46a445090d
Merge pull request #16 from Crocmagnon/dependabot/go_modules/golang.org/x/tools-0.23.0
...
Go / build (1.21, macos-latest) (push) Has been cancelled
Go / build (1.21, ubuntu-latest) (push) Has been cancelled
Go / build (1.21, windows-latest) (push) Has been cancelled
Go / build (1.22, macos-latest) (push) Has been cancelled
Go / build (1.22, ubuntu-latest) (push) Has been cancelled
Go / build (1.22, windows-latest) (push) Has been cancelled
Go / build (1.23.0-rc.2, macos-latest) (push) Has been cancelled
Go / build (1.23.0-rc.2, ubuntu-latest) (push) Has been cancelled
Go / build (1.23.0-rc.2, windows-latest) (push) Has been cancelled
golangci-lint / lint (1.21) (push) Has been cancelled
golangci-lint / lint (1.22) (push) Has been cancelled
build(deps): bump golang.org/x/tools from 0.22.0 to 0.23.0
2024-08-02 01:31:47 +02:00
dependabot[bot]
3df83da91f
build(deps): bump golang.org/x/tools from 0.22.0 to 0.23.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.22.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-01 21:38:51 +00:00
a80e8ddef6
cd: test with 1.23rc2
Go / build (1.21, macos-latest) (push) Has been cancelled
Go / build (1.21, ubuntu-latest) (push) Has been cancelled
Go / build (1.21, windows-latest) (push) Has been cancelled
Go / build (1.22, macos-latest) (push) Has been cancelled
Go / build (1.22, ubuntu-latest) (push) Has been cancelled
Go / build (1.22, windows-latest) (push) Has been cancelled
Go / build (1.23.0-rc.2, macos-latest) (push) Has been cancelled
Go / build (1.23.0-rc.2, ubuntu-latest) (push) Has been cancelled
Go / build (1.23.0-rc.2, windows-latest) (push) Has been cancelled
golangci-lint / lint (1.21) (push) Has been cancelled
golangci-lint / lint (1.22) (push) Has been cancelled
2024-07-23 19:13:11 +02:00
30606c7931
Merge pull request #15 from Crocmagnon/feat/context-condition
...
handle contexts inside conditions
2024-07-23 19:07:45 +02:00
Gabriel Augendre
091030580e
feat: detect in nested blocks
2024-07-23 19:07:34 +02:00
f35e8a2263
Merge pull request #13 from Crocmagnon/go1.23
...
Go / build (1.21, macos-latest) (push) Has been cancelled
Go / build (1.21, ubuntu-latest) (push) Has been cancelled
Go / build (1.21, windows-latest) (push) Has been cancelled
Go / build (1.22, macos-latest) (push) Has been cancelled
Go / build (1.22, ubuntu-latest) (push) Has been cancelled
Go / build (1.22, windows-latest) (push) Has been cancelled
Go / build (1.23.0-rc.1, macos-latest) (push) Has been cancelled
Go / build (1.23.0-rc.1, ubuntu-latest) (push) Has been cancelled
Go / build (1.23.0-rc.1, windows-latest) (push) Has been cancelled
golangci-lint / lint (1.21) (push) Has been cancelled
golangci-lint / lint (1.22) (push) Has been cancelled
cd: test with go 1.23rc1
2024-07-02 00:32:37 +02:00
40f87bfc57
cd: test with go 1.23rc1
2024-07-02 00:30:31 +02:00
bf0cfec130
Merge pull request #11 from Crocmagnon/dependabot/go_modules/golang.org/x/tools-0.22.0
...
build(deps): bump golang.org/x/tools from 0.21.0 to 0.22.0
2024-07-02 00:23:55 +02:00
c6325891c1
Merge pull request #12 from Crocmagnon/dependabot/github_actions/goreleaser/goreleaser-action-6
...
build(deps): bump goreleaser/goreleaser-action from 5 to 6
2024-07-02 00:23:39 +02:00
dependabot[bot]
9a9e950a91
build(deps): bump goreleaser/goreleaser-action from 5 to 6
...
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action ) from 5 to 6.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases )
- [Commits](https://github.com/goreleaser/goreleaser-action/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 21:47:37 +00:00
dependabot[bot]
602eb047a9
build(deps): bump golang.org/x/tools from 0.21.0 to 0.22.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.21.0...v0.22.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 21:23:29 +00:00
a2ca606f30
Merge pull request #10 from Crocmagnon/pre-commit-ci-update-config
...
Go / build (1.21, macos-latest) (push) Has been cancelled
Go / build (1.21, ubuntu-latest) (push) Has been cancelled
Go / build (1.21, windows-latest) (push) Has been cancelled
Go / build (1.22, macos-latest) (push) Has been cancelled
Go / build (1.22, ubuntu-latest) (push) Has been cancelled
Go / build (1.22, windows-latest) (push) Has been cancelled
golangci-lint / lint (1.21) (push) Has been cancelled
golangci-lint / lint (1.22) (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2024-06-11 07:51:32 +02:00
pre-commit-ci[bot]
802ac1311c
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/golangci/golangci-lint: v1.59.0 → v1.59.1](https://github.com/golangci/golangci-lint/compare/v1.59.0...v1.59.1 )
2024-06-10 22:55:26 +00:00
e8053df661
Merge pull request #9 from MichaelUrman/contained
...
Go / build (1.21, macos-latest) (push) Has been cancelled
Go / build (1.21, ubuntu-latest) (push) Has been cancelled
Go / build (1.21, windows-latest) (push) Has been cancelled
Go / build (1.22, macos-latest) (push) Has been cancelled
Go / build (1.22, ubuntu-latest) (push) Has been cancelled
Go / build (1.22, windows-latest) (push) Has been cancelled
golangci-lint / lint (1.21) (push) Has been cancelled
golangci-lint / lint (1.22) (push) Has been cancelled
Test and fix cases with nested contexts
2024-05-29 17:29:50 +02:00
Michael Urman
69e9ae12fc
Explain getRootIdent/ObjectOf/Pos check
2024-05-29 10:26:10 -05:00
Michael Urman
0e13d068ad
Fix array test
...
The prior construct probably shouldn't issue an error.
These, however, both should (and do).
2024-05-29 10:07:03 -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
6be4ab74b8
Merge pull request #7 from Crocmagnon/pre-commit-ci-update-config
...
Go / build (1.21, macos-latest) (push) Has been cancelled
Go / build (1.21, ubuntu-latest) (push) Has been cancelled
Go / build (1.21, windows-latest) (push) Has been cancelled
Go / build (1.22, macos-latest) (push) Has been cancelled
Go / build (1.22, ubuntu-latest) (push) Has been cancelled
Go / build (1.22, windows-latest) (push) Has been cancelled
golangci-lint / lint (1.21) (push) Has been cancelled
golangci-lint / lint (1.22) (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2024-05-28 07:23:56 +02:00
pre-commit-ci[bot]
db036b18d4
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/golangci/golangci-lint: v1.58.2 → v1.59.0](https://github.com/golangci/golangci-lint/compare/v1.58.2...v1.59.0 )
2024-05-27 22:24:08 +00:00
9beb365772
Merge pull request #6 from Crocmagnon/pre-commit-ci-update-config
...
Go / build (1.21, macos-latest) (push) Has been cancelled
Go / build (1.21, ubuntu-latest) (push) Has been cancelled
Go / build (1.21, windows-latest) (push) Has been cancelled
Go / build (1.22, macos-latest) (push) Has been cancelled
Go / build (1.22, ubuntu-latest) (push) Has been cancelled
Go / build (1.22, windows-latest) (push) Has been cancelled
golangci-lint / lint (1.21) (push) Has been cancelled
golangci-lint / lint (1.22) (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2024-05-21 08:56:02 +02:00
pre-commit-ci[bot]
954c9b64c6
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/golangci/golangci-lint: v1.58.1 → v1.58.2](https://github.com/golangci/golangci-lint/compare/v1.58.1...v1.58.2 )
2024-05-20 21:54:23 +00:00
acb08d4731
Merge pull request #5 from Crocmagnon/pre-commit-ci-update-config
...
Go / build (1.21, macos-latest) (push) Has been cancelled
Go / build (1.21, ubuntu-latest) (push) Has been cancelled
Go / build (1.21, windows-latest) (push) Has been cancelled
Go / build (1.22, macos-latest) (push) Has been cancelled
Go / build (1.22, ubuntu-latest) (push) Has been cancelled
Go / build (1.22, windows-latest) (push) Has been cancelled
golangci-lint / lint (1.21) (push) Has been cancelled
golangci-lint / lint (1.22) (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2024-05-14 07:20:53 +02:00
pre-commit-ci[bot]
66526fe956
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/golangci/golangci-lint: v1.58.0 → v1.58.1](https://github.com/golangci/golangci-lint/compare/v1.58.0...v1.58.1 )
2024-05-13 22:24:40 +00:00
d5171e1d54
Merge pull request #4 from Crocmagnon/dependabot/go_modules/golang.org/x/tools-0.21.0
...
Go / build (1.21, macos-latest) (push) Has been cancelled
Go / build (1.21, ubuntu-latest) (push) Has been cancelled
Go / build (1.21, windows-latest) (push) Has been cancelled
Go / build (1.22, macos-latest) (push) Has been cancelled
Go / build (1.22, ubuntu-latest) (push) Has been cancelled
Go / build (1.22, windows-latest) (push) Has been cancelled
golangci-lint / lint (1.21) (push) Has been cancelled
golangci-lint / lint (1.22) (push) Has been cancelled
build(deps): bump golang.org/x/tools from 0.19.0 to 0.21.0
2024-05-07 10:53:48 +02:00
dependabot[bot]
de95617005
build(deps): bump golang.org/x/tools from 0.19.0 to 0.21.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.19.0 to 0.21.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.19.0...v0.21.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-07 08:50:53 +00:00
e7f3a75701
add dependabot config
2024-05-07 10:50:26 +02:00
ec963af14f
Merge pull request #3 from Crocmagnon/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-05-07 10:50:13 +02:00
da706a0193
update golangci-lint action
2024-05-07 10:45:21 +02:00
pre-commit-ci[bot]
0b0c70a0a6
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/golangci/golangci-lint: v1.57.2 → v1.58.0](https://github.com/golangci/golangci-lint/compare/v1.57.2...v1.58.0 )
2024-05-06 22:31:22 +00:00
6a0a70a6a3
Merge pull request #2 from Crocmagnon/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-04-09 07:21:40 +02:00
pre-commit-ci[bot]
b6bd36f685
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0 )
2024-04-08 23:04:56 +00:00
5cfbe16927
Update README.md
2024-04-06 09:09:43 +02:00
4c2ad68b8d
Merge pull request #1 from Crocmagnon/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-04-02 08:08:43 +02:00
pre-commit-ci[bot]
a0fa7dbcdc
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v2.3.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v2.3.0...v4.5.0 )
- [github.com/golangci/golangci-lint: v1.57.1 → v1.57.2](https://github.com/golangci/golangci-lint/compare/v1.57.1...v1.57.2 )
2024-04-01 22:39:17 +00:00
a2187f17e7
fix: remove panic
2024-03-28 00:08:19 +01:00
95e882dd7d
force github token in goreleaser
2024-03-28 00:01:25 +01:00
25cb4f05b9
fix goreleaser
2024-03-28 00:01:15 +01:00
781d685146
refactor: rename foreshadow to fatcontext
2024-03-27 23:50:12 +01:00
a7ef75e6e9
ci: skip go test in pre-commit.ci
2024-03-27 23:07:39 +01:00
da0fa3f168
Revert "ci: run go checks in pre-commit.ci"
...
This reverts commit 0ce2055c51
.
2024-03-27 23:07:11 +01:00
0ce2055c51
ci: run go checks in pre-commit.ci
2024-03-27 23:06:08 +01:00
384f8008b9
docs: update & document dev commands
2024-03-27 22:59:32 +01:00
03bce0f06d
ci: run goreleaser only if test & lint pass
2024-03-27 22:51:04 +01:00