app-services-go-linter

module
v0.0.0-...-6ec4f8e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2022 License: Apache-2.0

README

app-services-go-linter

Go Report Card

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, however, you can adopt it for your needs by specifying the following command line options:

-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")

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL