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

Overview

app-services-go-linter

Go Report Card

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")
You might also like...
Golang PDF library for creating and processing PDF files (pure go)

UniPDF - PDF for Go UniDoc UniPDF is a PDF library for Go (golang) with capabilities for creating and reading, processing PDF files. The library is wr

Go (golang) library for reading and writing XLSX files.

XLSX Introduction xlsx is a library to simplify reading and writing the XML format used by recent version of Microsoft Excel in Go programs. Current s

Golang library for reading and writing Microsoft Excel™ (XLSX) files.
Golang library for reading and writing Microsoft Excel™ (XLSX) files.

Excelize Introduction Excelize is a library written in pure Go providing a set of functions that allow you to write to and read from XLSX / XLSM / XLT

Easily create & extract archives, and compress & decompress files of various formats

archiver Introducing Archiver 3.1 - a cross-platform, multi-format archive utility and Go library. A powerful and flexible library meets an elegant CL

A Go filesystem package for working with files and directories

Stowage A Go filesystem package for working with files and directories, it features a simple API with support for the common files and directories ope

Allows parsing CSV files into custom structs and implements required fields that can't be empty

Welcome to Go Custom CSV Parser 👋 Allows parsing CSV files into custom structs and implements required fields that can't be empty 🏠 Homepage Install

Utility for working with files and folders stored on Google Drive

skicka Utility for working with files and folders stored on Google Drive. Note: skicka is not an official Google product! Intro skicka makes it easy t

Provide an upload endpoint that stores files on pinata and returns a json response with the uploaded file pinata url

Purpose Build a template repository to get to coding as quickly as possible, by starting from a common template which follows the guidelines here Feat

Finder is a tool to sort and organize your files.

Finder 🔍 Finder is a tool to sort and organize your files. Installation 🪄 Currently, we only support the installation via go directly as shown below

Comments
  • chore: bump version of go and tools

    chore: bump version of go and tools

    Make lint throws following error with go1.18, which needed version update in the custom linter.

    appservicesgolinter: internal error: package "fmt" without types was imported from "github.com/redhat-developer/app-services-cli/pkg/core/errors"
    

    Verification steps

    1. Build the binary with the command:
    go build -o app-services-go-linter ./cmd/app-services-go-linter
    
    1. Copy the generated binary app-services-go-linter to app-services-cli repo.
    2. Run the binary file, and lint checks for i18n keys should be performed.
    ./app-services-go-linter -path ./pkg/core/localize/locales ./...
    
    opened by rkpattnaik780 1
Owner
Red Hat Developer
Github home of the Red Hat Developer program.
Red Hat Developer
🌳 📂 The utility displays a tree of directories and files(symlinks in future).

dirTree The utility displays a tree of directories and files. usage: dirTree [-f] How it works with directory, where I wrote this project for example

Hutiev Alexander 2 Aug 12, 2021
FSManager - Tree view Simple util to displays the directory structure of a path or of the disk in a drive graphically.

FSManager - Tree view Simple util to displays the directory structure of a path or of the disk in a drive graphically. If you don't specify a drive or

Kostiantyn Denysov 1 Oct 9, 2021
Fix imports for go source files (slightly better than goimports)

fiximports fiximports formats and adjusts imports for go source files. It improves on goimports by auto-detecting and grouping local go module imports

null 0 Jan 18, 2022
Split text files into gzip files with x lines

hakgzsplit split lines of text into multiple gzip files

Luke Stephens (hakluke) 6 Jun 21, 2022
Easily create Go files from stub files

go-stubs Easily create .go files from stub files in your projects. Usage go get github.com/nwby/go-stubs Create a stub file: package stubs type {{.Mo

Sam Newby 4 Jan 27, 2022
Open Source Continuous File Synchronization

Goals Syncthing is a continuous file synchronization program. It synchronizes files between two or more computers. We strive to fulfill the goals belo

The Syncthing Project 48.6k Jan 9, 2023
Get a binary file directly from the Golang source project.

This project aims to provide a way to get binary file from a Golang project easily. Users don't need to have a Golang environment. Server Usage: docke

Rick 3 Nov 18, 2021
QueryCSV enables you to load CSV files and manipulate them using SQL queries then after you finish you can export the new values to a CSV file

QueryCSV enable you to load CSV files and manipulate them using SQL queries then after you finish you can export the new values to CSV file

Mohamed Shapan 100 Dec 22, 2021
🏵 Gee is tool of stdin to each files and stdout

Gee is tool of stdin to each files and stdout. It is similar to the tee command, but there are more functions for convenience. In addition, it was written as go. which provides output to stdout and files.

HAHWUL 75 Nov 17, 2022