# hearty
[](https://crates.io/crates/hearty)
[](https://crates.io/crates/hearty/dependencies)
[](https://crates.io/crates/hearty)
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**
```bash
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)
```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
```yaml
- name: Install hearty
uses: baptiste0928/cargo-install@v3
with:
crate: hearty
- name: Run hearty lint
run: hearty
```
### Usage
```text
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
