Skip to content

Commit 2774b4c

Browse files
Update new-linter testing docs
Clarify directory structure for testing
1 parent 52306d5 commit 2774b4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/new-linter.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ Basic tests can be implemented with the Go analysis test framework.
132132
Create a `testdata` directory in the linter package and create a structure underneath.
133133
Individual test files must be placed under `src` and then a subdirectory for each package.
134134

135-
Use one package per configuration input for the linter.
135+
If your linter has different configurations, eg options to pass to the linter
136+
you will need one configuration per option. Use one package per configuration
137+
input for the linter.
136138

137139
```
138140
mylinter

0 commit comments

Comments
 (0)