From 856e2994722e2e7f67b47d55b8e673ddabcebe83 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 27 Feb 2026 07:13:17 +0000 Subject: feat: Initial commit --- testdata/dictionary/words.txt | 9 +++++++++ testdata/samplepkg/sample.go | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 testdata/dictionary/words.txt create mode 100644 testdata/samplepkg/sample.go (limited to 'testdata') diff --git a/testdata/dictionary/words.txt b/testdata/dictionary/words.txt new file mode 100644 index 0000000..e8e9975 --- /dev/null +++ b/testdata/dictionary/words.txt @@ -0,0 +1,9 @@ +option +has +resource +parsed +identifier +allowlist +context +error +expression diff --git a/testdata/samplepkg/sample.go b/testdata/samplepkg/sample.go new file mode 100644 index 0000000..ff80b69 --- /dev/null +++ b/testdata/samplepkg/sample.go @@ -0,0 +1,20 @@ +package samplepkg + +import "context" + +type UserCfg struct { + userNum int +} + +func Handle(ctx context.Context, userNum int) int { + resultVal := userNum + 1 + + for idx, usr := range []string{"a", "b"} { + _ = idx + _ = usr + } + + _ = ctx + + return resultVal +} -- cgit v1.2.3