https://github.com/redhat-developer/app-services-go-linter
app-services-go-linter plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files
https://github.com/redhat-developer/app-services-go-linter
go linter rhoas
Last synced: 6 months ago
JSON representation
app-services-go-linter plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files
- Host: GitHub
- URL: https://github.com/redhat-developer/app-services-go-linter
- Owner: redhat-developer
- License: apache-2.0
- Created: 2021-10-01T20:01:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T12:13:12.000Z (over 3 years ago)
- Last Synced: 2025-06-05T05:30:23.193Z (7 months ago)
- Topics: go, linter, rhoas
- Language: Go
- Homepage:
- Size: 71.3 KB
- Stars: 2
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# app-services-go-linter
[](https://goreportcard.com/report/github.com/redhat-developer/app-services-go-linter)
Linter is used in https://github.com/redhat-developer/app-services-cli
**app-services-go-linter** plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files.
As of right now the project created exclusively for [Command Line Interface for RHOAS](https://github.com/redhat-developer/app-services-cli), however,
you can adopt it for your needs by specifying the following command line options:
```bash
-path string
Path to the directory with localization files.
If nothing specified, linter will try to load i18n messages from files located in pkg/localize/locales directory.
-mustLocalize string
Name of the function that loads an i18n message. (default "MustLocalize")
-mustLocalizeError string
Name of the function that creates new error with i18n message. (default "MustLocalizeError")
```