Commit graph

104 commits

Author SHA1 Message Date
dependabot[bot]
3947c6f8d5 build(deps): bump golang.org/x/tools from 0.28.0 to 0.29.0
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Go / coverage (push) Has been cancelled
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.28.0 to 0.29.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.28.0...v0.29.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>
2025-01-17 01:09:26 +01:00
Fernandez Ludovic
b568e8acf1 chore: groups github action updates 2025-01-17 00:57:15 +01:00
Fernandez Ludovic
ed135bb8e7 chore: use stable and olstable instead of explicit versions 2025-01-17 00:57:15 +01:00
Fernandez Ludovic
12e5409dea tests: add tests on suggested fixes 2025-01-17 00:54:35 +01:00
Fernandez Ludovic
2046ce80db fix: cgo 2025-01-17 00:46:58 +01:00
Fernandez Ludovic
7b0afb1f92 tests: rewrite tests 2025-01-17 00:46:58 +01:00
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
939d65bc16 fix(goreleaser): draft release
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Go / coverage (push) Has been cancelled
2025-01-14 17:33:18 +01:00
54e593c1c6 feat: ignore context.TODO and context.Background
Related to #34
2025-01-14 17:05:35 +01:00
529e088561 fix: goreleaser v2
Some checks are pending
Go / build (push) Waiting to run
Go / coverage (push) Blocked by required conditions
golangci-lint / lint (push) Waiting to run
2025-01-13 22:58:40 +01:00
pre-commit-ci[bot]
52f7fb588c [pre-commit.ci] pre-commit autoupdate
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Go / coverage (push) Has been cancelled
updates:
- [github.com/golangci/golangci-lint: v1.62.2 → v1.63.4](https://github.com/golangci/golangci-lint/compare/v1.62.2...v1.63.4)
2025-01-07 07:49:41 +01:00
dependabot[bot]
6130ad946e build(deps): bump golang.org/x/tools from 0.27.0 to 0.28.0
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Go / coverage (push) Has been cancelled
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.27.0 to 0.28.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.27.0...v0.28.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>
2025-01-01 22:41:48 +01:00
dependabot[bot]
48ee2433d6 build(deps): bump golang.org/x/tools from 0.26.0 to 0.27.0
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Go / coverage (push) Has been cancelled
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.26.0 to 0.27.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.26.0...v0.27.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-12-01 23:53:16 +01:00
pre-commit-ci[bot]
4c828f7302 [pre-commit.ci] pre-commit autoupdate
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Go / coverage (push) Has been cancelled
updates:
- [github.com/golangci/golangci-lint: v1.62.0 → v1.62.2](https://github.com/golangci/golangci-lint/compare/v1.62.0...v1.62.2)
2024-11-26 16:37:34 +01:00
Oleksandr Redko
632a706303 refactor: avoid one string to []byte conversion
Some checks failed
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
pre-commit-ci[bot]
4ad817c8f3 [pre-commit.ci] pre-commit autoupdate
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Go / coverage (push) Has been cancelled
updates:
- [github.com/golangci/golangci-lint: v1.61.0 → v1.62.0](https://github.com/golangci/golangci-lint/compare/v1.61.0...v1.62.0)
2024-11-12 07:25:20 +01:00
dependabot[bot]
fae7a27f40 build(deps): bump golang.org/x/tools from 0.25.0 to 0.26.0
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Go / coverage (push) Has been cancelled
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.25.0 to 0.26.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.25.0...v0.26.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-11-02 09:32:26 +01:00
Gabriel Augendre
fbf73fbd4d
update badge link to wiki
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Go / coverage (push) Has been cancelled
2024-10-30 16:37:48 +01:00
Gabriel Augendre
ed98e56f00
prevent concurrent coverage reports 2024-10-30 16:35:52 +01:00
Gabriel Augendre
7f2b12beab
add coverage badge 2024-10-30 16:29:06 +01:00
Gabriel Augendre
9b1b0c8986
remove unused contrib folder 2024-10-30 16:28:56 +01:00
Gabriel Augendre
1c05d23bb3
fix condition on coverage report job 2024-10-30 16:23:45 +01:00
Gabriel Augendre
e1e94fa7d4
use separate job with specific permissions for coverage report 2024-10-30 16:23:02 +01:00
pre-commit-ci[bot]
db40be2dee [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-10-30 16:17:27 +01:00
Gabriel Augendre
0c76b071d6 add coverage report 2024-10-30 16:17:27 +01:00
Gabriel Augendre
cddb074802
add badges in readme 2024-10-30 15:35:31 +01:00
pre-commit-ci[bot]
548d1beeac [pre-commit.ci] pre-commit autoupdate
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0)
2024-10-07 23:43:57 -04:00
dependabot[bot]
7e1e279ad5 build(deps): bump golang.org/x/tools from 0.24.0 to 0.25.0
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.24.0 to 0.25.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.24.0...v0.25.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-10-02 13:53:46 +02:00
pre-commit-ci[bot]
88173f8b3f [pre-commit.ci] pre-commit autoupdate
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
updates:
- [github.com/golangci/golangci-lint: v1.60.3 → v1.61.0](https://github.com/golangci/golangci-lint/compare/v1.60.3...v1.61.0)
2024-09-10 07:13:57 +02:00
dependabot[bot]
4dc5fc8817 build(deps): bump golang.org/x/tools from 0.23.0 to 0.24.0
Some checks failed
Go / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.23.0...v0.24.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-09-02 00:16:13 +02:00
Fernandez Ludovic
25eb4fa74b chore: ignore binary
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-09-01 13:40:56 +02:00
Fernandez Ludovic
4526c31d1d fix: use mon go1.22.0 2024-09-01 13:40:56 +02:00
pre-commit-ci[bot]
8782199988 [pre-commit.ci] pre-commit autoupdate
Some checks failed
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, macos-latest) (push) Has been cancelled
Go / build (1.23, ubuntu-latest) (push) Has been cancelled
Go / build (1.23, windows-latest) (push) Has been cancelled
golangci-lint / lint (1.22) (push) Has been cancelled
golangci-lint / lint (1.23) (push) Has been cancelled
updates:
- [github.com/golangci/golangci-lint: v1.60.1 → v1.60.3](https://github.com/golangci/golangci-lint/compare/v1.60.1...v1.60.3)
2024-08-27 08:09:22 +02:00
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
90afb8d3fa update readme 2024-08-26 07:47:30 +02:00
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
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.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
Some checks failed
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
Some checks failed
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
Some checks failed
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
Some checks failed
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