Skip to content

Commit 0fe6fef

Browse files
committed
Exclude chasm/lib examples from strict library lint rules
The research-agent-demo is an example app, not library code. Exclude it from forbidigo (time.Now), errcheck, and revive rules that apply to the chasm/lib package.
1 parent 05bdfb3 commit 0fe6fef

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/.golangci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,13 @@ linters:
175175
text: "time.Now"
176176
linters:
177177
- forbidigo
178+
# Example/demo apps under chasm/lib are not library code — exclude from
179+
# strict chasm/lib rules (forbidigo, deep-exit, errcheck, complexity, etc.).
180+
- path: chasm/lib/.*/examples/
181+
linters:
182+
- forbidigo
183+
- errcheck
184+
- revive
178185
# Cassandra timestamp rules only apply to cassandra persistence package
179186
- path-except: common/persistence/cassandra/.*\.go$
180187
text: "Unix|UnixMilli|UnixNano"

0 commit comments

Comments
 (0)