https://github.com/jacoelho/logruscheck
https://github.com/jacoelho/logruscheck
go golangci-lint linter logrus
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacoelho/logruscheck
- Owner: jacoelho
- License: mit
- Created: 2022-04-05T19:22:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-05T19:39:21.000Z (about 4 years ago)
- Last Synced: 2024-12-06T21:57:42.508Z (over 1 year ago)
- Topics: go, golangci-lint, linter, logrus
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logruscheck
## Description
Linter to check if logrus logging calls are made with key-value pairs and no calls are made using the format variants like `Errorf`.
## Install
### Standalone
```bash
go install github.com/jacoelho/logruscheck
```
### [golangci-lint](https://golangci-lint.run/) plugin
Build the plugin
```bash
CGO_ENABLED=1 go build -o logruscheck.so -buildmode=plugin github.com/jacoelho/logruscheck/plugin
```