| Crates.io | spezilinter |
| lib.rs | spezilinter |
| version | 1.1.2 |
| created_at | 2024-09-18 00:04:42.045343+00 |
| updated_at | 2024-09-18 21:35:17.582163+00 |
| description | spezifisch's linter for different file formats, linting for weirdly specific stuff |
| homepage | |
| repository | https://codeberg.org/spezifisch/spezilinter |
| max_upload_size | |
| id | 1378453 |
| size | 3,933,894 |
spezilinter is a personal linter for validating and enforcing specific rules on my blog posts. Maybe you can reuse some parts for your own stuff!
onload.cargo install spezilinter
$ spezilinter --help
spezifisch's linter for different file formats, linting for weirdly specific stuff
Usage: spezilinter [OPTIONS] <files>...
Arguments:
<files>... List of markdown files to lint
Options:
--root <root> Root directory for resolving image paths [default: .]
--disallow-onload Disallow `onload` attribute in SVG files
--stop-on-first-error Stop on the first error encountered
-h, --help Print help
-V, --version Print version
# inside this repository
cargo run -- --root <root-directory> <markdown-files>
You'll need the bats package for this:
make ci
Make sure to commit only cleanly formatted and tested code, please:
# run once
pre-commit install
# (optional) run manually
pre-commit run --all-files
GPL-3.0-only