hearty 0.1.5

Check HOI4 mod files for missing localisations
hearty-0.1.5 is not a library.

hearty

Crates.io Version Deps.rs Crate Dependencies (latest) Crates.io Size

Lints for hoi4 mods.

Most mods are very messy, this is a tool to help with a little cleaning.

The plan is to add more lints over time.

Installation

Linux

curl -L https://github.com/JonathanWoollett-Light/hearty/releases/latest/download/hearty-x86_64-linux.tar.gz | tar xz
./hearty /path/to/mod

Windows (PowerShell)

Invoke-WebRequest https://github.com/JonathanWoollett-Light/hearty/releases/latest/download/hearty-x86_64-windows.zip -OutFile hearty.zip
Expand-Archive hearty.zip -DestinationPath .
.\hearty.exe "C:\path\to\mod"

GitHub Action

Can be used in a GitHub action with

- name: Install hearty
    uses: baptiste0928/cargo-install@v3
    with:
        crate: hearty

- name: Run hearty lint
    run: hearty

Usage

Usage: hearty.exe [OPTIONS] [PATH]

Arguments:
  [PATH]  Path to the mod directory. Defaults to the current directory [default: .]

Options:
      --all          Check all languages
      --lang <LANG>  Languages to check. May be repeated: --lang english --lang german. Defaults to english if neither --lang nor --all is given [possible values: brazilian_portuguese, chinese, english, french, german, japanese, korean, polish, russian, spanish]
  -h, --help         Print help

Example

Lint warnings