Skip to content

app-services-go-linter plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files

License

Notifications You must be signed in to change notification settings

redhat-developer/app-services-go-linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

app-services-go-linter plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published