An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# app-services-go-linter

[![Go Report Card](https://goreportcard.com/badge/github.com/redhat-developer/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")
```