-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lints: improve template_test.go (#367)
Rather than hardcode a mapping of `LintSource` to package directory that needs to be maintained the `template_test.go` logic should just walk the filesystem under the `lints/` directory and check all `.go` files. This makes a smaller `lint` API, removes two places that need to be kept up to date with new `LintSource`s and results in a test that is robust against further subdirectory modifications (e.g. a structure deeper than 1 package below `lints`).
- Loading branch information
Showing
2 changed files
with
63 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters