Metadata-Version: 2.4
Name: malt
Version: 0.1.1
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Rust
Classifier: Topic :: Software Development :: Quality Assurance
License-File: LICENSE
Summary: An ultra-fast MATLAB linter with MATLAB Code Analyzer-compatible checks, written in Rust
Keywords: matlab,linter,lint,static-analysis,code-analyzer
Home-Page: https://watermarkhu.nl/malt
Author-email: Mark Shui Hu <watermarkhu@gmail.com>
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/watermarkhu/malt/releases
Project-URL: Documentation, https://watermarkhu.nl/malt
Project-URL: Homepage, https://watermarkhu.nl/malt
Project-URL: Repository, https://github.com/watermarkhu/malt

# malt

An ultra-fast, extensible linter for MATLAB, written in Rust.

`malt` parses MATLAB with tree-sitter and runs every rule in a
single pass over the syntax tree. It aims for parity with MATLAB's Code Analyzer
and uses the same check IDs (`NOSEMI`, `AGROW`, `naming.class.casing`, ...), so
existing `%#ok<...>` suppressions keep working.

## Install

| Channel | Command |
| ------- | ------- |
| PyPI | `pip install malt` or `uv tool install malt` (or run once with `uvx malt`) |
| crates.io | `cargo install malt-cli` |
| npm (WebAssembly) | `npm install malt-wasm` |

PyPI and crates.io install the same `malt` command; the npm package is a
WebAssembly library for browsers and Node.js.

## Usage

```bash
malt src/                 # lint a directory
malt --fix src/foo.m      # apply automatic fixes
malt --preset all src/    # enable every rule
```

Configure rules in a `.malt.toml` at the project root:

```toml
[lint]
preset = "recommended"

[lint.rules]
NOSEMI = "off"
```

## Documentation

Full documentation, the rule reference and an in-browser playground are at
<https://watermarkhu.nl/malt>.

## License

MIT

