forked from kubernetes-sigs/logtools
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logcheck: support settings in golangci-lint
This implements the new interface from golangci/golangci-lint#3887 with two fields in the "settings": type settings struct { Check map[string]bool `json:"check"` Config string `json:"config"` } This is the actual config *data*, not the name of a config file. This is intentional because - relative file paths wouldn't work (plugin cannot resolve them) - loading additional file content wouldn't invalidate cached linter results the that embedding the data inside the main config does The `include` text template method ensures that logcheck.conf gets injected automatically. Having it as separate file has the advantage that manual invocations of the stand-alone logcheck linter still work.
- Loading branch information
Showing
5 changed files
with
76 additions
and
16 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
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
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